Repository navigation
build(pypi,npm): build and install-test wheels and npm packages for all five targets in the release rehearsal - #13809
Conversation
#5378) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
…, #4778) The native npm producer admitted only Linux x64. It now derives the package name, platform metadata, executable path and archive name from the identity's policy row, cross-checked against the launcher contract, and writes a per-target receipt so one output directory can hold the whole family. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
Wraps one target's verified native release payload into a platform-tagged ripr-rs wheel without rebuilding, binding the same payload identity, producer receipt, selected-target build identity and qualified archive as the npm producer. Re-opens and verifies the wheel before promotion and writes a per-target receipt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
…mily and install-smoke each platform (#5378) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
…nd document it (#5378) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 41 minutes. View limit details
|
…inimum (#5378 review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY — head 87d1c5f
Independent fresh-context review of the full diff found nothing blocking. Its three nits are in a625240: a pinned toolchain for the smoke job, a diagnostic when the macOS minimum cannot be read, and the docs pip command now matches the workflow. 87d1c5f adds only a merge of main, with no conflicts.
Rehearsal run 42502366826 on a625240 (https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/42502366826) passed every job:
- five archives built and qualified;
packageswrote five wheels, five native npm packages and the launcher;package-smokepassed on Linux x64 and ARM64, macOS Intel and ARM64, and Windows x64. On each one pip picked the host's own tag from all five wheels, offline npm installed the launcher plus the native package, and both installs printedripr 0.11.0 (a625240d…)and ranripr doctor. The macOS Mach-O minimums read 10.12 and 11.0, equal to the wheel tags.
Locally: 17 producer tests, clippy -D warnings on xtask, fmt, check-workflows, check-ci-lane-whitelist, check-release-targets, check-command-catalog, and the process and network policies all came back clean. The full local precommit was OOM-killed while compiling an unrelated ripr lib-test target, so hosted CI covers that part.
Generated by Claude Code
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
ripr static exposure checkCommit ripr did not produce a report for this commit. Nothing here is a finding. |
…eds; one owner for build-identity binding (#5378 review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
…package family into a called read-only workflow (#5378) swarm_server_binary_rehearsal_cannot_publish requires release-server-binaries.yml to carry no steps of its own. The package build and install smoke now live in package-family-qualification.yml (workflow_call only, contents: read), guarded by swarm_package_family_rehearsal_cannot_publish with publication negatives. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
…harden family promotion (#5378) Independent review of the workflow split found the moved package jobs had left release-proof routing: proof-packs only listed the entrypoint. The release-package pack and check-proof-packs' required surfaces now include package-family-qualification.yml. Also: roll back a partially promoted family so a retry is never refused, create the family staging before the temp payload dir so a refused output dir leaks nothing, restrict the called workflow's triggers to exactly workflow_call (schedule negative control added), bind the caller check to the packages job, and correct the lane ledger description. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY — head 6064009
A fresh-context reviewer read the delta 87d1c5f..19290b3 and found nothing blocking. Its findings are repaired in 6064009:
- Release-proof routing:
package-family-qualification.ymlis now in therelease-packageproof pack and in check-proof-packs' required release surfaces, so editing it trips release proof the way editing the entrypoint did. - A partially promoted family is moved back into staging, so a retry is never refused, and the family staging is created before the temp payload directory, so a refused output directory leaks nothing.
- The guard test now accepts exactly one trigger (
workflow_call), with a newschedulenegative control, and checksneeds: rehearseinside thepackagesjob only, with its own negative control. - The lane ledger says where the delegated jobs actually run.
Earlier on this branch, all reviewed: unused-import fix, atomic family staging with a failed-family test, a single owner for expected_qualification, and the entrypoint kept as pure delegation with the jobs in the new called read-only workflow.
Rehearsal run 42517337270 on 19290b3 (https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/42517337270) passed every job: five archives, manifest, package build, and install smoke on Linux x64 and ARM64, macOS Intel and ARM64, and Windows x64. 6064009 changes no workflow file. Its only production change is in the failure and rollback paths of family promotion plus staging order, which the unit tests cover.
Locally on 6064009: 36 focused xtask tests (packages, wheel, npm, proof packs, both rehearsal guards), clippy -D warnings on xtask all targets, fmt, check-proof-packs and check-ci-lane-whitelist all came back clean. The ub-review sensor's gh_pr_status_no_settings exit 101 does not touch this diff; that test passes 7/7 locally.
Generated by Claude Code
Requested by Steven Zimmerman · project thread
Governing issue or accepted claim: #5378
Acceptance delta (one sentence): One
release-server-binaries.ymldispatch now wraps all five qualified archive payloads intoripr-rsplatform wheels and native npm packages plus the launcher, and installs each family member offline with pip and npm on its own native runner, without publishing anything.Problem
PyPI and npm only carry Linux x86-64 alphas. The five server archives already qualify for every target, but nothing turned those payloads into wheels or npm platform packages, so macOS, Windows and Linux ARM users had no registry install path (#5378). The npm native producer from #11085 admitted Linux x64 only, and there was no wheel producer that reuses archive bytes.
Change
policy/distribution.toml: each target pins awheel_platform_tag(manylinux_2_34_x86_64,manylinux_2_34_aarch64,macosx_10_12_x86_64,macosx_11_0_arm64,win_amd64), checked bycheck-release-targets. The manylinux floor matches the archive job's glibc 2.34 check; the macOS values are rustc's defaults, since the archive build sets no deployment target.npm_native.rs: the package name,os/cpu/libc, executable path and archive name come from the identity's policy row, cross-checked against the launcher contract. Receipts are per target. Windows payloads skip the source execute-bit check, because zips carry no POSIX mode.expected_qualificationis the single owner of the identity/producer/build/archive binding, shared with the wheel producer.wheel_native.rs: a deterministicripr_rs-<pep440>-py3-none-<tag>.whlbuilt from the verified payload with the same binding as the npm producer. METADATA comes frompackaging/python/pyproject.toml. The wheel is re-opened and fully verified before promotion.packages.rsandrelease-server-archive --packages-from <artifacts> --out-dir <dir>: extracts each target's flat archive (refusing nested, hidden, duplicate or non-regular members) and runs both producers in a private staging directory. Only when all five targets succeed arenpm/andwheels/promoted; any failure promotes nothing.release-server-binaries.ymlstays pure delegation (its existing guard forbids steps in the entrypoint) and adds apackagesjob that calls the new workflow afterrehearse.package-family-qualification.yml(workflow_callonly,contents: read):buildproduces the family and packs the launcher into theripr-platform-packagesartifact;package-smokeruns on five native runners. pip installs from the whole five-wheel directory and must choose the host's own tag. npm installs--offlinefrom the launcher plus the host's native tarball with an empty cache. Both installed commands must printripr <version> (<commit>)and runripr doctorin a fresh Cargo project. On macOS the Mach-O minimum OS must not exceed the wheel tag.swarm_package_family_rehearsal_cannot_publishwith seven negative controls (write permissions, id-token, secrets, registry-url, npm publish, twine/pypi-publish, persisted credentials).RELEASE_BINARIES.md,INSTALL_CHANNELS.md), workflow allowlist, lane ledger, risk packs and changelog fragment.Decisions
EffortlessMetrics/ripr. Native npm packages must go out before the launcher, with a non-latesttag for prereleases.Evidence
cargo test -p xtask -- wheel_native npm_native release_server::packagespasses, including every policy target packing its launcher-matching npm package, cross-target identity refusal, wheel inventory/RECORD/tag/mutation rejections, archive extraction negatives and the failed-family-promotes-nothing case. The workflow guard tests pass.gh_pr_status_no_settings(flagged by the focused-proof bot) passes 7/7 locally on 19290b3; it does not touch this diff.precommitwas OOM-killed compiling the unrelatedriprlib test target in this container; hosted CI covers it.Workflow trust note
This PR changes release qualification machinery, so it needs independent review and cannot self-qualify. The new jobs have
contents: readonly, use no secrets, and the only thing they upload is an Actions artifact.🤖 Generated with Claude Code
https://claude.ai/code/session_01UNUoLX9ZYXGESGWAJiaPxq