Skip to content

3.x.x: run the short plan on the fake and the real node on one runner and report what the real node costs (#552) - #613

Merged
Anatolie merged 2 commits into
3.x.xfrom
Anatolie/552-bridging-lane
Sep 30, 2026
Merged

Anatolie merged 2 commits into
3.x.xfrom
Anatolie/552-bridging-lane

Conversation

@Anatolie

@Anatolie Anatolie commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Closes #552 (S12 of #487). Stacked on #612 (Anatolie/546-lanes-doc), whose lanes doc it updates.

What

  • bridging job in prism-load-nightly.yml: short-plan-fake-node and short-plan-real-node, one after the other on one 8 vCPU runner, through prism-load-run.sh, on the pinned commit and the shared release binaries. It runs on the nightly schedule, on the run-load label, and on dispatch with the new bridging: true input. It runs in addition to the matrix's existing short-plan-fake-node / short-plan-real-node jobs, which are unchanged. The order alternates with the run number, and the row records it. The qbit install step matches the matrix job's. Both halves always run and the row is always written. Each half runs under timeout with its preset's own timeout_minutes, so a hung half cannot use up the job's time and leave the other half and the row unrun. The job then fails if either half's gate did not exit 0, and the report job files that as a scheduled failure. timeout-minutes: 75 is the two presets' 30 min each plus setup. A test holds it against the presets' values.

  • scripts/prism_load_bridge.py reads both run directories and writes bridge-row.json (qbit.prism.load-bridge.v1) and a job-summary table of real minus fake:

    • client_ack_latency p50/p99 per phase;
    • the slowest session's time to usable work over the external tips (p50, max);
    • per-frontend and summed peak RSS (VmHWM);
    • the pool node's submitblock and getblocktemplate latency through the relay, and the pool qbitd's peak RSS. These exist only on the real node, so the fake side and the difference are unknown, never 0 (EP-OBSERVABILITY).

    Any figure a side could not measure stays null with its reason. A side whose harness or gate did not exit 0, or whose report has another schema or preset, marks the row untrusted and says why (EP-COMPAT). The row and the table say it is not a D1 verdict.

  • Manifest: bridging-fake-and-real-node becomes runs = true in nightly, citing the pair. tests/test_prism_load_bridge.py holds the job's wiring. check_e2e_scenarios.py is unchanged and passes.

  • Docs: the lanes doc's bridging section is filled in, and the harness README's preset table points at it.

Verification

  • python3 -m unittest tests.test_prism_load_bridge tests.test_check_e2e_scenarios tests.test_prism_load_matrix: 45 tests OK.
  • python3 scripts/check_e2e_scenarios.py: passes. actionlint .github/workflows/prism-load-nightly.yml: clean.
  • An end-to-end local run of the job's steps on a 22-core dev VM: release build, then prism-load-run.sh for both presets (real side on the pinned qbit 1.0.0), then the bridge script on the two real run directories. The real half passed its gate. The fake half aborted in slow_database with a host-local PostgreSQL /dev/shm segment error unrelated to this change, which exercised the untrusted path: the row named both exit codes, and the missing phase and fake-only unknowns kept their reasons. That run caught a bug (the runner label key in host.json), now fixed and covered by the tests.
  • /code-review medium found that neither half had its own time limit, so one hung half could leave no row. Fixed: each half now runs under timeout with its preset's own minutes, and timeout was checked to kill the half's whole process group.
  • Not verified: a real Actions run of the job. It needs a dispatch or the nightly after the workflow reaches main, which the coordinator owns.

🤖 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 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: f19e13c725

ℹ️ 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".

@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-30T21:03:39.983584Z 000ebd7 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.

@Anatolie

Copy link
Copy Markdown
Member Author

@codex review

@Anatolie
Anatolie force-pushed the Anatolie/552-bridging-lane branch from 57d840a to 83a361b Compare September 30, 2026 18:43
@Anatolie
Anatolie force-pushed the Anatolie/546-lanes-doc branch 2 times, most recently from 6fef63f to aff4eb7 Compare September 30, 2026 19:46
… and report what the real node costs (#552)

A `bridging` job in prism-load-nightly.yml runs short-plan-fake-node and
short-plan-real-node one after the other on one 8 vCPU runner, alternating
the order with the run number, on the nightly schedule, the run-load label
and on dispatch (`bridging: true`). It runs in addition to the matrix's own
jobs for the two presets. scripts/prism_load_bridge.py reads both run
directories and writes bridge-row.json (qbit.prism.load-bridge.v1) and a job
summary table of real minus fake: client_ack_latency p50/p99 per phase, the
slowest session's time to usable work over the external tips, per-frontend
and summed peak RSS, and the pool node's submitblock and getblocktemplate
relay latency and peak RSS. What only the real node measures stays unknown
on the fake side, never 0, and a side that failed its harness or gate
marks the row untrusted. The row states it is not a D1 verdict. Both halves
always run and the row is always written; the job then fails if either
half failed its gate, and the report job files a scheduled failure.

The manifest's bridging-fake-and-real-node scenario now runs (nightly),
citing the pair; tests/test_prism_load_bridge.py holds the job's wiring,
its timeout against the presets' and the pair differing only in --node.
The lanes doc and the harness README describe the lane.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Anatolie
Anatolie changed the base branch from Anatolie/546-lanes-doc to 3.x.x September 30, 2026 21:00
@Anatolie
Anatolie force-pushed the Anatolie/552-bridging-lane branch from 83a361b to bdea850 Compare September 30, 2026 21:00
…ed its gates (#552)

A bridge that failed during setup or timed out still let the report job
record the commit as tested when the matrix presets reached theirs, so the
guard skipped the next unchanged night and the same-runner comparison was
never retried. The bridging job now leaves a prism-load-gated-bridging
marker when both halves' gates returned 0 or 1, and the report job requires
it beside the matrix presets' markers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Anatolie
Anatolie force-pushed the Anatolie/552-bridging-lane branch from bdea850 to 000ebd7 Compare September 30, 2026 21:00
@Anatolie
Anatolie merged commit 35f5181 into 3.x.x Sep 30, 2026
41 of 42 checks passed
Anatolie added a commit that referenced this pull request Sep 30, 2026
…spread, trend the bridging job, file the soak under its own lane, and document the evidence lane (#551)

- prism_load_regress.py reads qbit.prism.runner-probe-variance.v1 (#605):
  all.cv of the run's own #542 fsync band, else the class's all-band group;
  other schemas and versions refused by name; numbers #542 does not measure
  stay provisional and are named. The fixture is written by
  prism_load_probe.variance itself, and a test keeps it in step.
- The evidence action passes test/prism-load-variance.json once checked in.
- #613's bridging job gets a job row (L2) and joins the evidence job's needs.
- The Saturday soak's rows are lane `weekly` (the manifest's), not L5.
- docs/prism-e2e-load-ci.md: the evidence, trend and regression sections.

Refs #551

Co-Authored-By: Claude Opus 5.5 <[email protected]>
RobertClarke added a commit that referenced this pull request Oct 6, 2026
#551, #553, #554, #582)

The file is 3.x.x's copy byte for byte again, as of 3.x.x c95febb; the
last change to it there is bd1ddeb (#663). Since 1932cb3 (#597), five
3.x.x changes landed in it:

- #552 (#613): the `bridging` job runs the short plan on the fake and
  the real node on one runner, nightly, on the run-load label and on a
  dispatch with the new `bridging` input.
- #551 (#606): every preset job builds a trend row; on a schedule the
  `evidence` job (the one job with `contents: write`) appends the rows to
  the orphan `ci-evidence` branch, applies the report-only regression
  rule, promotes the soak's and flagged runs' bundles to the rolling
  `ci-evidence/YYYY-MM` pre-release, and keeps one
  `prism-load-regression` issue. PR and dispatch runs get the read-only
  `evidence-preview` instead.
- #553 (#618): the live nightly and weekly lists gain the chain-event
  scenarios under 2,000 sessions; the workflow's comments say so.
- #554 (#635): the run job installs fuse2fs and fuse3 for a preset whose
  faults fill the WAL volume (faults-long-real-node, Saturday).
- #582 (#663): comment only.

Without this, main's scheduled copy (#595) still has no qbitd install
step, so every `--node qbitd` preset fails with "--node qbitd needs
--qbitd-bin or QBITD_BIN" (scheduled runs 37188928798 and 37287515779).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Anatolie added a commit that referenced this pull request Oct 16, 2026
 (#590, #596, #588, #597, #552, #551, #553, #554) (#601)

* main: sync the PRISM load-harness nightly workflow from 3.x.x (#590, #596)

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

* main: sync the PRISM load-harness nightly workflow from 3.x.x (#590, #596, #588, #597)

Adds #588's Saturday 5.5 h soak schedule and its live-nightly step that runs every listed test binary, so qbit-prism-load::soak_smoke runs beside the live_regtest variants, and #597's L6 shipped-images lane on the Sunday schedule. Byte-identical to 3.x.x at 1932cb3.

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

* main: re-sync the PRISM load-harness nightly workflow from 3.x.x (#552, #551, #553, #554, #582)

The file is 3.x.x's copy byte for byte again, as of 3.x.x c95febb; the
last change to it there is bd1ddeb (#663). Since 1932cb3 (#597), five
3.x.x changes landed in it:

- #552 (#613): the `bridging` job runs the short plan on the fake and
  the real node on one runner, nightly, on the run-load label and on a
  dispatch with the new `bridging` input.
- #551 (#606): every preset job builds a trend row; on a schedule the
  `evidence` job (the one job with `contents: write`) appends the rows to
  the orphan `ci-evidence` branch, applies the report-only regression
  rule, promotes the soak's and flagged runs' bundles to the rolling
  `ci-evidence/YYYY-MM` pre-release, and keeps one
  `prism-load-regression` issue. PR and dispatch runs get the read-only
  `evidence-preview` instead.
- #553 (#618): the live nightly and weekly lists gain the chain-event
  scenarios under 2,000 sessions; the workflow's comments say so.
- #554 (#635): the run job installs fuse2fs and fuse3 for a preset whose
  faults fill the WAL volume (faults-long-real-node, Saturday).
- #582 (#663): comment only.

Without this, main's scheduled copy (#595) still has no qbitd install
step, so every `--node qbitd` preset fails with "--node qbitd needs
--qbitd-bin or QBITD_BIN" (scheduled runs 37188928798 and 37287515779).

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Robert Clarke <[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