Skip to content
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

Adds deployment labels on Forwarder deployment #16653

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from

Conversation

vyzaldysanchez
Copy link
Contributor

@vyzaldysanchez vyzaldysanchez commented Mar 2, 2025

This PR addresses the first part of https://smartcontract-it.atlassian.net/browse/CRE-338, which consists of tracking deployment information of the Forwarder contract as part of the TypeAndVersion labels.

This deployment info consists of block number and transaction hash. We want to use this info to later fetch SetConfig events to generate the view in a more performant way.

Related PRs

Requires

Supports

Copy link
Contributor

github-actions bot commented Mar 2, 2025

Flakeguard Summary

Ran new or updated tests between develop and d165f9c (task/CRE-338/keystone-forwarder-deployment-lbls).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

35 Results
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestAddCapabilities 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.26s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddCapabilities/no_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.163333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddCapabilities/with_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.096666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNodes 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.27s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNodes/no_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.173333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNodes/with_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.096666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNops 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.26s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNops/no_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.096666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNops/with_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.17s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAppendNodeCapabilities 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.376666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAppendNodeCapabilities/no_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.21s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAppendNodeCapabilities/with_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.163333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 4.55s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_ 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.31s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_/nChains=1 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.113333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_/nChains=3 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.193333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.24s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms/nChains=1 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 996.666666ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms/nChains=3 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.243333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 5.08s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3/fails_multiple_OCR3_contracts_but_address_not_found 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 996.666666ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3/fails_multiple_OCR3_contracts_but_unspecified_address 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.036666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3/mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 956.666666ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3/no_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.13s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3/success_multiple_OCR3_contracts 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 960ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestDeployForwarder 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 770ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestDeployForwarder/should_deploy_forwarder 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 133.333333ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestKeystoneView 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.066666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateDon 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.096666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodeCapabilities 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.05s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodeCapabilities/no_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.033333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodeCapabilities/with_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.016666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodes 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.296666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodes/no_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.126666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodes/with_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.173333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

Copy link
Contributor

github-actions bot commented Mar 2, 2025

Flakeguard Summary

Ran new or updated tests between develop and d165f9c (task/CRE-338/keystone-forwarder-deployment-lbls).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

35 Results
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestAddCapabilities 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.308333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddCapabilities/no_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.21s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddCapabilities/with_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.096666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNodes 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.443333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNodes/no_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.265s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNodes/with_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.176666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNops 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.403333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNops/no_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.203333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAddNops/with_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.2s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAppendNodeCapabilities 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.453333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAppendNodeCapabilities/no_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.21s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestAppendNodeCapabilities/with_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.243333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 4.938333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_ 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.605s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_/nChains=1 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.243333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_/nChains=3 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.36s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.33s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms/nChains=1 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.073333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms/nChains=3 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.258333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 5.605s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3/fails_multiple_OCR3_contracts_but_address_not_found 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.093333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3/fails_multiple_OCR3_contracts_but_unspecified_address 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.126666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3/mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 990ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3/no_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.243333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureOCR3/success_multiple_OCR3_contracts 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.148333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestDeployForwarder 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 721.666666ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestDeployForwarder/should_deploy_forwarder 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 123.333333ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestKeystoneView 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.078333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateDon 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.246666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodeCapabilities 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.311666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodeCapabilities/no_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.126666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodeCapabilities/with_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.185s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodes 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.381666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodes/no_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.12s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestUpdateNodes/with_mcms 0% false false false 6 0 6 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.265s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

Copy link
Contributor

github-actions bot commented Mar 2, 2025

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

Copy link
Contributor

github-actions bot commented Mar 2, 2025

Flakeguard Summary

Ran new or updated tests between develop and a033a5f (task/CRE-338/keystone-forwarder-deployment-lbls).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

9 Results
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestConfigureForwarders 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 7.046666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_ 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.89s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_/nChains=1 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.603333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_/nChains=3 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.286666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 4.156666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms/nChains=1 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.96s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms/nChains=3 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.196666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestDeployForwarder 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 750ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestDeployForwarder/should_deploy_forwarder 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 123.333333ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

