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

[CCIP-2942] OCR2 plugins merge fixes [CCIP-2942] #14026

Merged
merged 9 commits into from
Aug 6, 2024

Conversation

asoliman92
Copy link
Contributor

@asoliman92 asoliman92 commented Aug 5, 2024

Fix ccip ocr2 plugins fixes. Including missing files, tests and editing shared files. This needs a good review before merging. Should be merged into ccip/ocr2-merge-clean with Squashing commits.

Copy link
Contributor

github-actions bot commented Aug 5, 2024

I see you updated files related to core. Please run pnpm changeset in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@asoliman92 asoliman92 changed the title [CCIP-Merge] OCR2 plugins merge fixes [CCIP-Merge] OCR2 plugins merge fixes [CCIP-2936] Aug 5, 2024
@asoliman92 asoliman92 changed the title [CCIP-Merge] OCR2 plugins merge fixes [CCIP-2936] [CCIP-Merge] OCR2 plugins merge fixes [CCIP-2942] Aug 5, 2024
github.com/avast/retry-go/v4 v4.5.1 // indirect
github.com/avast/retry-go/v4 v4.6.0 // indirect
Copy link
Contributor

Choose a reason for hiding this comment

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

Whats the reasoning behind this bump

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's bumped in CCIP, Otherwise it will fail the build

Comment on lines 111 to 112
// UnsafeSetConnectionsManager Only for testing
UnsafeSetConnectionsManager(ConnectionsManager)
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this Unsafe_SetConnectionsManager? (note the underscore)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Chainlink code didn't have it. I re-added it manually. Didn't use the _ because was getting some linting messages locally AFAIR. Does the underscore mean something in this context?

Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't change the meaning of the func but just wondering if this'll botch up any future merges from ccip -> chainlink

@@ -378,7 +379,6 @@ func setupNodeCCIP(
fmt.Sprintf("127.0.0.1:%d", port),
}
c.Log.Level = &loglevel
c.Feature.CCIP = &trueRef
Copy link
Contributor

Choose a reason for hiding this comment

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

Intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmmmm... I think this happened during merging. @mateusz-sekara you changed something with the flag. We still expect it to be set though. right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This flag is not used anywhere, but we need to deprecate it first and then remove it in the following release. To align it with how it's done in other places, changing the default value to true. This is what we've agreed on with @jmank88

Copy link
Collaborator

Choose a reason for hiding this comment

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

