Skip to content

ci: split chrome e2e per-network for nightly + node-monitor symmetry#228

Draft
WiktorStarczewski wants to merge 2 commits intomainfrom
wiktor/nightly-chrome-mobile-split
Draft

ci: split chrome e2e per-network for nightly + node-monitor symmetry#228
WiktorStarczewski wants to merge 2 commits intomainfrom
wiktor/nightly-chrome-mobile-split

Conversation

@WiktorStarczewski
Copy link
Copy Markdown
Collaborator

@WiktorStarczewski WiktorStarczewski commented May 5, 2026

Summary

Splits e2e-blockchain.yml into four workflows so chrome push-coverage and per-network nightly coverage can each have their own trigger and own gate strategy. The split is what unlocks the symmetric per-network nightly CI card in 0xMiden/node, while keeping the existing OR-tolerance gate for main-push merges.

Changes

File Trigger Lanes Gate
e2e-blockchain-chrome.yml (new) push to main + workflow_dispatch chrome devnet + chrome testnet "AT LEAST ONE network passed" gate (preserved from original)
e2e-blockchain-chrome-devnet.yml (new) nightly cron 0 4 * * * + workflow_dispatch chrome devnet only n/a — single network
e2e-blockchain-chrome-testnet.yml (new) nightly cron 0 4 * * * + workflow_dispatch chrome testnet only n/a — single network
e2e-blockchain-mobile.yml (renamed from e2e-blockchain.yml, mobile-only) push to main + workflow_dispatch iOS devnet + iOS testnet original "AT LEAST ONE" mobile gate

The two nightly per-network workflows auto-create a ci-failure / nightly-e2e issue on schedule failure (push reds stay on the merge commit; PR/workflow_dispatch reds don't open issues either).

Why four files

Two requirements pulling in different directions:

  1. Push-time merge tolerance. A single-network protocol mismatch (devnet ahead of the pinned SDK, etc) shouldn't block merges. The original workflow's "at least one network passed" gate handled this. Splitting per-network removed it; this PR puts it back inside e2e-blockchain-chrome.yml (push-only).
  2. Per-network nightly visibility. The network-monitor exists in devnet and testnet flavors and each only cares about its own network's nightly result. Per-network workflows let each monitor pin to a single workflow file. e2e-blockchain-chrome-{devnet,testnet}.yml (schedule-only) carry this.

No cross-trigger duplication: e2e-blockchain-chrome.yml runs on push, the per-network siblings run on schedule. They don't both fire on the same event.

Companion PR

0xMiden/node#2050 — adds the nightly_ci card to the network-monitor that consumes the scheduled per-network runs.

Test plan

  • Push lands → e2e-blockchain-chrome.yml runs both lanes, gate evaluates OR-tolerance, e2e-blockchain-mobile.yml runs iOS lanes
  • Push does NOT trigger e2e-blockchain-chrome-devnet.yml or e2e-blockchain-chrome-testnet.yml
  • Schedule fires next 04:00 UTC → only the per-network nightly workflows run; mobile and the push workflow do not
  • Force a schedule failure (workflow_dispatch with intentionally broken commit on a per-network workflow) → tracking issue created with nightly-e2e label
  • workflow_dispatch runs do NOT create a tracking issue
  • Push run with one network red, one green → push gate still passes (tolerance verified)

Replaces the multi-network e2e-blockchain.yml with three workflows that
match how the wallet is actually monitored downstream — the network-
monitor exists in devnet and testnet flavors, and each only cares about
its own network's nightly result.

- e2e-blockchain-chrome-devnet.yml: chrome devnet only, push + nightly
  (04:00 UTC) + workflow_dispatch. Auto-creates a tracking issue on
  scheduled-run failures (push reds stay on the merge commit).
- e2e-blockchain-chrome-testnet.yml: chrome testnet only, same shape.
- e2e-blockchain-mobile.yml: iOS lanes (renamed from e2e-blockchain.yml,
  mobile sections only). Push trigger only — macOS minutes are 10x and
  the on-push cadence is enough.

Trade-off: the previous 'AT LEAST ONE network passed' merge tolerance
inside a single chrome workflow no longer exists, since each network is
its own workflow now. If you want that tolerance preserved at the merge
gate, configure branch protection so neither devnet nor testnet is a
hard required check; the network-monitor cards carry the day-to-day
visibility.

Companion: 0xMiden/node nightly-card PR.
@WiktorStarczewski WiktorStarczewski added the no changelog Skip changelog check for trivial changes label May 5, 2026
Reviewer feedback: per-network split removed the 'AT LEAST ONE network
passed' merge tolerance for main pushes — single-network protocol
mismatches (devnet ahead of pinned SDK, etc) would suddenly block merges
they previously didn't.

Restructured to four chrome+mobile workflows by purpose:

  e2e-blockchain-chrome.yml          — push-only, both networks + gate
  e2e-blockchain-chrome-devnet.yml   — schedule-only, devnet
  e2e-blockchain-chrome-testnet.yml  — schedule-only, testnet
  e2e-blockchain-mobile.yml          — push-only, iOS lanes (unchanged)

The schedule-only per-network workflows feed the network-monitor cards
(devnet monitor pins to chrome-devnet, testnet monitor pins to
chrome-testnet). The push workflow keeps the OR-gate for merge
protection. No cross-trigger duplication: chrome.yml runs on push,
chrome-{devnet,testnet}.yml run on schedule, neither double-fires.

Trade-off settled: tolerance preserved for merge gating, per-network
visibility preserved for monitoring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog Skip changelog check for trivial changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant