Repository navigation
docker: copy fixtures/server so the wheel can build - #176
Open
abu-tahir-0 wants to merge 1 commit into
Open
abu-tahir-0 wants to merge 1 commit into
abu-tahir-0 wants to merge 1 commit into
Conversation
harness/pyproject.toml force-includes ../fixtures/server, but the build stage copied only harness/ and the ignore file excluded fixtures/ entirely, so `python -m build` failed with "Forced include not found" and the image could not be built. Copy that one fixture package and let the ignore file through it. Verified with a local build and `version`.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The image could not be built from
main.harness/pyproject.tomlforce-includes../fixtures/serverin the wheel, but the build stage only copiedharness/, andDockerfile.dockerignoreexcludedfixtures/from the build context entirely:The release workflow's
docker/build-push-actionwould hit the same failure. Found while working on #150.Solution
fixtures/server/to/src/fixtures/server/.Dockerfile.dockerignoreexcludesfixtures/*but letsfixtures/server/and its contents back in, so no other test fixture enters the context.tests/harness/test_distribution.pyasserts both, so the copy and the ignore exception cannot drift.Testing
docker build -t toolgauge-build-fix .— succeeds.docker run --rm toolgauge-build-fix version—toolgauge 0.4.0 (grades MCP 2026-07-28).pytest tests/harness/test_distribution.py— 12 passed.Impact
The release image jobs can build again, and the image still runs as the non-root user with only the fixture package the wheel declares.