(we can't remove it immediately because the parser is strict and it needs to be removed first from all the deployments)

@asoliman92 asoliman92 force-pushed the ocr2-directory-only branch from 1ad9854 to 2715c9b Compare August 5, 2024 15:58
@asoliman92 asoliman92 changed the base branch from ocr2-directory-only to ccip/ocr2-merge-clean August 5, 2024 16:25
@asoliman92 asoliman92 force-pushed the ccip/ocr2-merge-clean branch from f0bef2a to 05ef7fd Compare August 5, 2024 16:52
@asoliman92 asoliman92 changed the title [CCIP-Merge] OCR2 plugins merge fixes [CCIP-2942] OCR2 plugins merge fixes Aug 5, 2024
@asoliman92 asoliman92 force-pushed the ccip/ocr2-merge-fixes branch from c932433 to eea837d Compare August 5, 2024 17:04
@asoliman92 asoliman92 changed the base branch from ccip/ocr2-merge-clean to ocr2-directory-only August 5, 2024 17:05
@asoliman92 asoliman92 changed the title OCR2 plugins merge fixes [CCIP-2942] OCR2 plugins merge fixes [CCIP-2942] Aug 5, 2024
Base automatically changed from ocr2-directory-only to ccip/ocr2-merge-clean August 5, 2024 17:40
@asoliman92 asoliman92 force-pushed the ccip/ocr2-merge-fixes branch 2 times, most recently from 1cb1836 to 89af212 Compare August 5, 2024 17:58
@asoliman92 asoliman92 force-pushed the ccip/ocr2-merge-clean branch 2 times, most recently from ec3de47 to 0465829 Compare August 5, 2024 18:04
@asoliman92 asoliman92 force-pushed the ccip/ocr2-merge-fixes branch from 89af212 to 9c61db3 Compare August 5, 2024 18:05
@asoliman92 asoliman92 force-pushed the ccip/ocr2-merge-fixes branch from 9c61db3 to 0fbb95c Compare August 5, 2024 18:12
@asoliman92 asoliman92 marked this pull request as ready for review August 5, 2024 18:25
@asoliman92 asoliman92 requested review from a team as code owners August 5, 2024 18:25
Copy link
Contributor

@winder winder left a comment

Choose a reason for hiding this comment

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

Changes seem fine to me. I didn't diff every file against the ccip repo, but the ones I did look pretty much identical.

@asoliman92 asoliman92 merged this pull request into ccip/ocr2-merge-clean Aug 6, 2024
127 of 129 checks passed
@asoliman92 asoliman92 deleted the ccip/ocr2-merge-fixes branch August 6, 2024 05:45
asoliman92 added a commit that referenced this pull request Aug 6, 2024
* Add status checker

original commit:
smartcontractkit/ccip@451984a

* Add CCIP to types.go

* Add Unsafe_SetConnectionsManager to feeds service for testing

* Add CCIP feature to core.toml

* Rebuilding config

* Wiring up relayer and ocr2 delegates - this commit touches shared code !

* Adding mockery configuration for ccip specific code

* Setting CCIP feature flag to true - it's no longer used anywhere

---------

Co-authored-by: Mateusz Sekara <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Aug 6, 2024
* Copy over core/services/ocr2/plugins/ccip from ccip repo (#14024)

This is first part in merging offchain code from ccip repo (https://github.com/smartcontractkit/ccip) into chainlink

Maintaining history across repos for specific direcotires was complicated so we chose to copy the directory right away.

-----------------

Co-authored-by: Abdelrahman Soliman (Boda) <[email protected]>
Co-authored-by: Agustina Aldasoro <[email protected]>
Co-authored-by: Amir Y <[email protected]>
Co-authored-by: André Vitor de Lima Matos <[email protected]>
Co-authored-by: AnieeG <[email protected]>
Co-authored-by: Anindita Ghosh <[email protected]>
Co-authored-by: Chunkai Yang <[email protected]>
Co-authored-by: Connor Stein <[email protected]>
Co-authored-by: Evaldas Latoškinas <[email protected]>
Co-authored-by: Jean Arnaud <[email protected]>
Co-authored-by: Justin Kaseman <[email protected]>
Co-authored-by: Makram <[email protected]>
Co-authored-by: Makram Kamaleddine <[email protected]>
Co-authored-by: Mateusz Sekara <[email protected]>
Co-authored-by: Matt Yang <[email protected]>
Co-authored-by: Patrick <[email protected]>
Co-authored-by: Rens Rooimans <[email protected]>
Co-authored-by: Roman Kashitsyn <[email protected]>
Co-authored-by: Roman Kashitsyn <[email protected]>
Co-authored-by: Ryan Stout <[email protected]>
Co-authored-by: Will Winder <[email protected]>
Co-authored-by: connorwstein <[email protected]>
Co-authored-by: dimitris <[email protected]>
Co-authored-by: dimkouv <[email protected]>
Co-authored-by: nogo <[email protected]>
Co-authored-by: nogo <[email protected]>
Co-authored-by: valerii-kabisov-cll <[email protected]>

* [CCIP-2942] OCR2 plugins merge fixes [CCIP-2942] (#14026)

* Add status checker

original commit:
smartcontractkit/ccip@451984a

* Add CCIP to types.go

* Add Unsafe_SetConnectionsManager to feeds service for testing

* Add CCIP feature to core.toml

* Rebuilding config

* Wiring up relayer and ocr2 delegates - this commit touches shared code !

* Adding mockery configuration for ccip specific code

* Setting CCIP feature flag to true - it's no longer used anywhere

---------

Co-authored-by: Mateusz Sekara <[email protected]>

* VRF-1138: Make CTF tests to reuse existing VRF Wrapper (#13854)

* VRF-1138: Make CTF tests to reuse existing VRF Wrapper

* VRF-1138: remove old code

* VRF-1138: remove comments

* VRF-1138: refactoring

* VRF-1138: pr comments

* VRF-1138: pr comments

* VRF-1138: fixing lint issues

* VRF-1138: PR comments

* changes to support deterministic message hash in the remote target (#13935)

* common version update to head of develop (#14030)

* Add changeset

---------

Co-authored-by: Agustina Aldasoro <[email protected]>
Co-authored-by: Amir Y <[email protected]>
Co-authored-by: André Vitor de Lima Matos <[email protected]>
Co-authored-by: AnieeG <[email protected]>
Co-authored-by: Anindita Ghosh <[email protected]>
Co-authored-by: Chunkai Yang <[email protected]>
Co-authored-by: Connor Stein <[email protected]>
Co-authored-by: Evaldas Latoškinas <[email protected]>
Co-authored-by: Jean Arnaud <[email protected]>
Co-authored-by: Justin Kaseman <[email protected]>
Co-authored-by: Makram <[email protected]>
Co-authored-by: Mateusz Sekara <[email protected]>
Co-authored-by: Matt Yang <[email protected]>
Co-authored-by: Patrick <[email protected]>
Co-authored-by: Rens Rooimans <[email protected]>
Co-authored-by: Roman Kashitsyn <[email protected]>
Co-authored-by: Roman Kashitsyn <[email protected]>
Co-authored-by: Ryan Stout <[email protected]>
Co-authored-by: Will Winder <[email protected]>
Co-authored-by: dimitris <[email protected]>
Co-authored-by: nogo <[email protected]>
Co-authored-by: nogo <[email protected]>
Co-authored-by: valerii-kabisov-cll <[email protected]>
Co-authored-by: Ilja Pavlovs <[email protected]>
Co-authored-by: Matthew Pendrey <[email protected]>
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.

4 participants