Skip to content

[MISC] Improve test_upgrade.py resiliency - #215

Merged
astrojuanlu merged 7 commits into
8.4/edgefrom
juanlu/8.4/upgrade-tests-resiliency
Sep 17, 2026
Merged

astrojuanlu merged 7 commits into
8.4/edgefrom
juanlu/8.4/upgrade-tests-resiliency

Conversation

@astrojuanlu

Copy link
Copy Markdown
Contributor

While working on porting canonical/mysql-operators#471 to here, I noted that test_upgrade.py was already very unstable. In fact, it's been consistently failing in the past few days:

Locally the failure rate was similar, which was obviously disrupting my ability to test the new changes. So I'm pushing this first.

I also re-generated the poetry.lock files, needed after we merged #62.

Comment thread kubernetes/src/charm.py
Comment thread kubernetes/tests/integration/integration/test_upgrade.py
Comment thread machines/tests/integration/integration/test_upgrade.py
@astrojuanlu

Copy link
Copy Markdown
Contributor Author

There's 1 last reliability issue that seems deeply connected with the charm-refresh mechanism. Still investigating, asked for some help.

@astrojuanlu

Copy link
Copy Markdown
Contributor Author

Spoke with @carlcsaposs-canonical about the failure seen in https://github.com/canonical/mysql-router-operators/actions/runs/33254161600/job/99106512102?pr=215. It's difficult to say for certain because of juju/juju#19874 but it looks like some of the units aren't getting events towards the end of the test. And yet, charm-refresh is setting the databag correctly. I'll keep an eye on this test and if it happens more times I'll report to Juju.

@astrojuanlu
astrojuanlu marked this pull request as ready for review August 31, 2026 08:46

@paulomach paulomach left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@sinclert-canonical sinclert-canonical left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Only blocking comment is the one about the standardization of raised exceptions.

Comment thread common/common/workload.py Outdated
Comment thread common/common/workload.py Outdated
Comment thread machines/tests/integration/integration/test_upgrade.py Outdated
Assisted-by: OpenRouter:z-ai/glm-5.2 opencode
Assisted-by: OpenRouter:z-ai/glm-5.2 opencode
Assisted-by: OpenRouter:z-ai/glm-5.2 opencode
@astrojuanlu
astrojuanlu force-pushed the juanlu/8.4/upgrade-tests-resiliency branch from 06bfd98 to b30c6af Compare September 16, 2026 08:28
@astrojuanlu
astrojuanlu merged commit e28539b into 8.4/edge Sep 17, 2026
62 of 67 checks passed
@astrojuanlu
astrojuanlu deleted the juanlu/8.4/upgrade-tests-resiliency branch September 17, 2026 11:03
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.

3 participants