Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
62c521b
test(network-smoke): add a scripted Aztec node that prunes and regrow…
alejoamiras Nov 26, 2026
3f6dd5f
test(network-smoke): run a scripted prune end to end with `yarn smoke…
alejoamiras Nov 26, 2026
acfdc03
ci(network-smoke): run the scripted smoke beside the local-network one
alejoamiras Nov 26, 2026
3079064
test(network-smoke): claim each run's ports in the host's port registry
alejoamiras Nov 26, 2026
e96d7a0
test(network-smoke): keep the API's repair loop out of the scripted s…
alejoamiras Nov 26, 2026
c08d149
test(network-smoke): add compare-chain, a read-only check of the API'…
alejoamiras Nov 26, 2026
bb2d1f6
refactor(network-smoke): share the explorer's REST reads between scen…
alejoamiras Nov 26, 2026
2ed80af
test(network-smoke): force epoch prunes on the local network with `ya…
alejoamiras Nov 26, 2026
0b9c62c
ci(network-smoke): run the prune smoke beside the others
alejoamiras Nov 26, 2026
2b141b7
test(network-smoke): record which state of a prune the listener read …
alejoamiras Nov 26, 2026
13ee11d
fix(network-smoke): print compare-chain's node failures as fixed text
alejoamiras Nov 26, 2026
96733fe
fix(network-smoke): never claim a port that a surviving process holds
alejoamiras Nov 26, 2026
a7f7e98
test(network-smoke): see each prune order, and a replacement after a gap
alejoamiras Nov 26, 2026
061551a
test(network-smoke): make the shorter-chain wait prove it watched
alejoamiras Nov 26, 2026
ead89ee
test(network-smoke): check the block topic's partition, and the dead …
alejoamiras Nov 26, 2026
1546b38
test(network-smoke): settle only once the API has consumed every record
alejoamiras Nov 26, 2026
c10e5c4
fix(network-smoke): stop npm on abort, and never leave an empty lock
alejoamiras Nov 26, 2026
a2a7bb2
fix(network-smoke): witness a prune only between agreeing samples
alejoamiras Nov 26, 2026
0d29d76
docs(network-smoke): drop comments that restate the code
alejoamiras Nov 26, 2026
37b4543
fix(network-smoke): print compare-chain's unparseable API answers as …
alejoamiras Nov 27, 2026
9fa88df
docs(network-smoke): name the port gap a killed runner leaves
alejoamiras Nov 27, 2026
8796250
test(network-smoke): read the reorg baseline as a list, or stop
alejoamiras Nov 27, 2026
868d35f
test(network-smoke): name a prune's order by the earliest answer that…
alejoamiras Nov 27, 2026
0f89957
test(network-smoke): settle on the expected state and the offsets it saw
alejoamiras Nov 27, 2026
63ca44f
test(network-smoke): hold the shorter chain through a listener pass, …
alejoamiras Nov 27, 2026
9acf86b
fix(network-smoke): have down remove a killed install's staging direc…
alejoamiras Nov 27, 2026
1f28104
test(network-smoke): expect each compare-chain check's first mismatch…
alejoamiras Nov 27, 2026
919e83a
docs(network-smoke): claim only what the partition and prune checks show
alejoamiras Nov 27, 2026
c4f020f
test(network-smoke): hold the shorter chain until a listener pass wal…
alejoamiras Nov 27, 2026
51e5662
fix(network-smoke): redact each part of compare-chain's URLs, whereve…
alejoamiras Nov 27, 2026
d03300a
test(network-smoke): end the shorter chain's hold at the next pass's …
alejoamiras Nov 27, 2026
f95834a
test(network-smoke): open the quiet window at the first shorter tip r…
alejoamiras Nov 27, 2026
46b39c0
fix(network-smoke): have down fail on a toolchain dir it cannot read
alejoamiras Nov 27, 2026
5f34779
test(network-smoke): bound the prune wait's read gap by the node's ho…
alejoamiras Nov 27, 2026
ec17612
docs(network-smoke): list the checks' known limits on broker reads an…
alejoamiras Nov 27, 2026
221e7bd
test(network-smoke): let a scripted scenario kill and restart a service
alejoamiras Nov 27, 2026
15279ce
test(network-smoke): hold row locks and read offsets and records of a…
alejoamiras Nov 27, 2026
1fda878
test(network-smoke): script two more prunes replaced at once
alejoamiras Nov 27, 2026
972116e
test(network-smoke): share the settled-state checks of the prune scen…
alejoamiras Nov 27, 2026
c344e95
test(network-smoke): kill the listener between sending a batch and st…
alejoamiras Nov 27, 2026
c5c5c03
test(network-smoke): kill the API between a block's commit and its of…
alejoamiras Nov 27, 2026
8995413
fix(network-smoke): read a lock's waiters from outside its transaction
alejoamiras Nov 27, 2026
8cba948
test(network-smoke): print how long each prune scenario took
alejoamiras Nov 27, 2026
38c1577
docs(network-smoke): describe the crash scenarios and their stop points
alejoamiras Nov 27, 2026
beb3342
fix(network-smoke): follow a stop's waiters behind other waiters
alejoamiras Nov 27, 2026
b94eb47
test(network-smoke): prove each crash's state before the kill, and th…
alejoamiras Nov 27, 2026
a035ef1
test(network-smoke): expect the script's reorgs, and the whole chain …
alejoamiras Nov 27, 2026
3f5ee1f
test(network-smoke): bound each statement of the harness's own sessions
alejoamiras Nov 27, 2026
71827ea
fix(network-smoke): release a crash stop's lock however its stepping …
alejoamiras Nov 27, 2026
4241a72
fix(network-smoke): refuse service actions from the start of the tear…
alejoamiras Nov 27, 2026
8b9d7ab
docs(network-smoke): say what the broker reads and the partition chec…
alejoamiras Nov 27, 2026
1ad3da9
fix(network-smoke): count the API's other writers of the row by group id
alejoamiras Nov 27, 2026
f7c0902
fix(network-smoke): kill the API only with its block group before the…
alejoamiras Nov 27, 2026
736177e
fix(network-smoke): end every session of a killed service, found by i…
alejoamiras Nov 27, 2026
d4d2c57
fix(network-smoke): kill no service once its stop's deadline has passed
alejoamiras Nov 27, 2026
7aeea00
docs(network-smoke): say what the API crash's replay check samples
alejoamiras Nov 27, 2026
074dd08
fix(network-smoke): refuse a second kill of a service while one is un…
alejoamiras Nov 27, 2026
eefc8dd
fix(network-smoke): keep a crash stop's lock once its kill or cleanup…
alejoamiras Nov 27, 2026
ff6611b
test(network-smoke): read the ordered block records' proposedTip
alejoamiras Nov 27, 2026
59d91bb
refactor(network-smoke): adapt compare-chain's response parsing to zod 4
alejoamiras Nov 27, 2026
efe6c5a
test(network-smoke): say what the echoing-API case guards under zod 4
alejoamiras Nov 27, 2026
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
19 changes: 19 additions & 0 deletions .github/actions/install-foundry/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Install foundry
description: The foundry release named in services/network-smoke/toolchain/foundry-version, checked against its SHA-256, with FOUNDRY_BIN_DIR set for later steps.
runs:
using: composite
steps:
- name: Install foundry
shell: bash
env:
# foundry_v<version>_linux_amd64.tar.gz; change with toolchain/foundry-version.
FOUNDRY_SHA256: 6c66ffcc55fa4249197721baa3098bc208014ea1d8aa04b2ed50ac6bccffb226
run: |
version=$(cat services/network-smoke/toolchain/foundry-version)
dir="$RUNNER_TEMP/foundry"
mkdir -p "$dir"
curl -fsSL --retry 3 -o "$dir/foundry.tar.gz" \
"https://github.com/foundry-rs/foundry/releases/download/v${version}/foundry_v${version}_linux_amd64.tar.gz"
echo "$FOUNDRY_SHA256 $dir/foundry.tar.gz" | sha256sum -c -
tar -xzf "$dir/foundry.tar.gz" -C "$dir"
echo "FOUNDRY_BIN_DIR=$dir" >> "$GITHUB_ENV"
100 changes: 86 additions & 14 deletions .github/workflows/network-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- '.nvmrc'
- '.github/workflows/network-smoke.yml'
- '.github/actions/setup-yarn/**'
- '.github/actions/install-foundry/**'
- '.github/scripts/check-job-results.sh'

