Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ccip-3389 offchain view to include active jobspecs #16572

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

Conversation

AnieeG
Copy link
Contributor

@AnieeG AnieeG commented Feb 25, 2025

More comprehensible views with -

  1. Decoded CCIPHome configs
  2. Decoded address bytes
  3. Active Jobspecs in nops view
  4. Consolidate pool views

@AnieeG AnieeG requested review from a team as code owners February 25, 2025 21:07
@AnieeG AnieeG marked this pull request as draft February 25, 2025 21:07
Copy link
Contributor

github-actions bot commented Feb 25, 2025

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@AnieeG AnieeG force-pushed the CCIP-3389-offchain-view branch from b84301f to 5cfac99 Compare March 5, 2025 22:39
Copy link
Contributor

github-actions bot commented Mar 5, 2025

Flakeguard Summary

Ran new or updated tests between develop and 7de33f5 (CCIP-3389-offchain-view).

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
Test_AnalyzeRmnHomeSetConfig 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/common/proposalutils false 10ms @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @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-2f1a8b7b-e38d-4fe1-bfb9-91269dfd7aee.json.

Copy link
Contributor

github-actions bot commented Mar 5, 2025

Flakeguard Summary

Ran new or updated tests between develop and e1f41d9 (CCIP-3389-offchain-view).

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
Test_AnalyzeRmnHomeSetConfig 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/common/proposalutils false 10ms @smartcontractkit/ccip-tooling, @smartcontractkit/ccip-offchain, @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-dc1fe0cb-b365-4ac5-9b36-715226e5c79e.json.

Copy link
Contributor

github-actions bot commented Mar 6, 2025

Flakeguard Summary

Ran new or updated tests between develop and 8489625 (CCIP-3389-offchain-view).

View Flaky Detector Details | Compare Changes

Found Flaky Tests ❌

3 Results
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
Test_RegisterNodes/no_ops_in_proposal_if_node_already_exists 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset/internal false 10ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
Test_RegisterNodes/success_create_add_nodes/mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset/internal false 10ms @smartcontractkit/keystone, @smartcontractkit/core, @smartcontractkit/deployment-automation
Test_RegisterNodes/success_create_add_nodes/no_mcms 0% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/keystone/changeset/internal false 13.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-b401c58e-847e-4bb9-9508-9bb2d8f67388.json.

@AnieeG AnieeG marked this pull request as ready for review March 6, 2025 01:51
@@ -339,6 +339,7 @@ func BuildOCR3ConfigForCCIPHome(
if !exists {
return nil, fmt.Errorf("no OCR config for chain %d", destSelector)
}
p2pIDs = append(p2pIDs, node.PeerID)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

nodes.PeerIDs() was returning peerids in a sorted manner which was making peerid, transmitter account , signer combination getting jumbled up later in this func. Fixed the order here

OffchainPublicKey [32]byte `json:"offchainPublicKey"`
}

func (n RMNHomeNode) MarshalJSON() ([]byte, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

no need for custom marshal unmarshal as we are saving decode peerids and []byte type already marshals correctly to hex.EncodeToString

// to ensure the view is valid
b, err := jsonData.MarshalJSON()
require.NoError(t, err)
fmt.Println(string(b))
Copy link
Contributor

Choose a reason for hiding this comment

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

Needed?

@@ -341,7 +342,8 @@ func (s *UnimplementedJobServiceClient) GetProposal(ctx context.Context, in *job

// ListJobs implements job.JobServiceClient.
func (s *UnimplementedJobServiceClient) ListJobs(ctx context.Context, in *jobv1.ListJobsRequest, opts ...grpc.CallOption) (*jobv1.ListJobsResponse, error) {
panic("unimplemented")
// returns blank response
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe move this comment to the doc comment and explain reasoning as to why

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants