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

Create an empty registry if external registry is not connected #14174

Merged
merged 10 commits into from
Aug 22, 2024

Conversation

DeividasK
Copy link
Collaborator

@DeividasK DeividasK commented Aug 21, 2024

Paired with @cedric-cordenier

@DeividasK DeividasK marked this pull request as ready for review August 21, 2024 11:10
@DeividasK DeividasK requested review from a team as code owners August 21, 2024 11:10
bolekk
bolekk previously approved these changes Aug 21, 2024
@@ -199,3 +200,30 @@ func NewRegistry(lggr logger.Logger) *Registry {
lggr: lggr.Named("CapabilitiesRegistry"),
}
}

// TestMetadataRegistry is a test implementation of the metadataRegistry
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I don't think it should be called "Test", maybe "Dummy" or "Default" or something similiar

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree with your sentiment. I had this discussion with @cedric-cordenier, too. Given that I am using it for testing at the moment and we don't have a clear product need, Test seems "calling it what it is".

golang.org/x/sync v0.7.0
golang.org/x/term v0.22.0
golang.org/x/text v0.16.0
golang.org/x/crypto v0.26.0
Copy link
Contributor

Choose a reason for hiding this comment

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

are all these expected?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is what showed up after go get github.com/smartcontractkit/chainlink-common@<hash> && make gomodtidy, so I assume so 🤷‍♂️

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, these are from Ryan bumping the deps for the generators (in common)

Members: []p2ptypes.PeerID{
peerID,
},
F: 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

I hope this won't cause any validation issues down the line. Are we ever going to look at these values in other componenets?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Are we ever going to look at these values in other components?

Not planned atm.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah it would be nice if this was configurable: I need f = 1 for e2e testing

@DeividasK DeividasK added this pull request to the merge queue Aug 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 21, 2024
@bolekk bolekk added this pull request to the merge queue Aug 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 21, 2024
@DeividasK DeividasK added this pull request to the merge queue Aug 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 22, 2024
@DeividasK DeividasK added this pull request to the merge queue Aug 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 22, 2024
archseer
archseer previously approved these changes Aug 22, 2024
@archseer archseer added this pull request to the merge queue Aug 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 22, 2024
@lukaszcl
Copy link
Collaborator

@DeividasK you have to update the branch and merge develop. Otherwise PR will be kicked out of merge queue due to recent changes to CI on develop.

@@ -33,8 +33,8 @@ require (
github.com/slack-go/slack v0.12.2
github.com/smartcontractkit/chain-selectors v1.0.21
github.com/smartcontractkit/chainlink-automation v1.0.4
github.com/smartcontractkit/chainlink-common v0.2.2-0.20240816204408-654165b6ee33
github.com/smartcontractkit/chainlink-testing-framework v1.34.5
Copy link
Collaborator

@lukaszcl lukaszcl Aug 22, 2024

Choose a reason for hiding this comment

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

@DeividasK please use chainlink-testing-framework v1.34.5. I'm not sure about chainlink-common v0.2.2-0.20240816204408-654165b6ee33. Do you have any reasons to use a different version for it? Also, once you update the mods in integration-tests/ then please do:

cd integration-tests/ 
go mod tidy

and

cd integration-tests/load
go mod tidy

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure about chainlink-common v0.2.2-0.20240816204408-654165b6ee33. Do you have any reasons to use a different version for it?

Yes, the latest version has the changes that fix keystone integration tests.

@DeividasK DeividasK dismissed stale reviews from bolekk and archseer via 7545bb6 August 22, 2024 09:01
@DeividasK DeividasK force-pushed the dk-cc-empty-external-registry branch from 18ff39e to 7545bb6 Compare August 22, 2024 09:01
@DeividasK DeividasK added this pull request to the merge queue Aug 22, 2024
Merged via the queue into develop with commit b9a433b Aug 22, 2024
134 of 135 checks passed
@DeividasK DeividasK deleted the dk-cc-empty-external-registry branch August 22, 2024 10:08
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.

6 participants