-
Notifications
You must be signed in to change notification settings - Fork 2
Add docker test target which can be easily run in concourse #391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
5208e94
to
3fabf7c
Compare
3fabf7c
to
00a1259
Compare
76897ff
to
a7e20f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a Docker test stage to run static checks and coverage in CI (e.g., Concourse), while making REUSE checks optional and adding Postgres support where needed.
- Add a dedicated Dockerfile test stage to cache tool installation and run static checks/coverage.
- Make REUSE tooling conditional via cfg.Reuse.Enabled and propagate into Makefile targets and Dockerfile.
- Pass golang scan results into Dockerfile rendering; adjust .dockerignore and config to support test needs.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
main.go | Pass golang scan result into Dockerfile rendering to conditionally include test dependencies. |
internal/makefile/makefile.go | Gate REUSE installation and checks behind reuseEnabled; adjust related prerequisites. |
internal/dockerfile/dockerignore.tmpl | Stop ignoring files needed for linting/REUSE (e.g., LICENSE, config files). |
internal/dockerfile/docker.go | Update RenderConfig to accept scan result; add test packages and ignores based on REUSE/Postgres. |
internal/dockerfile/Dockerfile.tmpl | Add a “test” build stage that installs tools, runs static checks, and generates coverage. |
internal/core/config.go | Introduce DockerfileConfig.ExtraTestPackages to allow project-specific test-time packages. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
a7e20f6
to
ebc1fdc
Compare
e9d1106
to
4f0313b
Compare
Merging this branch will decrease overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. |
1 similar comment
Merging this branch will decrease overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. |
see sapcc/keppel#604 and sapcc/limes#784