Skip to content

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

Merged
Anatolie merged 6 commits into
3.x.xfrom
s19-l6-compose-ha
Sep 30, 2026
Merged

Anatolie merged 6 commits into
3.x.xfrom
s19-l6-compose-ha

Conversation

@Anatolie

@Anatolie Anatolie commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Part of #544 (#487 S19, lane L6).

What

  • scripts/prism_shipped_image_lane.py (new) drives the lane:
    • prepare stages 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 with openssl (matches qbit-pool-builder --print-public-key-hex), the public Stratum URL and the two frontends' instance IDs. Everything else is the checked-in lab defaults.
    • build runs docker compose build for qbitd, prism-coordinator (the frontends and the public API share that image) and real-miner.
    • run brings up compose.yaml + compose.prism-ha.yaml with the prism profile on a regtest node, then checks:
      • ha-frontends-ready: both /healthz return ok: true with distinct IDs, and each frontend's self-check sees 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 and qbit-prism-miner on 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 passes qbit-prism-audit-verify against 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/latest report the ledger count.
      • public-api-lists-found-blocks: the public API, which reads the replica, lists the verified blocks.
    • Afterwards it writes a JSON report, the client logs, the Compose logs and a step summary, then runs down -v.
  • prism-load-nightly.yml: new shipped-images job on an 8 vCPU runner with a 45-minute timeout.
  • Scenario manifest: L6 is marked running, shipped-image-lane runs, and cross-frontend-authorisation gains L6. check_e2e_scenarios.py learns a lane_checks evidence kind, held to the driver's CHECKS (read via ast) and the L6 workflow wiring.
  • Docs: the 3.x.x: HA Compose overlay and database reference architecture (operator-supplied Stratum LB) #281 evidence row in docs/prism-ha-reference-architecture.md now 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.py passes.
  • All four Python CI shards pass locally, apart from Docker-dependent parity citations that can't run on a host without Docker; those are unrelated.
  • Live runs on this PR: the first run caught cpuminer flooding the pool at the lab's 1e-9 share floor, now paced with --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.
  • Known and recorded, not gated: frontend 1's self-check reports ok: 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.x and is mirrored to main, as #538/#567 were.

🤖 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 29, 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-30T15:12:22.954273Z 4fd6cd3 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: 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".

@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: 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".

@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: 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".

Comment thread scripts/prism_shipped_image_lane.py 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: 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".

Comment thread scripts/prism_shipped_image_lane.py 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: 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".

Comment thread scripts/prism_shipped_image_lane.py Resolved
Anatolie and others added 6 commits September 30, 2026 10:59
…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]>
@Anatolie

Copy link
Copy Markdown
Member Author

Post-merge steps for humans

  1. Check the first L6 run on 3.x.x. The merge changes files the lane watches, so the push to 3.x.x starts one "Shipped images (Compose prism profile, HA overlay)" run in the PRISM load harness (nightly) workflow. Make sure it passes. The last run on this PR took about 8 minutes. A cold image build can use most of the 45-minute limit.
  2. Copy the workflow to main. GitHub runs scheduled workflows only from main's copy of .github/workflows/prism-load-nightly.yml. Until main has this change, the Sunday 03:43 UTC run won't include L6, and the Run workflow form on main won't show the new images option. Copy the file byte for byte from 3.x.x, as main: sync the PRISM load-harness nightly workflow from 3.x.x (#559, #540) #567, main: sync the PRISM load-harness nightly workflow from 3.x.x (#565) #583 and main: sync the PRISM load-harness nightly workflow from 3.x.x (#586, #587, #593, #594) #595 did. main: sync the PRISM load-harness nightly workflow from 3.x.x at c95febb3 (#590, #596, #588, #597, #552, #551, #553, #554) #601, the open sync for 3.x.x: drive a real regtest qbitd from qbit-prism-load, ramped to the fake node's difficulty and reconciled against the chain (#547) #590 and 3.x.x: run the load nightly on a run-load label, skip unchanged nights, report scheduled failures, and fingerprint each preset's host (#549) #596, can be refreshed from 3.x.x to include it, or a new sync PR can follow main: sync the PRISM load-harness nightly workflow from 3.x.x at c95febb3 (#590, #596, #588, #597, #552, #551, #553, #554) #601.
  3. Close 3.x.x: Shipped-image lane (L6): Compose prism profile with the HA overlay (#487 S19) #544 after the first Sunday run passes. This PR says "Part of 3.x.x: Shipped-image lane (L6): Compose prism profile with the HA overlay (#487 S19) #544", so the issue won't close itself. Once main has the workflow and a scheduled Sunday run of L6 has passed, tick both acceptance boxes and close it.

Nothing to set up:

  • No new secrets or variables. The job only uses the built-in GITHUB_TOKEN.
  • No new runners. It uses blacksmith-8vcpu-ubuntu-2404, which other jobs in this workflow already use.
  • No branch-protection change. L6 is not a required check.
  • A failed Sunday run opens or updates the prism-load-nightly-failure issue automatically.

@Anatolie
Anatolie merged commit 1932cb3 into 3.x.x Sep 30, 2026
30 checks passed
Anatolie added a commit that referenced this pull request Sep 30, 2026
…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]>
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