Skip to content
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
11c775a
Allow production of multiple blocks per slot in slot-based collator.
skunert Feb 13, 2025
3b2a1db
Taplo
skunert Feb 13, 2025
f1935bd
Use --authoring
skunert Feb 14, 2025
c571119
Update from skunert running command 'prdoc --audience node_operator -…
github-actions[bot] Feb 14, 2025
d7d183d
Apply suggestions from code review
skunert Feb 14, 2025
2e12f6d
Drift -> Offset
skunert Feb 14, 2025
765759d
Better docs
skunert Feb 14, 2025
3960f73
More docs
skunert Feb 14, 2025
79e96f2
Update from skunert running command 'fmt'
github-actions[bot] Feb 14, 2025
3ff3d24
Fixes
skunert Feb 15, 2025
782b3b2
Add new case
skunert Feb 15, 2025
1f0d3bd
Rustdoc
skunert Feb 17, 2025
acaeea9
refactor tests to run in ci
pepoviola Feb 18, 2025
7eb7304
fmt and license
pepoviola Feb 18, 2025
c7eba15
fix ci needs for test artifacts
pepoviola Feb 18, 2025
a281e7b
fixes for ci
pepoviola Feb 18, 2025
3464c9d
increase timeout
pepoviola Feb 18, 2025
6374256
fix provider in ci
pepoviola Feb 19, 2025
c5e42dc
ci, k8s auth and bump version
pepoviola Feb 19, 2025
5bab725
ci, use bash
pepoviola Feb 19, 2025
9cab1d7
ci, fix parachain image
pepoviola Feb 19, 2025
0f4739f
Apply suggestions from code review
skunert Feb 19, 2025
4f492bd
Update cumulus/client/consensus/aura/src/collators/slot_based/block_b…
skunert Feb 19, 2025
08ef715
Review comments
skunert Feb 19, 2025
5f4e3e9
Improve test helpers
skunert Feb 20, 2025
f208a43
Merge branch 'master' into skunert/multiple-blocks-per-slot
skunert Feb 20, 2025
62de415
More comments
skunert Feb 21, 2025
a85c73d
Merge branch 'master' into skunert/multiple-blocks-per-slot
skunert Feb 24, 2025
5d09524
Remove support for sub-6s slot durations.
skunert Feb 24, 2025
9f68dad
Review comments
skunert Feb 26, 2025
1972424
Merge branch 'master' into skunert/multiple-blocks-per-slot
skunert Feb 26, 2025
cb85152
PRDOC
skunert Feb 27, 2025
8e44e91
Adjust cumulus-test-runtime to not use 2s slots anymore
skunert Feb 27, 2025
2e06dcb
Improve assertion to take into account finality lag instead of total …
skunert Feb 27, 2025
f19a1fd
Fix lockfile
skunert Feb 27, 2025
43ee813
Merge branch 'master' into skunert/multiple-blocks-per-slot
skunert Feb 27, 2025
c812ad9
Merge branch 'master' into skunert/multiple-blocks-per-slot
skunert Feb 28, 2025
cfb31fa
Remove substrate-compat feature from subxt
skunert Feb 28, 2025
1365e25
Fix feature flags in cumulus-test-runtime
skunert Feb 28, 2025
b212b2e
Disable colored logs in test-parachain
skunert Mar 3, 2025
01742bd
Increase resources, use imported instead of finalized for assertions
skunert Mar 3, 2025
4a58b91
Merge branch 'master' into skunert/multiple-blocks-per-slot
skunert Mar 4, 2025
691864e
Improve test assertions
skunert Mar 5, 2025
88655bc
Extract zombienet-helpers
skunert Mar 6, 2025
323078f
Merge branch 'master' into skunert/multiple-blocks-per-slot
skunert Mar 9, 2025
f1d4d8e
Lock
skunert Mar 9, 2025
e887244
toml format
skunert Mar 9, 2025
9b02e3b
CI
skunert Mar 9, 2025
0e941d7
Use $POLKADOT_IMAGE instead of $RELAY_IMAGE
skunert Mar 10, 2025
56e7d3b
Use $POLKADOT_IMAGE instead of $RELAY_IMAGE
skunert Mar 10, 2025
a4fad4d
bump zombienet version
pepoviola Mar 10, 2025
69ed3bd
Merge branch 'master' into skunert/multiple-blocks-per-slot
skunert Mar 10, 2025
93df323
Fix fmt
skunert Mar 11, 2025
10eb186
Fix comment
skunert Mar 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/build-publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ jobs:
path: artifacts.tar
retention-days: 1


### Build zombienet test artifacts ########################

#
#
#
Expand Down Expand Up @@ -296,6 +299,66 @@ jobs:
path: artifacts.tar
retention-days: 1

