Skip to content

Commit 75ce7e0

Browse files
authored
[DX-2588] Migrate VRFv2Plus smoke tests to devenv (#21542)
* working first batch working BHS, multiple keys and batch tests migrated BHF, migration, replay and pending block tests -- none of them tested yet more robust fixes fix lints + remove old tests run vrfv2plus tests in universal nightly pipeline * add missing env file * CR comments
1 parent c1b3b6c commit 75ce7e0

30 files changed

Lines changed: 4207 additions & 161 deletions

.github/e2e-tests.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -311,58 +311,6 @@ runner-test-matrix:
311311
-- -v -run "^(TestVRFv2Basic|TestVRFV2WithBHS|TestVRFv2NodeReorg|TestVRFV2MultipleSendingKeys|TestVRFOwner|TestVRFV2BatchFulfillmentEnabledDisabled)$" -timeout 30m -count=1 -parallel=6 github.com/smartcontractkit/chainlink/integration-tests/smoke
312312
pyroscope_env: ci-smoke-vrf2-evm-simulated
313313
test_go_project_path: integration-tests
314-
315-
- id: smoke/vrfv2plus_test.go:*
316-
path: integration-tests/smoke/vrfv2plus_test.go
317-
test_env_type: docker
318-
runs_on: ubuntu-latest
319-
triggers:
320-
- PR E2E Core Tests
321-
- Merge Queue E2E Core Tests
322-
- Nightly E2E Tests
323-
- Push E2E Core Tests
324-
- Workflow Dispatch E2E Core Tests
325-
test_cmd: |
326-
gotestsum \
327-
--junitfile=/tmp/junit.xml \
328-
--jsonfile=/tmp/gotest.log \
329-
--format=github-actions \
330-
-- -v -run "^(TestVRFv2Plus|TestVRFv2PlusMultipleSendingKeys|TestVRFv2PlusMigration|TestVRFv2PlusReplayAfterTimeout|TestVRFv2PlusPendingBlockSimulationAndZeroConfirmationDelays|TestVRFv2PlusNodeReorg|TestVRFv2PlusBatchFulfillmentEnabledDisabled|TestVRFv2PlusWithBHS|TestVRFv2PlusWithBHF)$" -timeout 30m -count=1 -parallel=9 github.com/smartcontractkit/chainlink/integration-tests/smoke
331-
pyroscope_env: ci-smoke-vrf2plus-evm-simulated
332-
test_go_project_path: integration-tests
333-
free_disk_space: true
334-
# VRFv2Plus tests on any live testnet (test_config_override_path required)
335-
# Tests have to run in sequence because of a single private key used
336-
337-
- id: TestVRFv2Plus_LiveTestnets
338-
path: integration-tests/smoke/vrfv2plus_test.go
339-
runs_on: ubuntu-latest
340-
test_env_type: docker
341-
test_cmd: |
342-
cd smoke && \
343-
gotestsum \
344-
--junitfile=/tmp/junit.xml \
345-
--jsonfile=/tmp/gotest.log \
346-
--format=github-actions \
347-
-- -v -run "TestVRFv2Plus$/(Link_Billing|Native_Billing|Direct_Funding)|TestVRFV2PlusWithBHS" -parallel=1 -timeout 2h -count=1
348-
test_go_project_path: integration-tests
349-
# VRFv2Plus release tests on Sepolia testnet
350-
351-
- id: TestVRFv2Plus_Release_Sepolia
352-
path: integration-tests/smoke/vrfv2plus_test.go
353-
runs_on: ubuntu-latest
354-
test_env_type: docker
355-
test_cmd: |
356-
cd smoke && \
357-
gotestsum \
358-
--junitfile=/tmp/junit.xml \
359-
--jsonfile=/tmp/gotest.log \
360-
--format=github-actions \
361-
-- -v -run "TestVRFv2Plus$/(Link_Billing|Native_Billing|Direct_Funding)|TestVRFV2PlusWithBHS" -parallel=1 -timeout 2h -count=1
362-
test_config_override_path: integration-tests/testconfig/vrfv2plus/overrides/new_env/sepolia_new_env_test_config.toml
363-
triggers:
364-
- VRF E2E Release Tests
365-
test_go_project_path: integration-tests
366314
# END: VRF tests
367315

368316
# START: LogPoller tests

.github/workflows/devenv-nightly.yml

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,61 @@ jobs:
153153
runner: "ubuntu24.04-16cores-64GB"
154154
tests_dir: "ocr2"
155155
logs_archive_name: "df1-chaos"
156+
- display_name: "Test VRFv2Plus Smoke"
157+
testcmd: "go test -v -timeout 30m -run TestVRFv2PlusSmoke"
158+
envcmd: "cl u env-vrf2plus.toml,products/vrfv2plus/basic.toml"
159+
runner: "ubuntu24.04-16cores-64GB"
160+
tests_dir: "vrfv2plus"
161+
logs_archive_name: "vrfv2plus-smoke"
162+
- display_name: "Test VRFv2Plus Multiple Sending Keys"
163+
testcmd: "go test -v -timeout 30m -run TestVRFv2PlusMultipleSendingKeys"
164+
envcmd: "cl u env-vrf2plus.toml,products/vrfv2plus/two_keys.toml"
165+
runner: "ubuntu24.04-16cores-64GB"
166+
tests_dir: "vrfv2plus"
167+
logs_archive_name: "vrfv2plus-multiple-sending-keys"
156168

169+
- display_name: "Test VRFv2Plus With BHS"
170+
testcmd: "go test -v -timeout 30m -run TestVRFV2PlusWithBHS"
171+
envcmd: "cl u env-vrf2plus-bhX.toml,products/vrfv2plus/bhs.toml"
172+
runner: "ubuntu24.04-16cores-64GB"
173+
tests_dir: "vrfv2plus"
174+
logs_archive_name: "vrfv2plus-with-bhs"
175+
- display_name: "Test VRFv2Plus With BHF"
176+
testcmd: "go test -v -timeout 30m -run TestVRFV2PlusWithBHF"
177+
envcmd: "cl u env-vrf2plus-bhX.toml,env-geth.toml,products/vrfv2plus/bhf.toml"
178+
runner: "ubuntu24.04-16cores-64GB"
179+
tests_dir: "vrfv2plus"
180+
logs_archive_name: "vrfv2plus-with-bhf"
181+
- display_name: "Test VRFv2Plus Replay After Timeout"
182+
testcmd: "go test -v -timeout 30m -run TestVRFv2PlusReplayAfterTimeout"
183+
envcmd: "cl u env-vrf2plus.toml,products/vrfv2plus/replay.toml"
184+
runner: "ubuntu24.04-16cores-64GB"
185+
tests_dir: "vrfv2plus"
186+
logs_archive_name: "vrfv2plus-replay-after-timeout"
187+
- display_name: "Test VRFv2Plus Pending Block Simulation And Zero Confirmation Delays"
188+
testcmd: "go test -v -timeout 30m -run TestVRFv2PlusPendingBlockSimulationAndZeroConfirmationDelays"
189+
envcmd: "cl u env-vrf2plus.toml,products/vrfv2plus/pending_block.toml"
190+
runner: "ubuntu24.04-16cores-64GB"
191+
tests_dir: "vrfv2plus"
192+
logs_archive_name: "vrfv2plus-pending-block-simulation-and-zero-confirmation-delays"
193+
- display_name: "Test VRFv2Plus Migration"
194+
testcmd: "go test -v -timeout 30m -run TestVRFv2PlusMigration"
195+
envcmd: "cl u env-vrf2plus.toml,products/vrfv2plus/basic.toml"
196+
runner: "ubuntu24.04-16cores-64GB"
197+
tests_dir: "vrfv2plus"
198+
logs_archive_name: "vrfv2plus-migration"
199+
- display_name: "Test VRFv2Plus Batch Fulfillment"
200+
testcmd: "go test -v -timeout 30m -run TestVRFv2PlusBatchFulfillment"
201+
envcmd: "cl u env-vrf2plus.toml,products/vrfv2plus/batch.toml"
202+
runner: "ubuntu24.04-16cores-64GB"
203+
tests_dir: "vrfv2plus"
204+
logs_archive_name: "vrfv2plus-batch-fulfillment"
157205
- display_name: "Test LogPoller Fixed Depth"
158206
testcmd: "go test -v -timeout 30m -run TestLogPoller"
159207
envcmd: "cl u env.toml,tests/logpoller/fixed_depth.toml"
160208
runner: "ubuntu24.04-16cores-64GB"
161209
tests_dir: "logpoller"
162210
logs_archive_name: "logpoller-fixed-depth"
163-
164211
- display_name: "Test LogPoller Finality Tag"
165212
testcmd: "go test -v -timeout 30m -run TestLogPoller"
166213
envcmd: "cl u env.toml,tests/logpoller/finality_tag.toml"

.github/workflows/on-demand-vrfv2plus-smoke-tests.yml

Lines changed: 0 additions & 107 deletions
This file was deleted.

devenv/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ blockscout
44
env-out.toml
55
**/alloc.pprof
66

7-
**/logs/*
7+
**/logs/*
8+
*-out.toml

0 commit comments

Comments
 (0)