smoke:
Expand All @@ -68,19 +69,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install foundry
env:
# foundry_v<version>_linux_amd64.tar.gz; change with toolchain/foundry-version.
FOUNDRY_SHA256: 6c66ffcc55fa4249197721baa3098bc208014ea1d8aa04b2ed50ac6bccffb226
run: |
version=$(cat services/network-smoke/toolchain/foundry-version)
dir="$RUNNER_TEMP/foundry"
mkdir -p "$dir"
curl -fsSL --retry 3 -o "$dir/foundry.tar.gz" \
"https://github.com/foundry-rs/foundry/releases/download/v${version}/foundry_v${version}_linux_amd64.tar.gz"
echo "$FOUNDRY_SHA256 $dir/foundry.tar.gz" | sha256sum -c -
tar -xzf "$dir/foundry.tar.gz" -C "$dir"
echo "FOUNDRY_BIN_DIR=$dir" >> "$GITHUB_ENV"
- uses: ./.github/actions/install-foundry
- uses: ./.github/actions/setup-yarn
- name: Build the services, the harness and the runner
run: >-
Expand Down Expand Up @@ -114,10 +103,91 @@ jobs:
# Both output directories start with a dot.
include-hidden-files: true

smoke-scripted:
name: Explorer pipeline against a scripted pruning node
needs: changes
if: needs.changes.outputs.run == 'true'
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# No foundry and no Aztec toolchain: the scripted mode starts neither.
- uses: ./.github/actions/setup-yarn
- name: Build the services, the harness and the runner
run: >-
yarn workspaces foreach --all --topological-dev
--include '@chicmoz-pkg/*' --include '@chicmoz/test-harness'
--include '@chicmoz/aztec-listener' --include '@chicmoz/explorer-api'
--include '@chicmoz/network-smoke'
run build
- name: Pull the stack images
run: docker compose -f packages/test-harness/compose/compose.yaml --profile infra pull --quiet
- name: Run the scripted smoke
run: yarn smoke:scripted
- name: Keep the run logs
if: failure()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: network-smoke-scripted
path: |
.network-smoke/*/logs/
.network-smoke/*/marks.txt
.harness/
retention-days: 7
if-no-files-found: ignore
# Both output directories start with a dot.
include-hidden-files: true