Copy link
Contributor

github-actions bot commented Mar 2, 2025

Flakeguard Summary

Ran new or updated tests between develop and e477a75 (task/CRE-338/keystone-forwarder-deployment-lbls).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

9 Results
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestConfigureForwarders 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 7.25s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_ 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 2.803333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_/nChains=1 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.613333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/no_mcms_/nChains=3 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.19s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 4.446666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms/nChains=1 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 3.016666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms/nChains=3 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 1.423333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestDeployForwarder 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 776.666666ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestDeployForwarder/should_deploy_forwarder 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 103.333333ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs.json.

Copy link
Contributor

github-actions bot commented Mar 3, 2025

Flakeguard Summary

Ran new or updated tests between develop and bcde8b6 (task/CRE-338/keystone-forwarder-deployment-lbls).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

6 Results
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestLabeledAddresses_And 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment false 0s @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestLabeledAddresses_And/Multiple_labels 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment false 0s @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 11.61s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 7.77s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms/nChains=1 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 3.716666666s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
TestConfigureForwarders/with_mcms/nChains=3 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset false 4.053333333s @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs-02ce8d70-9a8f-45d9-a8ff-1868363e23c2.json.

@vyzaldysanchez vyzaldysanchez marked this pull request as ready for review March 3, 2025 19:40
@vyzaldysanchez vyzaldysanchez requested review from a team as code owners March 3, 2025 19:40
@@ -131,8 +131,23 @@ func GetContractSets(lggr logger.Logger, req *GetContractSetsRequest) (*GetContr
return nil, fmt.Errorf("failed to get addresses for chain %d: %w", id, err)
}

// Forwarder addresses now have informative labels, but we don't want them to be ignored if no labels are provided for filtering.
// If labels are provided, just filter by those.
forwarderAddrs := make(map[string]deployment.TypeAndVersion)
Copy link
Contributor

Choose a reason for hiding this comment

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

i'm confused by this. can we add some tests?

i think line 145 should 'just do this'. if there are no labels, then 145 should return everything. if there are labels, then it will filter them.

why are forwarder addrs being treated so differently?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because they have labels, line 145 is keeping them out since we are not passing any labels on req.Labels... and if we pass any, it will just return what's specified on the labels and keep the other addresses out of it.

This was added here: #16464

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To clarify, not passing labels keep addresses with labels out of the resulting slice, if that makes sense.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, let's refactor this into two different cases. if the input Labels are empty then set filtered = deployment.LabeledAddresses

and if they are not empty, do filtered.LabeledAddresses(addrs).And(...)

that will maintain the current behavior while also supporting non-empty input labels correctly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@krehermann this is the same as it was before this change. We need to then on each call in which we want all contract sets (unlabeled and forwarders), for example to call TransferableContracts(), we need to call GetContractSets() twice: one without input labels and one with input labels. Because passing labels only return the addresses that match ALL labels, not SOME labels.

So taking that into consideration, it would be one call for all unlabeled contracts, and X calls for X forwarder contract address...

This is why I went with keeping the forwarder addresses here since the label filtering doesn't take into consideration the fact that we may have informational labeled addresses, and that we would like to bring those each time, regardless on whether we pass a labels input or not.

Copy link
Contributor

github-actions bot commented Mar 5, 2025

Flakeguard Summary

Ran new or updated tests between develop and ce86908 (task/CRE-338/keystone-forwarder-deployment-lbls).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

1 Results
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestAddNops/no_mcms 0% false false false 1 0 1 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset true 230ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation

Artifacts

For detailed logs of the failed tests, please refer to the artifact failed-test-results-with-logs-0a04c0a2-cd22-4f02-a7ad-5864338e2aa7.json.

@vyzaldysanchez vyzaldysanchez requested a review from a team as a code owner March 10, 2025 15:57
@cl-sonarqube-production
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
28.0% Duplication on New Code (required ≤ 10%)

See analysis details on SonarQube

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