#
#
#
prepare-polkadot-zombienet-artifacts:
needs: [preflight]
runs-on: ${{ needs.preflight.outputs.RUNNER }}
timeout-minutes: 60
container:
image: ${{ needs.preflight.outputs.IMAGE }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: build
run: |
forklift cargo nextest --manifest-path polkadot/zombienet-sdk-tests/Cargo.toml archive --locked --features zombie-metadata --archive-file polkadot-zombienet-tests.tar.zst
- name: pack artifacts
run: |
mkdir -p artifacts
cp polkadot-zombienet-tests.tar.zst ./artifacts

- name: tar
run: tar -cvf artifacts.tar artifacts

- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
path: artifacts.tar
retention-days: 1

#
#
#
prepare-cumulus-zombienet-artifacts:
needs: [preflight]
runs-on: ${{ needs.preflight.outputs.RUNNER }}
timeout-minutes: 60
container:
image: ${{ needs.preflight.outputs.IMAGE }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: build
run: |
forklift cargo nextest --manifest-path cumulus/zombienet/zombienet-sdk/Cargo.toml archive --locked --features zombie-ci --archive-file cumulus-zombienet-tests.tar.zst
- name: pack artifacts
run: |
mkdir -p artifacts
cp cumulus-zombienet-tests.tar.zst ./artifacts

- name: tar
run: tar -cvf artifacts.tar artifacts

- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
path: artifacts.tar
retention-days: 1

### Publish ########################

#
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zombienet-reusable-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ jobs:
wait_build_images:
needs: [ci-env]
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 60
outputs:
BUILD_RUN_ID: ${{ steps.wait_build.outputs.BUILD_RUN_ID }}
steps:
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/zombienet_cumulus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,56 @@ jobs:
name: zombienet-logs-${{ github.job }}-${{ github.sha }}
path: |
/tmp/zombie*/logs/*

zombienet-cumulus-0010-elastic_scaling_multiple_block_per_slot:
needs: [preflight]
if: ${{ needs.preflight.outputs.changes_substrate || needs.preflight.outputs.changes_cumulus || needs.preflight.outputs.changes_polkadot }}
runs-on: ${{ needs.preflight.outputs.ZOMBIENET_RUNNER }} # NOTE: should be zombienet-arc-runner (without quotes)
timeout-minutes: 60
container:
image: ${{ needs.preflight.outputs.ZOMBIENET_IMAGE }}
env:
RELAY_IMAGE: "${{ needs.preflight.outputs.TEMP_IMAGES_BASE }}/polkadot-debug:${{ needs.preflight.outputs.DOCKER_IMAGES_VERSION }}"
CUMULUS_IMAGE: "${{ needs.preflight.outputs.TEMP_IMAGES_BASE }}/test-parachain:${{ needs.preflight.outputs.DOCKER_IMAGES_VERSION }}"
RUST_LOG: ${{ needs.preflight.outputs.RUST_LOG }}
ZOMBIE_PROVIDER: ${{ needs.preflight.outputs.ZOMBIE_PROVIDER }}
# don't retry sdk tests
NEXTEST_RETRIES: 0

steps:
- name: k8s_auth
shell: bash
run: |
. /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
k8s_auth

- name: Checkout
uses: actions/checkout@v4

- uses: actions/[email protected]
with:
name: prepare-cumulus-zombienet-artifacts-${{ needs.preflight.outputs.SOURCE_REF_SLUG }}
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ needs.preflight.outputs.BUILD_RUN_ID }}

- name: tar
run: tar -xvf artifacts.tar

- name: script
run: |
echo "RELAY_IMAGE: $RELAY_IMAGE"
echo "CUMULUS_IMAGE: $CUMULUS_IMAGE"
ls -ltr ./artifacts
# use spot by default
export X_INFRA_INSTANCE=spot
# we want to use `--no-capture` in zombienet tests.
unset NEXTEST_FAILURE_OUTPUT
unset NEXTEST_SUCCESS_OUTPUT
cargo nextest run --archive-file ./artifacts/cumulus-zombienet-tests.tar.zst --no-capture -- elastic_scaling::elastic_scaling_multiple_blocks_per_slot::elastic_scaling_multiple_block_per_slot

- name: upload logs
uses: actions/upload-artifact@v4
with:
name: zombienet-logs-${{ github.job }}-${{ github.sha }}
path: |
/tmp/zombie*/logs/*
2 changes: 1 addition & 1 deletion .github/zombienet-env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ZOMBIENET_IMAGE=docker.io/paritytech/zombienet:v1.3.119
ZOMBIENET_IMAGE=docker.io/paritytech/zombienet:v1.3.123
ZOMBIENET_RUNNER=zombienet-arc-runner
PUSHGATEWAY_URL=http://zombienet-prometheus-pushgateway.managed-monitoring:9091/metrics/job/zombie-metrics
DEBUG=zombie,zombie::network-node,zombie::kube::client::logs
Expand Down
Loading
Loading