ops 2.18.0 and ops-scenario 7.1.0 released

Hello all, we’re thrilled to announce release of ops==2.18.0 and ops-scenario==7.1.0:

The Ops documentation has been dramatically revamped, with tutorials and how-to guides moved from Juju documentation to Ops where they belong, among with a myriad of other improvements.

The deferred event queue is now deduplicated, which should make charms feel more responsive.

Unit testing has been made faster by using an in-memory state database and a few other tricks.

2 Likes

P.S. ops-scenario 7.1.1 was released and 7.1.0 yanked to fix the deps version range.

2 Likes

And another follow-up: ops 2.18.1, and ops-scenario 7.1.2, fixing a few bugs, particularly:

  • If an event handler deferred and another handler of the same event subsequently did not defer, and there was already a queued deferred case for the first defer, ops would crash.
  • Getting the Juju version when testing with Scenario would return 0.0.0 rather than the version set in the context.

Apologies for these; we hope no more issues will be found with 2.18 and 7.1.

2 Likes