test(gateway-image): probe package imports, not pre-refactor flat modules #430

Merged
didericis merged 1 commits from fix-gateway-image-test-imports into main 2026-07-20 14:36:51 -04:00
Owner

Closes #429.

test_python_imports_supervise_module probed the gateway image with import supervise; import supervise_server — the flat sibling modules 5ad3449 replaced with the installed bot_bottle package. Run against the current image it fails with ModuleNotFoundError: No module named 'supervise'.

It survived because the whole TestGatewayImage class carries a GITEA_ACTIONS skip (interactive-only, the build pulls a large base), so CI never executes it.

Verification

All 4 tests in the class pass against a freshly built gateway image locally.

Whether this class should run in CI at all is left alone here — that overlaps #414 and #426.

Closes #429. `test_python_imports_supervise_module` probed the gateway image with `import supervise; import supervise_server` — the flat sibling modules `5ad3449` replaced with the installed `bot_bottle` package. Run against the current image it fails with `ModuleNotFoundError: No module named 'supervise'`. It survived because the whole `TestGatewayImage` class carries a `GITEA_ACTIONS` skip (interactive-only, the build pulls a large base), so CI never executes it. ## Verification All 4 tests in the class pass against a freshly built gateway image locally. Whether this class should run in CI at all is left alone here — that overlaps #414 and #426.
didericis added 1 commit 2026-07-20 13:40:25 -04:00
test(gateway-image): probe package imports, not pre-refactor flat modules
test / stage-firecracker-inputs (pull_request) Successful in 3s
test / integration-docker (pull_request) Successful in 10s
tracker-policy-pr / check-pr (pull_request) Successful in 12s
test / unit (pull_request) Successful in 1m31s
test / build-infra (pull_request) Successful in 3m45s
test / integration-firecracker (pull_request) Successful in 1m34s
test / coverage (pull_request) Successful in 1m59s
test / publish-infra (pull_request) Has been skipped
test / stage-firecracker-inputs (push) Successful in 3s
test / integration-docker (push) Successful in 16s
Update Quality Badges / update-badges (push) Failing after 42s
lint / lint (push) Successful in 53s
test / unit (push) Successful in 1m35s
test / build-infra (push) Successful in 3m30s
test / integration-firecracker (push) Successful in 1m46s
test / coverage (push) Successful in 2m1s
test / publish-infra (push) Successful in 2m14s
2de223a33b
test_python_imports_supervise_module probed the image with
`import supervise; import supervise_server`, the flat sibling modules that
5ad3449 replaced. They now live in the installed package, so the test fails
with ModuleNotFoundError when actually run.

It went unnoticed because the whole class carries a GITEA_ACTIONS skip — it
is interactive-only, so CI never executes it.

All 4 tests in the class now pass against a freshly built gateway image.

Closes #429.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
didericis merged commit 2de223a33b into main 2026-07-20 14:36:51 -04:00
didericis deleted branch fix-gateway-image-test-imports 2026-07-20 14:36:54 -04:00
Sign in to join this conversation.