Skip to content

3.x.x: document the end-to-end and load CI lanes, what each proves and how to run it (#546) - #612

Merged
Anatolie merged 2 commits into
3.x.xfrom
Anatolie/546-lanes-doc
Sep 30, 2026
Merged

Anatolie merged 2 commits into
3.x.xfrom
Anatolie/546-lanes-doc

Conversation

@Anatolie

@Anatolie Anatolie commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Refs #546 (S22 of #487). The doc is updated as each lane lands, so the issue stays open.

What

New docs/prism-e2e-load-ci.md, written against what is on 3.x.x today:

Lanes that have not landed have short not yet running — owner #N sections for their PRs to fill in: the bridging lane #552, the trend and regression rule #551, runner classes #542, L3 #550, L4 under load #553, L5 #556.

Linked from docs/README.md and from the harness README's "Presets and the nightly run".

Verification

  • python3 -m unittest tests.test_docs_lab_prism_references tests.test_check_e2e_scenarios: OK.
  • Every relative link in the new doc resolves; the anchors used (#exit-codes, #honest-values, #running-one) exist.
  • Claims checked against the workflow, the run script, qbit-prism-load-gate's output format, install-prism-qbit.sh and prism_shipped_image_lane.py.

After merge the coordinator links it from #487 and #291.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T19:50:24.917505Z 6d9b8cb New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fea875ddca

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/prism-e2e-load-ci.md Resolved
Comment thread docs/prism-e2e-load-ci.md Resolved
@Anatolie

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 3d6c27d2f0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…d how to run it (#546)

docs/prism-e2e-load-ci.md: for each of #487's lanes L0-L6, what runs today,
what it proves and what it does not; how to dispatch a run; how to read the
job summary and gate.md; where the evidence lives; and how to reproduce a
run locally with .github/scripts/prism-load-run.sh. Lanes and parts not
landed yet (L3 #550, L4 under load #553, L5 #556, the bridging lane #552,
the trend and regression rule #551, runner classes #542) are marked "not
yet running" with their owner, for those PRs to fill in. Linked from
docs/README.md and the harness README's "Presets and the nightly run".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Anatolie
Anatolie force-pushed the Anatolie/546-lanes-doc branch from 3d6c27d to 6fef63f Compare September 30, 2026 19:44
…er, and say which pushes run ci.yml (#546)

A gated id is <package>::<binary>::<test path>, and some live in
qbit-prism-load, so the reproduction command now takes the package and the
binary from the id and passes only the test path to --exact, and says to
check for "1 passed" because an empty filter also exits 0. ci.yml runs on
every PR and only on pushes to main, 1.x.x, 2.x.x and 3.x.x.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Anatolie
Anatolie force-pushed the Anatolie/546-lanes-doc branch from 6fef63f to aff4eb7 Compare September 30, 2026 19:46

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6fef63fe8b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/prism-e2e-load-ci.md Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d9b8cbe71

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/prism-e2e-load-ci.md Resolved
Comment thread docs/prism-e2e-load-ci.md Resolved
@Anatolie
Anatolie merged commit ae3d9ba into 3.x.x Sep 30, 2026
30 checks passed
djh58 added a commit that referenced this pull request Sep 30, 2026
… guide (#553)

#612's lane guide still listed #553's scenarios as not yet running. L4
now names the nightly and weekly sets, the load's own checks and #598's
guard, and keeps only the 2,000-wallet case, on #604 and #622, as not
proven.

Refs #553

Co-Authored-By: Claude Opus 5.5 <[email protected]>
djh58 added a commit that referenced this pull request Sep 30, 2026
… and add tip-disagreement, peer-loss and external-tip scenarios (#553) (#618)

* 3.x.x: run #521's chain-event scenarios under 2,000 Stratum sessions, and add tip-disagreement, peer-loss and external-tip scenarios (#553)

#487 S15 (L4). #521's fixtures run unchanged under load: each case
opens the fixture as its own test does, starts a session load against
its frontends, and calls the scenario's own function (decision 12).

- live_session_load.rs: 2,000 Stratum sessions that fail over between
  frontends and submit share-only proofs at a fixed rate, so the load
  never finds a block. It stamps every node tip with a waitfornewblock
  long-poll and checks three things: every acknowledged share is a
  durable row and no refused share is; no refusal a correct miner
  cannot earn; every session gets work on every lasting tip within
  15 s while its node answers and its frontend is ready. It reports
  #481's time to usable work per frontend and per tip.
- live_chain_events_load.rs, nightly: scenarios 1 and 2, scenario 4's
  crash after acceptance, and three new scenarios with their criteria.
  Two frontends on two nodes disagree about the tip: the ledger takes
  one side, and the other frontend stands down with no work on its
  node's tip. The pool's node loses its only peer: regtest exempts the
  peer floor, so the isolated own block is deactivated and credited
  once. External tips come at the 60 s target spacing. Weekly: the
  other scenario-4 cases, the soak, 45 minutes of external tips at
  400 shares/s, and two expected failures: 2,000 sessions on one
  frontend at a 1 s reanchor (#598) and scenario 7 at 2,000 wallets
  (#604).
- Load frontends use the production 60 s reanchor. At the fixture's
  1 s, 2,000 sessions on one frontend get no work (#598).
- check_e2e_scenarios.py: ids in test/prism-weekly-gated-tests.txt run
  in the weekly lane, which now also needs the live-weekly job's
  schedule and gate-manifest step, and every weekly id must be named by
  a running scenario, as for the nightly list. The manifest cites every
  weekly id, #545's and #575's included, and each expected failure has
  its own scenario owned by its issue.
- live-weekly's timeout goes from 120 to 180 min for the long set,
  about 85 minutes.
- Shared support changes: pub(super) on scenario functions,
  outage_case_on, solve_share, the 2,000-wallet connection limit, and
  assert_no_duplicate_headers reading its two counts in one statement
  (under load, shares landed between them).

Refs #553

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* 3.x.x: hold #553's load to its claims, and guard #598 nightly instead of expecting its failure weekly (#553)

Review of the first commit found checks weaker than the manifest claims,
and #616 has since fixed #598.

- Scenarios 1, 2 and 4 now reach their first event under the whole
  load. #521's server_ready waits on a ready gate that the load
  installs (99% of sessions holding work), and scenario 4's case takes
  a `ready` hook before its first block. Before this, scenario 1's
  race came with 42 of 2,000 sessions connected and scenario 4's fault
  with about 1,350.
- Sessions spread their first connections from the first ready
  frontend, not from the load's start.
- The load records every notify, so work on a parent a session held
  before still serves that tip after a reorg back.
- Refusals are an allow-list (the harness's expected and backend
  classes). An impossible or unclassified refusal fails, and
  ledger-outcome-unknown counts as unanswered, since its share may
  land.
- External tips and the weekly soak hold at least one tip per frontend
  to the bound. The peer-loss case holds the isolated block itself to
  it on every session.
- The 1 s-reanchor case becomes #598's nightly guard at 5 shares/s,
  #598's reproducer rate: each of three tips must reach all 2,000
  sessions on the one frontend within 15 s. It fails before #616 and
  passes after it. It runs nightly because live-nightly builds debug;
  in release the fan-out outruns a 1 s reanchor even without the fix.
- The 2,000-wallet case leaves the weekly list, since in release (the
  weekly job's build) it fails on #622 rather than #604. It stays an
  ignored case for running by hand, counting as #604 only once at
  least 100 sessions opened; the wallet fixture's error now says how
  many had. wallets-2000-cap stays unexercised, naming #604 and #622,
  and the expected-failure scenarios go.
- The load soak validates its duration and budget as #521's does, and
  the load settings reuse the soak's env reader.
- live-nightly's and live-weekly's comments name the jobs they run.

Refs #553

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* 3.x.x: count work a session held at the stamp, hold lasting tips to the bound, and match the untyped refusal exactly (#553)

Review of the second commit found two checks that could pass without
holding what they claim.

- Since the load records every notify, a republication on a parent
  after the next tip's stamp could count as work on that parent when
  the node returned to it, although the session had moved to the next
  tip's work in between. Work before a stamp now counts only while the
  session still held it at the stamp: its last run of notifies on the
  tip, from after the node's previous tip. A new unit test fails on
  the old lookup.
- "At least one tip held to the bound" counted gated tips, and a gated
  tip replaced within 15 s can only count sessions as replaced. The
  report adds held_tips (gated and lasting the bound), which the
  external-tips, soak, scenario 1, 2 and 4 checks and #598's guard now
  use; the soak ends on a closing tip, since its own blocks come seconds
  apart.
- The one refusal without a reason_id a correct load can earn is the
  unknown-job budget, now matched on its code and exact message as the
  harness does. "too many connections" is an authorize-time error and
  never reaches the submit counts.
- The manifest's criteria say what the load checks: the refusal
  allow-list, and every session holding work in #598's guard. Stale
  comments are fixed, and until_connected reuses holding.

Refs #553

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* 3.x.x: document #553's chain events under session load in the CI lane guide (#553)

#612's lane guide still listed #553's scenarios as not yet running. L4
now names the nightly and weekly sets, the load's own checks and #598's
guard, and keeps only the 2,000-wallet case, on #604 and #622, as not
proven.

Refs #553

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant