-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix ci #356
Merged
Fix ci #356
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
b462015
Adding docker support
smickovskid e9e6271
Rebase
smickovskid 2b6cd76
Added scarb to Smoke tests
smickovskid a2c8790
Feedback from PR
smickovskid c14eb9f
Added inputs for cairo / scarb version
smickovskid af3bcaf
Scarb fix
smickovskid 3206fcd
Added base64 override
smickovskid 3875478
Chaning makefile for realtime logs
smickovskid b09ca75
Added docker creds
smickovskid 70d8fe1
Move to toml and refactor
smickovskid c0a8b95
Go mod tidy
smickovskid 25def08
Build contracts
smickovskid d350489
TOML feedback from Bartek
smickovskid cc1246a
TOML feedback from Bartek
smickovskid fae5cfa
Removed unneeded interfaces
smickovskid e849e64
Added new helm deployment method
smickovskid 0a52985
Linting fixes
smickovskid e612f67
Fixing soak
smickovskid eefe189
Helm repo update
smickovskid 2fb4e96
Added readme and testnet support
smickovskid fb7fa08
Added sepolia
smickovskid b78003c
txm: Increase logging
archseer 7ea334d
relayer/pkg/chainlink/txm/txm.go: set L1Gas instead
cfal 491bcdd
Enabled other tests as well
smickovskid 03c4528
Improve error logging
archseer 7c3458f
Linting fix and plugins support
smickovskid 57cedea
scarb: OZ modified their v0.9.0 tag
archseer c1ca385
Adding plugins tests
smickovskid f34bd9d
Fixing plugins tests
smickovskid 86db013
Added some feedback
smickovskid b1fc757
Feedback from PR
smickovskid 61ce4f5
Feedback from PR
smickovskid aa0e2b7
Linting fixes
smickovskid 53da150
Linting fixes
smickovskid ef06dc9
Linting fixes
smickovskid 2f97df7
Yarn step added
smickovskid a6fd9e3
Removed plugins logic
smickovskid c8179ff
Added overrides to ignore
smickovskid a780d1a
minor: Fix broken lint
archseer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,3 +166,4 @@ ztarrepo.tar.gz | |
eslint-report.json | ||
.run.id | ||
.local-mock-server | ||
overrides.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,28 @@ | ||
# Local e2e testing | ||
## Integration tests - HOWTO | ||
|
||
Make sure to have `psql` installed locally. We use it to create a new database for each node. | ||
### Prerequisites | ||
1. `cd contracts && scarb --profile release build` | ||
2. `yarn install` | ||
3. `yarn build` | ||
|
||
Create a new network for containers (only needs to be done once). A custom network allows containers to DNS resolve each other using container names. | ||
#### TOML preparation | ||
The integration tests are using TOML as the configuration input. The logic and parsing is located under [Test config](./testconfig) | ||
|
||
``` | ||
docker network create chainlink | ||
``` | ||
By default, the tests will be running with the default config set in [default.toml](./testconfig/default.toml). This configuration is set to run on devnet with local docker. | ||
|
||
Build a custom core image with starknet relayer bumped to some commit. | ||
Fields in the default toml can be overriden by creating an `overrides.toml`file. Any values specified here take precedence and will be overwritten if they overlap with `default.toml`. | ||
|
||
``` | ||
cd ../core | ||
go get github.com/smartcontractkit/chainlink-starknet/relayer@<MY COMMIT HERE> | ||
docker build . -t smartcontract/chainlink:starknet -f ./core/chainlink.Dockerfile | ||
``` | ||
##### Testnet runs | ||
In order to run the tests on Testnet, additional variables need to be specified in the TOML, these would also be pointed out if `network = "testnet"` is set. The additional variables are: | ||
|
||
Compile contracts and gauntlet: | ||
- `l2_rpc_url` - L2 RPC url | ||
- `account` - Account address on L2 | ||
- `private_key` - Private key for L2 account | ||
|
||
``` | ||
yarn build | ||
cd contracts | ||
scarb --profile release build | ||
``` | ||
##### Running in k8s | ||
|
||
Run the tests! | ||
Set `inside_k8 = true` under `[Common]`. | ||
|
||
``` | ||
cd integration-tests | ||
go test -count 1 -v -timeout 30m --run OCRBasic ./smoke | ||
``` | ||
#### Run tests | ||
|
||
Use `something.down.sh` scripts to teardown everything afterwards if the tests don't properly clean up. | ||
|
||
# Old docs | ||
|
||
For more information, see the [Chainlink Starknet Documentation | Integration Tests](../docs/integration-tests). | ||
`cd integration-tests && go test --timeout=2h -v -count=1 -json ./smoke` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this file do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is related to the testconfig and TOML changes, that is how the logic knows where to look for the toml configurations.