Repository navigation
3.x.x: run the shipped images under the Compose prism profile with the HA overlay, weekly and on Dockerfile or Compose changes (#544) - #597
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aa48096c06
ℹ️ 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".
ed9fd85 to
6f4db0c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6f4db0c761
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b3f99f145
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b26b68efc9
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ce2b031763
ℹ️ 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".
…e HA overlay, weekly and on Dockerfile or Compose changes (#544) `docker compose build`, brings up compose.yaml + compose.prism-ha.yaml with the prism profile on a real regtest node, mines with cpuminer-opt on one frontend and qbit-prism-miner on the other, and checks: both frontends ready and observed by each one's self-check; #281 criterion 1 across them; a found block per client on the active chain whose audit bundle both frontends serve and which verifies against the node's coinbase; exact client-to-ledger share reconciliation; and the public API listing the verified blocks. The `shipped-images` job in prism-load-nightly.yml runs it on the weekly schedule, on dispatch, and on pull requests and 3.x.x pushes that touch a Dockerfile, a Compose file or what they build from; those events run no other job. The e2e scenario manifest marks L6 running, and its checker now holds `lane_checks` to the driver's CHECKS. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nd client logs (#544) The first L6 run passed everything but cpuminer: at the lab's 1e-9 share floor it submitted 41M shares in four minutes without waiting for answers, never read a job after the first block, and left a 5 GB log. Hash locally to a harder target (--diff-multiplier, 1e7 by default), parse client output as it streams, cap each client's log and echo, and keep each self-check's stderr in the report. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…'s cap (#544) The compare API lists at most 300 files and the PR files API 3,000, so a watched change past the cap would have skipped L6. A list at its cap now runs the lane, and renamed-from paths count as changed too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tch it (#544) prepare-qbit-source.sh and the Makefile prefer the tracked config/upstream.env over its example, but the lane's Compose commands read the example, so the two could build from different pins, and a change to config/upstream.env alone would not run L6. Pick the file the same way, watch both, and key the qbit source cache on both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… non-duplicate refusal (#544) Once the legitimate resume had credited the header, the other worker's refusal could have been a mere duplicate, which would not show that another worker cannot resume the job. It now submits first, while the proof is unspent, and its refusal must not be duplicate-share. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…swered (#544) Neither shipped client logs a share's identity, so the lane compares counts. With a submission unanswered at shutdown, a lost acknowledged share and a committed unanswered one would cancel out, so the check no longer passes on bounds: it needs ledger rows equal to acknowledged shares and nothing unanswered. Both runs so far ended with nothing unanswered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
b1a144c to
4fd6cd3
Compare
Post-merge steps for humans
Nothing to set up:
|
…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]>
#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]>
(#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]>
Part of #544 (#487 S19, lane L6).
What
scripts/prism_shipped_image_lane.py(new) drives the lane:preparestages the pinned qbit source and writes a lane env file. The file holds fresh signing seeds for the run, the ledger writer key derived from them withopenssl(matchesqbit-pool-builder --print-public-key-hex), the public Stratum URL and the two frontends' instance IDs. Everything else is the checked-in lab defaults.buildrunsdocker compose buildforqbitd,prism-coordinator(the frontends and the public API share that image) andreal-miner.runbrings upcompose.yaml+compose.prism-ha.yamlwith theprismprofile on a regtest node, then checks:ha-frontends-ready: both/healthzreturnok: truewith distinct IDs, and each frontend'sself-checksees both live instances.cross-frontend-resume: 3.x.x: HA Compose overlay and database reference architecture (operator-supplied Stratum LB) #281 criterion 1 on the images. Work issued by frontend 1 is accepted on frontend 2. The same share is refused from another worker and on replay to either frontend, and the ledger credits it once.cpuminer-found-block/prism-miner-found-block: cpuminer-opt (docker/real-miner) on frontend 1 andqbit-prism-mineron frontend 2 each solve a confirmed block that stays on the node's active chain.found-block-audit-verifies: both frontends serve the same audit bundle for each client's latest block, and it passesqbit-prism-audit-verifyagainst the node's coinbase and the lane's writer key.ledger-reconciles: each client's ledger rows equal the shares it saw acknowledged, with none of its submissions left unanswered. Neither client logs share identities, so this count match is only exact when nothing is in flight. Each credited header is credited once, both frontends wrote shares, and both/audit/latestreport the ledger count.public-api-lists-found-blocks: the public API, which reads the replica, lists the verified blocks.down -v.prism-load-nightly.yml: newshipped-imagesjob on an 8 vCPU runner with a 45-minute timeout.images: true), and on PRs into3.x.xand3.x.xpushes that change a watched path: any Dockerfile, the Compose files, or what the images are built or configured from.pull_request: [labeled]trigger forrun-load. A trigger-levelpathsfilter would also gate that label, so a cheapchangesjob applies the path list instead. The list isWATCHED_PATHSin the driver, read withprism_shipped_image_lane.py changed, and only PRs into3.x.xare considered. That makes a straight copy of the workflow tomainsafe: onmainit runs L6 only on the weekly schedule.guardnow ignorespush, so a push never starts the preset matrix.reportnow also coversshipped-images, so a failed weekly L6 run opens or updates the failure issue.weeklychecker lane and itssoakconcurrency group sit alongside L6 unchanged.L6is marked running,shipped-image-laneruns, andcross-frontend-authorisationgains L6.check_e2e_scenarios.pylearns alane_checksevidence kind, held to the driver'sCHECKS(read viaast) and the L6 workflow wiring.docs/prism-ha-reference-architecture.mdnow records what L6 automates and what is still open (a real load balancer on the production placement).Verification
python3 -m unittest tests.test_prism_shipped_image_lane tests.test_check_e2e_scenarios: 26 new lane tests and 5 new checker tests pass. The header builder reproduces Bitcoin's genesis hash from a notify-shaped job.python3 scripts/check_e2e_scenarios.pypasses.--diff-multiplier. The second passed all seven checks. cpuminer submitted 143 shares, 138 were accepted and 138 are in the ledger, with 9 confirmed blocks. qbit-prism-miner submitted 811, all accepted and in the ledger.self-checkreportsok: false(a 503 health response) while blocks land every fraction of a second. This matches the documented readiness drop on a new tip; its live-instance report still sees both frontends.Follow-up
GitHub runs schedules only from the default branch, so the weekly trigger takes effect once this lands on
3.x.xand is mirrored tomain, as #538/#567 were.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.