Skip to content

🔧 ci: fix CI rot - #117

Merged
GeigerJ2 merged 2 commits into
aiidateam:masterfrom
GeigerJ2:ci/fix-ci-rot
May 20, 2026
Merged

🔧 ci: fix CI rot#117
GeigerJ2 merged 2 commits into
aiidateam:masterfrom
GeigerJ2:ci/fix-ci-rot

Conversation

@GeigerJ2

@GeigerJ2 GeigerJ2 commented May 20, 2026

Copy link
Copy Markdown
Contributor

Surfaced by occuring unrelated CI failures on #116.

Appearing here after empty commit 54506ef:
image

Will squash-merge to obliterate the initial empty commit once approved 💥

No file changes. Purpose is to run CI on a fresh branch off
`upstream/master` so the resulting failures (pre-commit
`pretty-format-toml`/`yaml`, `mypy` unused-ignore in `launch.py`,
RabbitMQ-backed daemon tests) can be confirmed as pre-existing CI rot
rather than regressions from any feature work. Follow-up commits on this
branch will address each in turn.
@GeigerJ2
GeigerJ2 requested a review from edan-bainglass May 20, 2026 12:45
Three independent CI failures appeared on this branch, all caused by
upstream dep drift rather than any code change here. Bundle the fixes:

- `.github/workflows/ci.yml`: pin `rabbitmq:latest` →
  `rabbitmq:3.8.14-management`. RabbitMQ 4.x rejects transient
  non-exclusive queues by default, which broke 5 daemon-backed tests
  here. Matches the pin `aiida-core` uses in its own
  `ci-code.yml`/`test-install.yml`.

- `.pre-commit-config.yaml`: bump `language-formatters-pre-commit-hooks`
  v2.11.0 → v2.16.0. The v2.11.0 hook imports `pkg_resources`; modern
  Python venvs no longer ship `setuptools` by default, so
  `pretty-format-toml` and `pretty-format-yaml` fail with
  `ModuleNotFoundError`. v2.14.0 dropped the `pkg_resources` import.

- `src/aiida_shell/launch.py`: drop the dead `# type:
  ignore[assignment]` on the `code = ShellCode(...).store()` line. Newer
  mypy type-checks the assignment cleanly, so the comment was failing
  the `mypy` pre-commit hook as `unused-ignore` under `strict = true`.

@edan-bainglass edan-bainglass left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@GeigerJ2
GeigerJ2 merged commit 49606d9 into aiidateam:master May 20, 2026
6 checks passed
@GeigerJ2
GeigerJ2 deleted the ci/fix-ci-rot branch May 20, 2026 13:26
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