-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Eth2 showcase with log poller #11214
Merged
Merged
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9eff5d9
move workflow to correct directory
Tofel 54291ef
streamline on-demand values a bit
Tofel d2f2aac
get RPC urls and private keys from secrets
Tofel a5a6798
download and run from inside the test folder
Tofel 510d504
checkout repo before running tests
Tofel d0a68eb
get inputs and mask them
Tofel 12dcb56
fix step ordering in workflow
Tofel a828489
fix default image tag
Tofel ad3a765
use latest pumba@CTF
Tofel 65e2cb3
run one test
Tofel 21d5d43
fix directory name
Tofel b035bad
run on powerful runner
Tofel e9bfca7
show usage of ethereum env builder with eth2
Tofel e674345
update usage of eth2
Tofel ff56ba1
adjust to latest
Tofel 81d3937
Merge branch 'develop' into eth2_showcase_log_poller
Tofel 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 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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: On Demand Log Poller Consistency Test | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
contracts: | ||
description: Number of test contracts | ||
default: "2" | ||
required: true | ||
eventsPerTx: | ||
description: Number of events to emit per transaction | ||
default: "10" | ||
required: true | ||
useFinalityTag: | ||
description: Use finality tag | ||
default: "false" | ||
required: true | ||
loadDuration: | ||
description: Load duration (e.g. 10s, 10m, 1h) | ||
default: "10m" | ||
required: true | ||
chainlinkImage: | ||
description: Chainlink image to use | ||
default: "public.ecr.aws/chainlink/chainlink" | ||
required: true | ||
chainlinkVersion: | ||
description: Chainlink version to use | ||
default: "2.7.0-beta0" | ||
required: true | ||
selectedNetworks: | ||
type: choice | ||
options: | ||
- "SIMULATED" | ||
- "SEPOLIA" | ||
- "MUMBAI" | ||
fundingPrivateKey: | ||
description: Private funding key (Skip for Simulated) | ||
required: true | ||
type: string | ||
wsURL: | ||
description: WS URL for the network (Skip for Simulated) | ||
required: true | ||
type: string | ||
httpURL: | ||
description: HTTP URL for the network (Skip for Simulated) | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
test: | ||
env: | ||
CONTRACTS: ${{ inputs.contracts }} | ||
EVENTS_PER_TX: ${{ inputs.eventsPerTx }} | ||
LOAD_DURATION: ${{ inputs.loadDuration }} | ||
USE_FINALITY_TAG: ${{ inputs.useFinalityTag }} | ||
CHAINLINK_IMAGE: ${{ inputs.chainlinkImage }} | ||
CHAINLINK_VERSION: ${{ inputs.chainlinkVersion }} | ||
SELECTED_NETWORKS: ${{ inputs.selectedNetworks }} | ||
REF_NAME: ${{ github.head_ref || github.ref_name }} | ||
runs-on: ubuntu20.04-8cores-32GB | ||
steps: | ||
- name: Get Inputs | ||
run: | | ||
EVM_URLS=$(jq -r '.inputs.wsURL' $GITHUB_EVENT_PATH) | ||
EVM_HTTP_URLS=$(jq -r '.inputs.httpURL' $GITHUB_EVENT_PATH) | ||
EVM_KEYS=$(jq -r '.inputs.fundingPrivateKey' $GITHUB_EVENT_PATH) | ||
|
||
echo ::add-mask::$EVM_URLS | ||
echo ::add-mask::$EVM_HTTP_URLS | ||
echo ::add-mask::$EVM_KEYS | ||
|
||
echo EVM_URLS=$EVM_URLS >> $GITHUB_ENV | ||
echo EVM_HTTP_URLS=$EVM_HTTP_URLS >> $GITHUB_ENV | ||
echo EVM_KEYS=$EVM_KEYS >> $GITHUB_ENV | ||
- name: Checkout the repo | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
ref: ${{ env.REF_NAME }} | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: "integration-tests/go.mod" | ||
cache: true | ||
- name: Run tests | ||
run: | | ||
cd integration-tests | ||
go mod download | ||
go test -v -timeout 5h -v -count=1 -run ^TestLogPollerFromEnv$ ./reorg/log_poller_maybe_reorg_test.go |
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
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.
do we need this provision? is there any use case for it already?
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.
not yet, but I didn't want to break what we had there, because it allowed to re-use existing configuration (even if we never did it)