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-3428 Enabling ccip smoke test for testnet #14452

Merged
merged 19 commits into from
Sep 19, 2024

Conversation

AnieeG
Copy link
Contributor

@AnieeG AnieeG commented Sep 17, 2024

Enables initial deployment test for testnet.

With the env vars mentioned in integration-tests/deployment/devenv/.sample.env and the test config integration-tests/testconfig/ccip/overrides/sepolia_avax_binance.toml the existing ccip smoke test can be run against testnets.

@AnieeG AnieeG requested a review from a team as a code owner September 17, 2024 00:18
@AnieeG AnieeG requested a review from connorwstein September 17, 2024 02:00
@AnieeG AnieeG requested a review from a team as a code owner September 17, 2024 22:46
@AnieeG AnieeG requested a review from makramkd September 17, 2024 22:52
var duration time.Duration
deadline, ok := t.Deadline()
if ok {
// add a minute to the deadline to ensure we don't miss it
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure you can tweak a deadline this way - I believe the Go test runner will just kill the test once its past the deadline. Is this what you want?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I think this comment is a bit misleading, maybe "make the timer end a minute before the deadline so we don't miss it"

makramkd
makramkd previously approved these changes Sep 18, 2024
@cl-sonarqube-production
Copy link

deadline, ok := t.Deadline()
if ok {
// make this timer end a minute before so that we don't hit the deadline
duration = deadline.Sub(time.Now().Add(-1 * time.Minute))
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the downside of hitting the deadline other than failing with a timeout which will happen anyways?
I think seconds should be enough? If the deadline is 5 minutes then 1 minute is 20% of the time. So either make it a percentage of the total deadline 2-5% or just a couple of seconds.

Copy link
Contributor

Choose a reason for hiding this comment

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

There's no real downside other than log output after the test times out, the test runtime will print all running goroutines and their stack

chains = append(chains, ChainConfig{
ChainID: uint64(chainId),
ChainName: chainName,
ChainType: "EVM",
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Use a const

@@ -1,3 +1,7 @@
[Common]
# chainlink node funding in native token
chainlink_node_funding = 1
Copy link
Contributor

Choose a reason for hiding this comment

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

I see in the other toml chainlink_node_funding = 2 with same comment about native token. What does the number denote exactly in this context?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently it uses same amount of native to fund chainlink nodes across all network. If you are running this in testnet 1 native is not enough(example 1avax), therefore in the testnet testconfig you might have seen this referred as 2. For simulated geth 1 Eth is enough for the course of our test.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe in subsequent PR add a comment that this is Eth, I mistook it for a config number that gets mapped somewhere

@AnieeG AnieeG enabled auto-merge September 19, 2024 14:00
@AnieeG AnieeG added this pull request to the merge queue Sep 19, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 19, 2024
* enabling test for testnet

* home chain selector logic

* testnet deployment

* remove unwanted

* lint fix

* add readme

* fix typo

* fix

* make timer rely on test deadline

* update comment

* update comment
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 19, 2024
@AnieeG AnieeG added this pull request to the merge queue Sep 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 19, 2024
@AnieeG AnieeG added this pull request to the merge queue Sep 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 19, 2024
@AnieeG AnieeG added this pull request to the merge queue Sep 19, 2024
Merged via the queue into develop with commit 7ffbfbf Sep 19, 2024
156 checks passed
@AnieeG AnieeG deleted the ccip-3428-testnet-deployment branch September 19, 2024 15:45
momentmaker added a commit that referenced this pull request Sep 19, 2024
…tractkit/chainlink into re-2964/goreleaser-ccip

* 're-2964/goreleaser-ccip' of https://github.com/smartcontractkit/chainlink:
  Fix data race in TestLogPoller_Replay (#14431)
  Fix CCIP Load Test Faulty Fund Return (#14499)
  use tx in insertLogsWithinTx (#14361)
  Bring KMS client and multiclient over to chainlink (#14484)
  CCIP-3420: Fix IsRequestTriggeredWithinTimeframe (#1445) (#14498)
  [TT-1345] option to use predeployed contracts in OCR tests (#13758)
  CCIP-3428 Enabling ccip smoke test for testnet (#14452)
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