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

[DRAFT] EVM Interface Tests optimization #14261

Closed
wants to merge 108 commits into from

Conversation

silaslenihan
Copy link
Contributor

Requires Dependencies

Resolves Dependencies

amit-momin and others added 30 commits July 8, 2024 20:49
…-finality-check-for-the-get-transaction-status-method
silaslenihan and others added 17 commits August 30, 2024 10:39
…st configs and BASE64_NETWORK_CONFIG env (#14303)

* Bump ctf

* fix lint

* Fix test

* bump
* porting ccip tooling into chainlink

* make deployment test run

* add missing changes

* fix build error

* make private

* more updates

* changes

* make lint happy

* make lint happy

* Use tests.WaitTimeout for CCIPReader e2e tests (#1382)

We've noticed that this tests have failed a few times on the CI.

I've run the tests with `go test ./... -count 100 -failfast` and it
never failed locally.
I assume it runs slow in CI that's why we have some failing cases, I am
replacing `10s` with `tests.WaitTimeout(t)`.

* core/capabilities/ccip: fix oracle startup logic (#1348)

Ticket: https://smartcontract-it.atlassian.net/browse/CCIP-3078

We can't start bootstrap oracles and plugin oracles on the same
chainlink node. The main reason for this is that we have a singleton
`SingletonPeerWrapper` object which manages all libocr peers for the
application as a whole. Since this singleton only works with a single
peer ID, it creates a single OCR peer, and all streams are created using
this OCR peer. Since streams must have unique config digests for the
same peer object, running a bootstrap oracle and a plugin oracle for the
same config digest will fail because the stream will not be created.

In order to remedy this we match what will be the case in production,
which is:

* Separate bootstrap node, with a peer ID that is either part of the OCR
committee or not (most likely the latter, in order to avoid exporting /
importing the P2P key from one node's DB to another). This bootstrap
node will have to have a DNS name and be publicly accessible over the
internet in order to be accessed by all nodes in the committee, at least
initially, to facilitate peer discovery.
* Plugin node that is more locked down, i.e no public DNS name required.

To enable this, in this PR we:

* Tweak the `launcher` component to launch bootstrap nodes only or
plugin nodes only, and not both. This does NOT rely on the on-chain
bootstrap P2P IDs that are set in the OCR config. This field will be
removed in subsequent PRs.
* Tweak the `OracleCreator` interface to support the above operation

Follow ups:
* Remove the `bootstrapP2PIds` field from the OCR config in
CCIPConfig.sol

* Add changeset

---------

Co-authored-by: dimitris <dimitrios.kouveris@smartcontract.com>
Co-authored-by: Makram <makramkd@users.noreply.github.com>
Co-authored-by: asoliman <abdelrahman.soliman@smartcontract.com>
Co-authored-by: Abdelrahman Soliman (Boda) <2677789+asoliman92@users.noreply.github.com>
@silaslenihan silaslenihan force-pushed the cw-evm-interface-tests branch from 3af8173 to f1fbbe5 Compare September 4, 2024 14:12
@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@silaslenihan silaslenihan force-pushed the cw-evm-interface-tests branch 5 times, most recently from 46b89ea to 1467436 Compare September 5, 2024 17:18
Base automatically changed from cw-evm-interface-tests to develop September 5, 2024 18:10
Copy link
Contributor

github-actions bot commented Nov 5, 2024

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Nov 5, 2024
@github-actions github-actions bot closed this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants