Skip to content

Update rc containers to allow main packages with multiple files.#937

Draft
winder wants to merge 2 commits intomainfrom
will/rc-build-fix
Draft

Update rc containers to allow main packages with multiple files.#937
winder wants to merge 2 commits intomainfrom
will/rc-build-fix

Conversation

@winder
Copy link
Collaborator

@winder winder commented Mar 17, 2026

One of the rc container builds stopped working because the main.go file was split into two parts. This PR updates all containers to build the package rather than the a specific file.

@winder winder marked this pull request as ready for review March 17, 2026 15:03
@winder winder requested review from a team and skudasov as code owners March 17, 2026 15:03
Copilot AI review requested due to automatic review settings March 17, 2026 15:03
Copy link
Contributor

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

Updates service Docker builds to build packages from directories (go build .) rather than a single main.go, aligning builds with standard Go multi-file main packages and supporting recent repository layout changes in the dev environment tooling.

Changes:

  • Switch verifier/pricer/executor Docker builds from go build main.go to go build ..
  • Update indexer/aggregator Docker builds to build from */cmd directories and adjust the release-stage COPY paths accordingly.
  • Fix build/devenv/Justfile production build recipe to call service recipes from their current top-level locations (no services/ prefix).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
verifier/Dockerfile Build the verifier from the package directory rather than a single file.
pricer/Dockerfile Build the pricer from the package directory rather than a single file.
executor/Dockerfile Build the executor from the package directory rather than a single file.
indexer/Dockerfile Build from indexer/cmd and copy the resulting binary into the runtime image.
aggregator/Dockerfile Build from aggregator/cmd and copy the resulting binary into the runtime image.
build/devenv/Justfile Update build-docker-rc recipe to reference top-level service Justfiles.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@winder winder marked this pull request as draft March 17, 2026 15:11
@github-actions
Copy link

Code coverage report:

Package main will/rc-build-fix diff
github.com/smartcontractkit/chainlink-ccv/aggregator 48.04% 48.04% +0.00%
github.com/smartcontractkit/chainlink-ccv/bootstrap 42.35% 42.35% +0.00%
github.com/smartcontractkit/chainlink-ccv/cmd 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/committee 100.00% 100.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/common 52.89% 52.89% +0.00%
github.com/smartcontractkit/chainlink-ccv/executor 47.80% 47.80% +0.00%
github.com/smartcontractkit/chainlink-ccv/indexer 36.80% 36.80% +0.00%
github.com/smartcontractkit/chainlink-ccv/integration 45.68% 45.68% +0.00%
github.com/smartcontractkit/chainlink-ccv/pkg 100.00% 100.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/pricer 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/protocol 67.76% 67.76% +0.00%
github.com/smartcontractkit/chainlink-ccv/verifier 50.00% 51.59% +1.59%

WARNING: go tool cover failed for coverage_target.out
cover: no required module provides package github.com/smartcontractkit/chainlink-ccv/verifier/pkg/commit; to add it:
go get github.com/smartcontractkit/chainlink-ccv/verifier/pkg/commit
WARNING: go tool cover failed for coverage.out
cover: no required module provides package github.com/smartcontractkit/chainlink-ccv/verifier/pkg/commit; to add it:
go get github.com/smartcontractkit/chainlink-ccv/verifier/pkg/commit

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