Octue

Latest version: v0.60.2

Safety actively analyzes 679296 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 39

0.42.1

Not secure
<!--- SKIP AUTOGENERATED NOTES --->
Contents ([551](https://github.com/octue/octue-sdk-python/pull/551))

Documentation
- Move `app.py` documentation to new page and update it with monitor message and analysis finalisation information

Dependencies
- Update lock file

<!--- END AUTOGENERATED NOTES --->

0.42.0

Not secure
Summary
Improve the creation experience of Octue services.

<!--- SKIP AUTOGENERATED NOTES --->
Contents ([548](https://github.com/octue/octue-sdk-python/pull/548))

New features
- Add ability to set up periodic monitor messages from `Analysis`
- Add poetry installation option to Cloud Run Dockerfile

Enhancements
- Allow revision tag to be set in `octue deploy` commands
- Tell user SRUID of service being deployed by `octue deploy`
- Change default internal service name to `local/local:local`
- Allow Cloud Run execution environment to be set by deployer

Fixes
- Ensure service revision tag is set as environment variable in deployers

Dependencies
- Update `flake8` used for pre-commit checks
- Update lockfile to address certificate removal in `certifi`
- Use new poetry format for dev dependencies in `pyproject.toml`

Testing
- Update `tox.ini` to new format

<!--- END AUTOGENERATED NOTES --->

0.41.1

Not secure
<!--- SKIP AUTOGENERATED NOTES --->
Contents ([545](https://github.com/octue/octue-sdk-python/pull/545))

Fixes
- Avoid double-JSON-encoding input manifests in `Service.ask`

Dependencies
- Update lock file

<!--- END AUTOGENERATED NOTES --->

0.41.0

Not secure
Summary
This release fixes and adds new features to service crash diagnostics, making it much easier to locally reconstruct errors in a service. This especially true if it has children - crash diagnostics now include a child emulator for every question asked to a child by the service before it failed.

<!--- SKIP AUTOGENERATED NOTES --->
Contents ([541](https://github.com/octue/octue-sdk-python/pull/541))

**IMPORTANT:** There are 3 breaking changes.

New features
- Add ability to load crash diagnostics data as a test fixture
- Record messages from each of a service's children when it crashes

Enhancements
- 💥 **BREAKING CHANGE:** Avoid downloading datasets by default in `get-crash-diagnostics`
- 💥 **BREAKING CHANGE:** Save recorded messages to attribute instead of file
- Log a warning if trying to download files from empty directory
- Add `Serialisable.from_file` method
- Add `Manifest.update_dataset_paths` method
- Add representation for `Runner`
- Avoid uploading null strings when values or manifests not present
- Add option to include `.octue` files when instantiating datasets
- Add ability to filter the files downloaded in `GoogleCloudStorageClient.download_all_files`

Fixes
- Save original unmutated input and configuration data for crash diagnostics
- Update manifests with local paths if datasets downloaded locally
- Ensure crash diagnostics upload works without manifests
- Ensure empty values or manifests are uploaded for crash diagnostics
- Fix splitting bucket name from signed cloud storage URLs

Refactoring
- 💥 **BREAKING CHANGE:** Rename `filename` parameter to `path` in `Serialisable.to_file`
- Factor out child instantiation in `Runner` into a method
- Move `AnalysisLogHandlerSwitcher` into `log_handlers` module
- Move `AppFrom` into new `app_loading` module
- Remove unused `Service._sent_messages` attribute
- Rename `recorded_messages` attributes to `received_messages` properties
- Factor out manifest/dataset and values uploading for crash diagnostics
- Reduce nesting in `Dataset._instantiate_from_cloud`
- Factor out app loading and running in `Runner`

Dependencies
- Update `poetry.lock` to avoid usage of [insecure `py` package](https://github.com/octue/octue-sdk-python/security/dependabot/11) by `pytest`

Testing
- Make testing downloading crash diagnostics more efficient
- Test crash diagnostics with service that has its own children
- Use test fixture to speed up `octue get-crash-diagnostics` tests
- Test that dataset/file metadata is uploaded with crash diagnostics
- Test metadata is preserved with `octue get-crash-diagnostics`

Other
- Clarify service troubleshooting doc

---
Upgrade instructions
<details>
<summary>💥 <b>Avoid downloading datasets by default in `get-crash-diagnostics`</b></summary>

To keep the previous behaviour, add the `--download-datasets` flag when using the `octue get-crash-diagnostics` CLI command
</details>

<details>
<summary>💥 <b>Save recorded messages to attribute instead of file</b></summary>

Instead of using the `record_messages_to` parameter, set the `record_messages` parameter to `True` when using `Child.ask` or `Service.wait_for_answer`. Retrieve messages from the `received_messages` property of either class instance.
</details>

<details>
<summary>💥 <b>Rename filename parameter to path in Serialisable.to_file</b></summary>

If using the positional argument `filename` in the `to_file` method of an instance of a `Serialisable` mixed-in class as a keyword argument, replace it with `path`.
</details>

<!--- END AUTOGENERATED NOTES --->

0.40.2

Not secure
<!--- SKIP AUTOGENERATED NOTES --->
Contents ([536](https://github.com/octue/octue-sdk-python/pull/536))

Fixes
- Always use `OctueJSONEncoder` when encoding JSON
- Log analysis errors before attempting to save crash diagnostics in `Runner`

Operations
- Update author email address

Refactoring
- Use `Manifest.serialise` instead of `Manifest.to_primitive` in `Manifest.to_cloud`

<!--- END AUTOGENERATED NOTES --->

0.40.1

Not secure
<!--- SKIP AUTOGENERATED NOTES --->
Contents ([533](https://github.com/octue/octue-sdk-python/pull/533))

Operations
- Use new version of `octue/check-semantic-version` action and remove `mkver.conf` file
- Use latest `octue/generate-pull-request-description` action
- Add `prettier` to `pre-commit` checks

Other
- Fix `octue.yaml` code block in docs
- Improve troubleshooting services doc
- Update service ID usage in docs

<!--- END AUTOGENERATED NOTES --->

Page 8 of 39

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.