Skip to content

build/devenv: Review feedback from earlier pull requests.#1148

Draft
winder wants to merge 6 commits into
will/devenv-cli-improvementsfrom
will/pr-stack-followup
Draft

build/devenv: Review feedback from earlier pull requests.#1148
winder wants to merge 6 commits into
will/devenv-cli-improvementsfrom
will/pr-stack-followup

Conversation

@winder
Copy link
Copy Markdown
Collaborator

@winder winder commented Jun 2, 2026

PR Chain

There are multiple open pull requests that feed into each other:

Description

Testing

Checklist

  • Breaking changes documented in changelog (see changelog directory)
  • Cross link related PRs (in this or other repositories)
  • just lint fix - no new lint errors
  • just generate - mocks and protobufs are up to date

winder added 6 commits June 2, 2026 15:41
Feedback from #1133

Add devenvruntime.DecodeConfig[T] to replace the identical
marshal/unmarshal boilerplate repeated across all 10 component decode
functions; also replace stringSlicesEqual with slices.Equal per review
feedback. Each component's decode function is now a single typed call
plus its own version check, removing ~80 lines of duplicated code.
Feedback from #1137

Move omitempty from a dead validate tag into the toml tag for NodeSets
(toml:"nodesets,omitempty") and remove the stale "fallback" reference
from the NewEnvironmentWithRegistry doc comment, which was removed in
an earlier PR.
Feedback for #1133

Add an early nil check to DecodeConfig so that a missing config section
(raw == nil) returns the zero value of T without error, matching the
guard that was required on the original per-component decode functions.
Feedback for #1138

Tighten the phased runtime version check to required exact-match using
CheckConfigVersion, update tests to supply version=1, and add tests for
absent and wrong versions; also fix a stale topology path and grammar
error in env-phased.toml and a ccv command typo in the CI workflow.
Update the LoadOutput version-mismatch error to list both supported
versions (0 legacy, 1 phased), extract a pure stripPrivateKeys helper
from storePhasedOutput, and fix the test to call it directly instead of
re-implementing the stripping loop (which also had a k[0] panic risk).
Rename the private configKey constant to Key in each component package
and update all internal and cross-component callsites to use the typed
constant instead of a raw string literal.
@winder winder force-pushed the will/pr-stack-followup branch from d507ac7 to 66e9b96 Compare June 2, 2026 19:41
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Code coverage report:

Package will/devenv-cli-improvements will/pr-stack-followup Diff
github.com/smartcontractkit/chainlink-ccv/aggregator 49.35% 49.31% -0.04%
github.com/smartcontractkit/chainlink-ccv/bootstrap 54.14% 54.14% +0.00%
github.com/smartcontractkit/chainlink-ccv/cli 65.13% 65.13% +0.00%
github.com/smartcontractkit/chainlink-ccv/cmd 15.54% 15.54% +0.00%
github.com/smartcontractkit/chainlink-ccv/common 56.54% 56.54% +0.00%
github.com/smartcontractkit/chainlink-ccv/executor 45.97% 45.97% +0.00%
github.com/smartcontractkit/chainlink-ccv/indexer 37.67% 37.67% +0.00%
github.com/smartcontractkit/chainlink-ccv/integration 46.23% 46.23% +0.00%
github.com/smartcontractkit/chainlink-ccv/pkg 84.62% 84.62% +0.00%
github.com/smartcontractkit/chainlink-ccv/pricer 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/protocol 63.06% 63.06% +0.00%
github.com/smartcontractkit/chainlink-ccv/verifier 34.49% 34.49% +0.00%
Total 46.60% 46.50% -0.10%

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