Skip to content

fix(docker): keep tests/ in build context so the media-wiring gate can run - #74

Merged
ashneil12 merged 1 commit into
mainfrom
fix/prod-dockerignore-tests
Jun 24, 2026
Merged

ashneil12 merged 1 commit into
mainfrom
fix/prod-dockerignore-tests

Conversation

@ashneil12

Copy link
Copy Markdown
Owner

Cherry-pick of canary e89f98bba (NousResearch#143 on canary). Un-excludes tests/ in .dockerignore.

Why now: the prod docker-publish "Media tool wiring regression gate" runs pytest tests/tools/test_media_generation_wiring.py inside the built image, but a blanket tests/ line in .dockerignore keeps it out → the gate dies with file or directory not found (exit 4) and the image publish fails. This has been blocking all prod image builds (pre-existing; unrelated to other changes). Restores parity with canary so the prod fork can publish images again.

🤖 Generated with Claude Code

…n run (NousResearch#143)

The docker-publish "Media tool wiring regression gate" runs
`pytest tests/tools/test_media_generation_wiring.py` INSIDE the freshly built
image. An upstream sync re-added a blanket `tests/` line to .dockerignore, so the
test never lands in the image and the gate fails with
`file or directory not found: tests/tools/test_media_generation_wiring.py`
(no tests ran, exit 4) — blocking the publish even though the image builds fine.

Un-exclude tests/ (same class of regression as the apps/ one fixed in NousResearch#141). The
fork needs both apps/desktop and tests/ in the build context; upstream excludes
both. Restores the fork's prior working state.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🔎 Lint report: fix/prod-dockerignore-tests vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 10984 on HEAD, 10984 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 5762 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@ashneil12
ashneil12 merged commit 5224d8e into main Jun 24, 2026
39 of 40 checks passed
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.

1 participant