Skip to content

Conversation

@graham-chainlink
Copy link
Collaborator

@graham-chainlink graham-chainlink commented Oct 23, 2025

Fixes issue where users needed dummy config files with evm deployer key to analyze MCMS proposals locally.

Context: https://chainlink-core.slack.com/archives/C08QF1BEW4T/p1761128244593229

Changes:

  • Config files now optional, falls back to environment variables
  • EVM and Tron chains only load when credentials provided (key or KMS)
  • Added tests for optional config and credential scenarios

Users can now analyze proposals without credentials.

No breaking changes.

@changeset-bot
Copy link

changeset-bot bot commented Oct 23, 2025

🦋 Changeset detected

Latest commit: ce298d0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
chainlink-deployments-framework Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@graham-chainlink graham-chainlink changed the title feat: make config files & evm/tron chain load optional fix: make config files & evm/tron chain load optional Oct 23, 2025
Fixes issue where users needed dummy config files with deployer keys to analyze MCMS proposals locally.

Context: https://chainlink-core.slack.com/archives/C08QF1BEW4T/p1761128244593229

Changes:
- Config files now optional, falls back to environment variables
- EVM and Tron chains only load when credentials provided (key or KMS)
- Added tests for optional config and credential scenarios

Users can now analyze proposals without credentials by using:
  environment.WithoutJD() + environment.OnlyLoadChainsFor([]uint64{})

No breaking changes.
@cl-sonarqube-production
Copy link

@graham-chainlink graham-chainlink marked this pull request as ready for review October 24, 2025 02:09
@graham-chainlink graham-chainlink requested a review from a team as a code owner October 24, 2025 02:09
@Copilot Copilot AI review requested due to automatic review settings October 24, 2025 02:09
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

This PR makes configuration files and blockchain credentials optional, allowing users to analyze MCMS proposals without needing dummy config files or credentials.

Key changes:

  • Configuration now falls back to environment variables when local config files don't exist
  • EVM and Tron chain loaders only initialize when credentials (deployer key or KMS config) are provided
  • Added comprehensive test coverage for optional configurations and credential scenarios

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
engine/cld/config/env.go Updated to use cfgenv.Load() for fallback behavior and documented the new loading strategy
engine/cld/config/config_test.go Modified test to verify fallback to environment variables when config file is missing
engine/cld/chains/chains.go Added conditional loading logic for EVM and Tron chains based on credential availability
engine/cld/chains/chains_test.go Added comprehensive tests for different credential scenarios
.changeset/some-plants-doubt.md Added changeset documenting the patch-level change

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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