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

Solana devnet spin up in memory env (A) #15831

Merged
merged 20 commits into from
Jan 9, 2025
Merged

Conversation

yashnevatia
Copy link
Contributor

@yashnevatia yashnevatia commented Jan 3, 2025

Adding ability to add solana devnets for in-memory test environments

Requires

Supports

#15845

Test Evidence:

// chainlink/deployment/common/changeset/deploy_link_token_test.go
e := memory.NewMemoryEnvironment(t, lggr, zapcore.InfoLevel, memory.MemoryEnvironmentConfig{
		Chains:    1,
		SolChains: 3,
	})
MB-YYKYX462V9:changeset yashvardhan$ go test -run TestDeployLinkToken -v
=== RUN   TestDeployLinkToken
=== PAUSE TestDeployLinkToken
=== CONT  TestDeployLinkToken
    ports.go:37: found open port: 11475
    ports.go:37: found open port: 60382
    chain.go:83: Generating solana chain 12463857294658392847 http://127.0.0.1:11475
    ports.go:37: found open port: 25207
    ports.go:37: found open port: 53436
    chain.go:83: Generating solana chain 9837465928374658293 http://127.0.0.1:25207
    ports.go:37: found open port: 45935
    ports.go:37: found open port: 5636
    chain.go:83: Generating solana chain 16574839267584930184 http://127.0.0.1:45935
    logger.go:146: 2025-01-06T14:19:11.960Z     INFO    deployment/helpers.go:174       Deployed contract       {"version": "unset@unset", "Contract": "LinkToken 1.0.0", "addr": "0x3eCd42a952CFa05c758262683C8b7682aC6d475B", "chain": " (909606746561742123)"}
--- PASS: TestDeployLinkToken (4.74s)
PASS
ok      github.com/smartcontractkit/chainlink/deployment/common/changeset       6.278s
MB-YYKYX462V9:changeset yashvardhan$ 
e := memory.NewMemoryEnvironment(t, lggr, zapcore.InfoLevel, memory.MemoryEnvironmentConfig{
		Chains:    1,
		SolChains: 4,
	})
MB-YYKYX462V9:changeset yashvardhan$ go test -run TestDeployLinkToken -v
=== RUN   TestDeployLinkToken
=== PAUSE TestDeployLinkToken
=== CONT  TestDeployLinkToken
    chain.go:77: not enough test solana chain selectors available
--- FAIL: TestDeployLinkToken (0.01s)
FAIL
exit status 1
FAIL    github.com/smartcontractkit/chainlink/deployment/common/changeset       1.601s

@yashnevatia yashnevatia requested review from a team as code owners January 3, 2025 15:21
Copy link
Contributor

github-actions bot commented Jan 3, 2025

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@yashnevatia yashnevatia requested review from a team as code owners January 6, 2025 13:59
@yashnevatia yashnevatia requested a review from ilija42 January 6, 2025 13:59
ecPablo
ecPablo previously approved these changes Jan 6, 2025
deployment/environment/memory/chain.go Show resolved Hide resolved
tt-cll
tt-cll previously approved these changes Jan 6, 2025
@yashnevatia yashnevatia changed the title Solana updates Solana devnet spin up in memory env Jan 7, 2025
@yashnevatia yashnevatia dismissed stale reviews from tt-cll and ecPablo via 3a4ae18 January 7, 2025 14:13
@yashnevatia yashnevatia requested a review from a team as a code owner January 7, 2025 14:27
tt-cll
tt-cll previously approved these changes Jan 7, 2025
@yashnevatia yashnevatia changed the title Solana devnet spin up in memory env Solana devnet spin up in memory env (A) Jan 8, 2025
@archseer archseer enabled auto-merge January 9, 2025 07:53
@archseer archseer added this pull request to the merge queue Jan 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 9, 2025
@cedric-cordenier cedric-cordenier added this pull request to the merge queue Jan 9, 2025
Merged via the queue into develop with commit 8270318 Jan 9, 2025
175 checks passed
@cedric-cordenier cedric-cordenier deleted the solana-updates branch January 9, 2025 10:31
asoliman92 pushed a commit that referenced this pull request Jan 9, 2025
* Adding solchains in NewEnv

* Revert "Adding solchains in NewEnv"

This reverts commit aaab52e.

* adding sol chains to newenv

* newEnv needs to send nil

* adding test env setup

* adding nil for crib sol chains

* adding chain selectors commit

* go mod tidy

* linting

* chain sel update

* update core/scripts go files

* again

* add changeset

* go imports

* go mod tidy

* Update modgraph

---------

Co-authored-by: Terry Tata <[email protected]>
Co-authored-by: Blaž Hrastnik <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Jan 9, 2025
…15605)

* replace f with fObserve in RMHome and RMNRemote

* Update gethwrappers

* rename fObserve to fSign

* fix off-chain components of renaming RMN parameters

* core changeset

* update missing file for new parameter name

* fix wrappers

* fix merge conflict broken text

* Update gethwrappers

* attempt fix json export tag

* Update gethwrappers

* upgrade cl-ccip and fix test

* upgrade cl-ccip@main

* upgrade cl-ccip@main

* fix test

* upgrade cl-ccip@main

* Update gethwrappers

* upgrade chainlink ccip

* DEVSVCS-1087: remove unused automation hardhat tests (#15847)

* remove unused automation hardhat tests

* freeze contracts

* remove more tests

* update

* CCIP Config backported from CCIP repo (#15856)

* Moving configs directly from CCIP repo

* Moving configs directly from CCIP repo

* Remove panic recovery for wsrpc (#15865)

- Due to some other bug in the library, the redialled connection never
  becomes ready.

* Added is_backfiled filed to solana's filter table (#15796)

* Extract MultiNode to chainlink-framework (#15791)

* Extract MultiNode

* tidy

* tidy

* Fix generate

* Add mock Subscription

* lint

* Fix sendonly allocation

* lint

* Add QueryTimeout to client

* Use multinode

* Update rpc_client_test.go

* improve peer group dialer sync function logs (#15867)

* Solana devnet spin up in memory env (A) (#15831)

* Adding solchains in NewEnv

* Revert "Adding solchains in NewEnv"

This reverts commit aaab52e.

* adding sol chains to newenv

* newEnv needs to send nil

* adding test env setup

* adding nil for crib sol chains

* adding chain selectors commit

* go mod tidy

* linting

* chain sel update

* update core/scripts go files

* again

* add changeset

* go imports

* go mod tidy

* Update modgraph

---------

Co-authored-by: Terry Tata <[email protected]>
Co-authored-by: Blaž Hrastnik <[email protected]>

* upgrade chainlink ccip fixing router binding issues in migration

* upgrade chainlink ccip fixing router binding issues in migration

* fix comment

* gomodtidy and formatting fix

* update go mod file for newest cl-ccip

* update comment

---------

Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
Co-authored-by: Simon B.Robert <[email protected]>
Co-authored-by: dimkouv <[email protected]>
Co-authored-by: asoliman <[email protected]>
Co-authored-by: FelixFan1992 <[email protected]>
Co-authored-by: Mateusz Sekara <[email protected]>
Co-authored-by: Sam <[email protected]>
Co-authored-by: Dmytro Haidashenko <[email protected]>
Co-authored-by: Dylan Tinianov <[email protected]>
Co-authored-by: Yashvardhan Nevatia <[email protected]>
Co-authored-by: Terry Tata <[email protected]>
Co-authored-by: Blaž Hrastnik <[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.

5 participants