smoke-prune:
name: Explorer pipeline through forced epoch prunes on an Aztec local network
needs: changes
if: needs.changes.outputs.run == 'true'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: ./.github/actions/install-foundry
- uses: ./.github/actions/setup-yarn
- name: Build the services, the harness and the runner
run: >-
yarn workspaces foreach --all --topological-dev
--include '@chicmoz-pkg/*' --include '@chicmoz/test-harness'
--include '@chicmoz/aztec-listener' --include '@chicmoz/ethereum-listener'
--include '@chicmoz/explorer-api' --include '@chicmoz/websocket-event-publisher'
--include '@chicmoz/network-smoke'
run build
# npm's content cache only; `npm ci` re-checks each tarball against the lock's integrity.
- name: Cache the Aztec toolchain downloads
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.npm/_cacache
key: network-smoke-npm-${{ hashFiles('services/network-smoke/toolchain/package-lock.json') }}
- name: Pull the stack images
run: docker compose -f packages/test-harness/compose/compose.yaml --profile infra pull --quiet
- name: Run the prune smoke
run: yarn smoke:prune
- name: Keep the run logs
if: failure()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: network-smoke-prune
path: |
.network-smoke/*/logs/
.network-smoke/*/marks.txt
.harness/
retention-days: 7
if-no-files-found: ignore
# Both output directories start with a dot.
include-hidden-files: true

status:
name: network-smoke-status
if: always()
needs: [changes, smoke]
needs: [changes, smoke, smoke-scripted, smoke-prune]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
Expand All @@ -130,4 +200,6 @@ jobs:
changes|${{ needs.changes.result }}|success
smoke filter|${{ needs.changes.outputs.run }}|bool
smoke|${{ needs.smoke.result }}|${{ needs.changes.outputs.run == 'true' && 'success' || 'skipped' }}
smoke-scripted|${{ needs.smoke-scripted.result }}|${{ needs.changes.outputs.run == 'true' && 'success' || 'skipped' }}
smoke-prune|${{ needs.smoke-prune.result }}|${{ needs.changes.outputs.run == 'true' && 'success' || 'skipped' }}
run: bash .github/scripts/check-job-results.sh
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"test:integration": "yarn workspace @chicmoz/test-harness test:integration && yarn workspace @chicmoz/explorer-api test:integration && yarn workspace @chicmoz/aztec-listener test:integration",
"harness": "yarn workspace @chicmoz/test-harness harness",
"smoke": "yarn workspace @chicmoz/network-smoke smoke",
"smoke:scripted": "yarn workspace @chicmoz/network-smoke smoke:scripted",
"smoke:prune": "yarn workspace @chicmoz/network-smoke smoke:prune",
"g:lint": "cd $INIT_CWD && eslint --fix",
"postinstall": "husky install",
"prepare": "husky install"
Expand Down
Loading
Loading