Skip to content

fix: tmp no strict bootstrap config parsing#1232

Merged
bukata-sa merged 2 commits into
mainfrom
fix/bootstrap-config-no-strict
Jul 3, 2026
Merged

fix: tmp no strict bootstrap config parsing#1232
bukata-sa merged 2 commits into
mainfrom
fix/bootstrap-config-no-strict

Conversation

@bukata-sa

@bukata-sa bukata-sa commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Description

Disable bootstrap tmpl config strict mode parsing to allow deploying pods with old monitoring config layout

Testing

CI checks

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

@bukata-sa bukata-sa changed the title no strict fix: tmp no strict bootstrap config parsing Jul 3, 2026
@bukata-sa bukata-sa marked this pull request as ready for review July 3, 2026 15:27
@bukata-sa bukata-sa requested a review from a team as a code owner July 3, 2026 15:27
Copilot AI review requested due to automatic review settings July 3, 2026 15:27
@bukata-sa bukata-sa force-pushed the fix/bootstrap-config-no-strict branch from 6ff184a to 64b6330 Compare July 3, 2026 15:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Temporarily relaxes bootstrap TOML parsing to allow config migrations to proceed without failing on unknown/undecoded fields.

Changes:

  • Switches bootstrap config loading from strict TOML decoding to a non-strict decode path.
  • Replaces parseTOMLStrict with a parseTOML(..., strict bool) helper and gates the undecoded-fields error behind the strict flag.

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

Comment thread bootstrap/config.go Outdated
Comment thread bootstrap/config.go Outdated
Comment on lines 215 to 216
func parseTOML[T any](tomlString string, out T, strict bool) error {
md, err := toml.Decode(tomlString, out)
Comment thread bootstrap/config.go
makramkd
makramkd previously approved these changes Jul 3, 2026
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Code coverage report:

Package main fix/bootstrap-config-no-strict Diff
github.com/smartcontractkit/chainlink-ccv/aggregator 49.50% 49.55% +0.05%
github.com/smartcontractkit/chainlink-ccv/bootstrap 57.96% 57.96% +0.00%
github.com/smartcontractkit/chainlink-ccv/cli 65.13% 65.13% +0.00%
github.com/smartcontractkit/chainlink-ccv/cmd 13.55% 13.55% +0.00%
github.com/smartcontractkit/chainlink-ccv/common 52.79% 52.79% +0.00%
github.com/smartcontractkit/chainlink-ccv/executor 46.47% 46.47% +0.00%
github.com/smartcontractkit/chainlink-ccv/indexer 35.44% 35.48% +0.04%
github.com/smartcontractkit/chainlink-ccv/integration 46.25% 46.25% +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 63.06% 63.06% +0.00%
github.com/smartcontractkit/chainlink-ccv/verifier 35.17% 35.18% +0.01%
Total 46.80% 46.90% +0.10%

@bukata-sa bukata-sa enabled auto-merge July 3, 2026 15:55
@bukata-sa bukata-sa requested a review from makramkd July 3, 2026 16:17
@bukata-sa bukata-sa added this pull request to the merge queue Jul 3, 2026
Merged via the queue into main with commit f565685 Jul 3, 2026
36 checks passed
@bukata-sa bukata-sa deleted the fix/bootstrap-config-no-strict branch July 3, 2026 16:37
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.

5 participants