Skip to content

test: opt rollingops and nginx_k8s in to warnings-as-errors - #672

Open
tonyandrewmeyer wants to merge 1 commit into
canonical:mainfrom
tonyandrewmeyer:rainy/519-warnings-as-errors-remaining
Open

tonyandrewmeyer wants to merge 1 commit into
canonical:mainfrom
tonyandrewmeyer:rainy/519-warnings-as-errors-remaining

Conversation

@tonyandrewmeyer

@tonyandrewmeyer tonyandrewmeyer commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

These are two packages that were left out when the rest of the repo opted in to warnings-as-errors, and each needed a fix first.

  • rollingops was resolving ops 3.6.0 in its own lock, which leaks a finalizer on teardown, so six tests failed with PytestUnraisableExceptionWarning. Bumping the lock to 3.8.2 clears it, the same way it did for the other packages before test: opt six packages in to warnings-as-errors #612 merged.
  • nginx_k8s was on ops 3.2.0, and bumping that left one genuine failure: _has_config_changed reads the result of Container.pull and then drops it, so the file is never closed. Closing it is what ops' own docs now tell you to do, and the with form works back to ops 3.0, so the ops>=3 floor is fine as it stands.

Refs #519

These were the two packages left out when the rest of the repo opted
in. Both needed a fix first.

rollingops was resolving ops 3.6.0, which leaks a finalizer on teardown;
bumping the lock to 3.8.2 clears it, the same way it did for the other
packages.

nginx_k8s leaks the file that _has_config_changed pulls from the
container, because the result of Container.pull is read and then
dropped. Close it.

Refs canonical#519

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PM2tqGcK4mYRFF4WU5uBXn
@tonyandrewmeyer
tonyandrewmeyer marked this pull request as ready for review September 10, 2026 06:34
@tonyandrewmeyer
tonyandrewmeyer requested review from a team as code owners September 10, 2026 06:34
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.

2 participants