-
Notifications
You must be signed in to change notification settings - Fork 1
fix: make config files & evm/tron chain load optional #530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: ce298d0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
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.
567a4b8 to
ce298d0
Compare
|
There was a problem hiding this 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.
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Minor Changes - [#568](#568) [`109b6f8`](109b6f8) Thanks [@giogam](https://github.com/giogam)! - feat: adds HMAC authentication support for catalog remote - [#559](#559) [`57ee135`](57ee135) Thanks [@ecPablo](https://github.com/ecPablo)! - Add support to decode proposals that use EIP-1967 proxies - [#562](#562) [`aa38817`](aa38817) Thanks [@jkongie](https://github.com/jkongie)! - Removes the import of a root `go.mod` from a scaffolded domain - [#567](#567) [`d06057a`](d06057a) Thanks [@JohnChangUK](https://github.com/JohnChangUK)! - Sui MCMS upgrade ### Patch Changes - [#530](#530) [`dc2c113`](dc2c113) Thanks [@graham-chainlink](https://github.com/graham-chainlink)! - fix: make config files and chain credentials optional --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>




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:
Users can now analyze proposals without credentials.
No breaking changes.