Skip to content

Conversation

SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Oct 15, 2025

@SuperSandro2000 SuperSandro2000 force-pushed the docker-test-target branch 9 times, most recently from 5208e94 to 3fabf7c Compare October 15, 2025 18:44
@SuperSandro2000 SuperSandro2000 marked this pull request as ready for review October 15, 2025 18:51
@SuperSandro2000 SuperSandro2000 force-pushed the docker-test-target branch 2 times, most recently from 76897ff to a7e20f6 Compare October 16, 2025 15:28
Copy link

@Copilot Copilot AI left a 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.

Copy link
Contributor

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/sapcc/go-makefile-maker 0.00% (ø)
github.com/sapcc/go-makefile-maker/internal/dockerfile 0.00% (ø)
github.com/sapcc/go-makefile-maker/internal/makefile 7.69% (-0.21%) 👎

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/sapcc/go-makefile-maker/internal/dockerfile/docker.go 0.00% (ø) 0 0 0
github.com/sapcc/go-makefile-maker/internal/makefile/makefile.go 0.00% (ø) 209 (+9) 0 209 (+9)
github.com/sapcc/go-makefile-maker/main.go 0.00% (ø) 0 0 0

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
Copy link
Contributor

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/sapcc/go-makefile-maker 0.00% (ø)
github.com/sapcc/go-makefile-maker/internal/dockerfile 0.00% (ø)
github.com/sapcc/go-makefile-maker/internal/makefile 7.69% (-0.21%) 👎

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/sapcc/go-makefile-maker/internal/dockerfile/docker.go 0.00% (ø) 0 0 0
github.com/sapcc/go-makefile-maker/internal/makefile/makefile.go 0.00% (ø) 209 (+9) 0 209 (+9)
github.com/sapcc/go-makefile-maker/main.go 0.00% (ø) 0 0 0

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.

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