Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[charm lib] Update dependency ops to v2.6.0 - autoclosed #67

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 5, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ops 2.4.1 -> 2.6.0 age adoption passing confidence

Release Notes

canonical/operator (ops)

v2.6.0: : Harness.handle_exec, Harness.add_relation improvements, and more

Compare Source

This release has two significant improvements to testing.Harness:

  • Add Harness.handle_exec to allow charm tests to simulate Container.exec calls (Pebble one-shot commands) and provide expected output. Thanks @​weiiwang01 for the design and implementation (PR 993).
  • Simplify adding relation units and relation data by adding app_data and unit_data parameters to Harness.add_relation. Previously, charm tests would have to call add_relation followed by add_relation_unit and update_relation_data -- now only a single add_relation call is required. Implemented in PR 994.

In addition, several small improvements and fixes are included:

See all changes from 2.5.0 to 2.6.0.

v2.5.1: : Fix str vs bytes issue with testing push()

Compare Source

This is a patch fix on top of 2.5.0 to fix #​990: "TypeError: write() argument must be str, not bytes" in Container.push under Harness.

v2.5.0: : Harness.get_filesystem_root, Pebble service context, and more

Compare Source

This release includes three significant additions:

  1. Multi-status: An initial version of the much-discussed "multi-status" handling in the form of the new collect_app_status and collect_unit_status events. This is useful for letting the framework automatically evaluate application (or unit) status from various components of the charm. We'll be documenting this properly soon, but in the meantime, read the API reference docs on CollectStatusEvent. PR #​954.
  2. Harness.get_filesystem_root: Overhauling the Harness's test filesystem from an in-memory filesystem to use a temp directory on the real filesystem; use Harness.get_filesystem_root to get the temp filesystem directory for a specific container. This makes testing container filesystem operations significantly easier and allows tests to use the regular Python file APIs to interact with it. Thanks @​weiiwang01 for his efforts on this in #​960.
  3. Service context: Added support for Pebble's new "service context" feature, to allow you to exec commands in the context of a specified service (where context means environment variables, working directory, and user/group). PR #​957.

Other notable changes:

In addition, the following developers made their first contribution:

We also made several other minor improvements to type annotations and a few other tweaks. See the full changelog: canonical/operator@2.4.1...2.5.0


Configuration

📅 Schedule: Branch creation - "after 1am and before 3am every weekday" in timezone Etc/UTC, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team September 5, 2023 01:51
@renovate renovate bot changed the title [charm lib] Update dependency ops to v2.6.0 [charm lib] Update dependency ops to v2.6.0 - autoclosed Sep 12, 2023
@renovate renovate bot closed this Sep 12, 2023
@renovate renovate bot deleted the renovate/charm-lib-dependencies branch September 12, 2023 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants