← Back to issue list

chore(deps): update dependency ops to v2

View original Github issue

Metadata

Project
charmcraft
Number
#1009
Type
pull request
State
merged
Author
renovate[bot]
Labels
β€”
Created
Updated
Closed

Current evaluation

Renovate PR bumping ops==1.5.4 to 2.0.0 in the spread dependencies requirements (1 file, +1/-1) was merged into main via merge commit 77df49c3; the pin has since progressed to ops==2.15.0.

Resolution: closed resolved

Reason: PR #1009 was approved and merged by maintainers, landing as commit 38d678aa under merge commit 77df49c3 ("Merge pull request #1009 from canonical/renovate/ops-2.x"), updating the ops pin in the test spread dependency requirements to 2.0.0.

Evaluated by: mr-cal-bot

No scores available.

Issue body

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ops](https://togithub.com/canonical/operator) | `==1.5.4` -> `==2.0.0` | [![age](https://badges.renovateapi.com/packages/pypi/ops/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/ops/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/ops/2.0.0/compatibility-slim/1.5.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/ops/2.0.0/confidence-slim/1.5.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>canonical/operator</summary> ### [`v2.0.0`](https://togithub.com/canonical/operator/releases/tag/2.0.0): final [Compare Source](https://togithub.com/canonical/operator/compare/1.5.4...2.0.0) This is version 2.0.0 of `ops`, which includes the following changes: ##### Major changes - **APIs to interact with Juju Secrets**, along with a testing harness. [Read the tutorial](https://juju.is/docs/sdk/add-a-secret-to-a-charm) or the [code (#&#8203;861)](https://togithub.com/canonical/operator/pull/861). - **Ops 2.0.0 requires Python 3.8+** (ops 1.5.x works down to Python 3.5). Note that Python 3.8 is the version installed by default on Ubuntu 20.04 (Focal), where Python 3.5 was installed on Ubuntu 16.04 (Xenial). As a result, ops 2.0.0 is intended for use with Juju 3.0+, which only supports Ubuntu 20.04 and above. We started using some Python 3.8 features in [#&#8203;871](https://togithub.com/canonical/operator/issues/871), and plan to use more in future ops 2.x releases. - **Removed `SIMULATE_CAN_CONNECT`** from the testing harness ([#&#8203;871](https://togithub.com/canonical/operator/issues/871)). When we introduced `can_connect` it would have been a breaking change to enable it by default, so we added the `SIMULATE_CAN_CONNECT` global to enable it, with a warning that we'd enable it by default in a future release. This release removes the global flag and enables simulation by default. - **Made `begin_with_initial_hooks()` trigger pebble-ready** in the testing harness ([#&#8203;871](https://togithub.com/canonical/operator/issues/871)). The default value of `container.can_connect()` is still False when using `begin()` ("manual mode"), but this release updates `begin_with_initial_hooks()` to set `can_connect` to True and fire pebble-ready for all containers in the charm's metadata. Note that the `SIMULATE_CAN_CONNECT` and `begin_with_initial_hooks()` changes won't change or break your charms, however, they may break charm *tests* -- for example, tests that aren't expecting `pebble-ready` to be fired when calling `begin_with_initial_hooks()`. ##### Other breaking changes - Deprecate controller storage: [#&#8203;882](https://togithub.com/canonical/operator/issues/882). This deprecate `use_juju_for_storage=True` (it's intended for pod-spec charms). - Remove Windows support: [#&#8203;872](https://togithub.com/canonical/operator/issues/872). Juju 3.0 no longer supports Windows deployments, so ops doesn't need to either. ##### Minor changes - Fix logging in can_connect, add tests; remove pebble.Error methods: [#&#8203;860](https://togithub.com/canonical/operator/issues/860). This fixes a couple of logging calls, but also removes the `name()` and `message()` methods from the `ops.pebble.Error` exception subclass. This is theoretically a breaking change, but it is very unlikely these methods were used by charms. - Add ErrorStatus [#&#8203;875](https://togithub.com/canonical/operator/issues/875). This adds a missing unit status value, `error`. - Add Pebble idempotency behavior [#&#8203;876](https://togithub.com/canonical/operator/issues/876). This makes the testing harness's emulated versions of `start()` and `stop()` match Pebble's current behaviour, which makes them idempotent: `start()` now does nothing if the service is already started, and similarly `stop()` does nothing if the service is already stopped. - Clarifies the warning message when local storage is chosen: "not a Kubernetes *podspec* charm" instead of "not a kubernetes charm" (the latter is incorrect). This was done in [#&#8203;882](https://togithub.com/canonical/operator/issues/882). - Removes the long-deprecated `key` argument to charm's `__init__`. This was done in [#&#8203;882](https://togithub.com/canonical/operator/issues/882). - Removes the deprecated (and private!) `Harness._oci_resources` attribute. This was done in [#&#8203;882](https://togithub.com/canonical/operator/issues/882). </details> --- ### Configuration πŸ“… **Schedule**: Branch creation - "every weekend" in timezone Etc/UTC, Automerge - "after 1 am and before 7 am" in timezone Etc/UTC. 🚦 **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/canonical/charmcraft). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTEuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExMS4xIn0=-->

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha β€” closed resolved Renovate PR bumping ops==1.5.4 to 2.0.0 in the spread dependencies requirements (1 file, +1/-1) was merged into main via merge commit 77df49c3; the pin has since progressed to ops==2.15.0.
stealth/space-bunny-alpha β€” closed resolved Merged PR #1009 updated the ops dependency from 1.5.4 to 2.0.0; merge commit 77df49c3 brought in change 38d678aa.
qwen/qwen3.6-35b-a3b β€” β€” Merged automated dependency update upgrading ops from v1.5.4 to v2.0.0. Approved by a reviewer, passed CI checks, and successfully integrated.
qwen3.6-35b-a3b-mtp-q6 β€” β€” Automated dependency update merged, upgrading the ops library from v1.5.4 to v2.0.0. The change was applied without conflicts or comments.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#2811 (confidence 55%)

    Later Renovate ops update to 2.23.4 on the same dependency line; closed unmerged with failing CI.

Related issues

Issue Project State Summary Similarity
#1041 chore(deps): update dependency ops to v2.2.0 - autoclosed charmcraft closed Unmerged ops 2.2.0 update was autoclosed; template work landed in #1055, then Charmcraft removed its ops dependency in merged #1064 (df7e0414).
83%
#964 chore(deps): update dependency attrs to v22.2.0 charmcraft merged Renovate PR #964 merged via merge commit 6cff1214 (branch commit 392f3eb2), bumping the attrs pin from 22.1.0 to 22.2.0 in requirements.txt and requirements-dev.txt.
79%
#1289 chore(deps): update dependencies charmcraft merged Renovate-style dependency refresh merged via commit ccc21079, bumping pins across 3 files (+45/-34) after approval by two reviewers.
78%
#364 chore(deps): update dependencies rockcraft merged Merged dependency updates in PR #364 via commit 1661d115, changing seven files (+152/-174) after approval by two reviewers.
77%
#1189 chore(deps): update dependency referencing to v0.30.0 charmcraft merged Renovate dependency bump PR updating referencing 0.29.1 -> 0.30.0 was approved and merged into main via commit ef15765a (2 files, +2/-2); no CI issues reported.
76%
#1007 chore(deps): update dependency pathspec to v0.11.0 charmcraft merged Renovate PR bumping pathspec 0.10.3 -> 0.11.0 was approved and merged via commit 9b286165 (changes 9e1e9b08), a one-line pin update.
76%
#1445 chore(deps): update dependency pathspec to v0.12.1 charmcraft merged Renovate’s pathspec update from 0.11.2 to 0.12.1 was approved and merged in PR #1445 via commit 30303b21.
76%
#1648 chore(deps): update dependency referencing to v0.34.0 charmcraft merged Renovate updated referencing 0.33.0 to 0.34.0 and merged the change in commit cb854b99 after three approvals; no CI failures were reported.
76%
#516 chore(deps): update development dependencies (non-major) rockcraft merged Renovate PR #516 bumped dev deps (pycodestyle 2.8.0β†’2.11.1, pyflakes 2.4.0β†’2.5.0, ruff 0.1.6β†’0.3.5, typeshed stubs); merged with 2 approvals, no CI failures.
75%
#574 chore(deps): update dependency requests to <2.33 craft-providers closed Closed unmerged; the requests<2.33 bump became obsolete when PR #663 (commit fe786e8) replaced requests-unixsocket and removed the upper pin.
75%