8000 Add fork release-candidate policy, tooling, and gate (#19) by Tigon32 · Pull Request #180 · Tigon32/miniquad · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
e4b96d2
docs: propose fork release candidate contract (#19)
Tigon32 Nov 11, 2026
ae468a6
docs: resolve release candidate design challenge for #19
Tigon32 Nov 11, 2026
7bba46a
docs: connect candidate policy and evidence requirements
Tigon32 Nov 11, 2026
bebcdb4
feat: add release candidate tooling, drill, and gate for #19
Tigon32 Nov 11, 2026
5bf98c4
fix(gate): close five fail-open routes to a false QUALIFIED-CANDIDATE
Tigon32 Nov 11, 2026
9596c62
Reject incomplete release evidence and invalid timing samples
Tigon32 Nov 11, 2026
d1547ff
Merge current master into release tooling review
Tigon32 Nov 11, 2026
9955f6a
Collect completed exact-source CI runs from the pinned GitHub host
Tigon32 Nov 11, 2026
8b12b27
Reject release version rounding and integer overflow
Tigon32 Nov 11, 2026
59b0632
Bind release qualification to retained CI run and job references
Tigon32 Nov 11, 2026
a316e2b
Merge protected master local-CI support into release qualification
Tigon32 Nov 11, 2026
1dbf8fa
Fix CI collection completeness and size-evidence validation
Tigon32 Nov 11, 2026
4614291
Merge remote-tracking branch 'origin/master' into feat/release-policy…
Tigon32 Nov 11, 2026
02e25ff
Merge remote-tracking branch 'origin/master' into feat/release-policy…
Tigon32 Nov 11, 2026
0c59538
Fix drill browser-evidence, WASM/manifest identity, source-path, and
Tigon32 Nov 11, 2026
a8ef0d1
Reapply G1 drill-identity gate fix and resolve contract section-15 ta…
Tigon32 Nov 11, 2026
163a90f
Document consumer distribution, manual compatibility matrix, and plan…
Tigon32 Nov 11, 2026
fcbc464
Merge origin/master into feat/release-policy-integration (issue #19)
Tigon32 Nov 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 147 additions & 0 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
name: Miniquad release candidate

# Manual, candidate-scoped reference workflow (docs/release-candidate-contract.md
# section 8). Dispatch only for a specific candidate commit that is already
# on `master`; never run this per pull request.
on:
workflow_dispatch:
inputs:
candidate_sha:
description: 'Full 40-hex candidate commit SHA (must equal github.sha and be an ancestor of origin/master)'
required: true
baseline_sha:
description: 'Full 40-hex baseline commit SHA (must be an ancestor of origin/master)'
required: true
label:
description: 'Candidate label, e.g. 0.5.0-tigon32.1.rc.1'
required: true
rollback_target:
description: 'What the drill rolls back to'
required: true
type: choice
options:
- bootstrap-reference
- qualified-release
pairs:
description: 'Number of alternating baseline/candidate pairs per engine for measure (minimum 20)'
required: false
default: '20'

permissions:
contents: read

concurrency:
group: release-candidate
cancel-in-progress: false

jobs:
reference:
runs-on: ubuntu-24.04
timeout-minutes: 150
env:
CANDIDATE_SHA: ${{ inputs.candidate_sha }}
BASELINE_SHA: ${{ inputs.baseline_sha }}
CANDIDATE_LABEL: ${{ inputs.label }}
ROLLBACK_TARGET: ${{ inputs.rollback_target }}
MEASURE_PAIRS: ${{ inputs.pairs }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Require this run to target the candidate SHA
run: |
set -eu
if [ "$GITHUB_SHA" != "$CANDIDATE_SHA" ]; then
echo "github.sha ($GITHUB_SHA) does not equal candidate_sha ($CANDIDATE_SHA)" >&2
exit 1
fi
- name: Require both SHAs to be ancestors of origin/master
run: |
set -eu
git fetch origin master --quiet
git merge-base --is-ancestor "$CANDIDATE_SHA" origin/master
git merge-base --is-ancestor "$BASELINE_SHA" origin/master
- name: Check immutable GitHub Action references
run: node scripts/check-actions.mjs
- name: Install stable Rust and WASM target
run: |
rustup toolchain install stable --profile minimal
rustup default stable
rustup target add wasm32-unknown-unknown
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24'
cache: npm
- name: Install locked JavaScript tools
run: npm ci --ignore-scripts --no-audit --no-fund
- name: Install pinned Playwright browser engines and host dependencies
run: npx playwright install --with-deps chromium firefox webkit
- name: Create working directories under RUNNER_TEMP
run: |
set -eu
mkdir -p "$RUNNER_TEMP/release-candidate/baseline" \
"$RUNNER_TEMP/release-candidate/candidate" \
"$RUNNER_TEMP/release-candidate/candidate-repeat" \
"$RUNNER_TEMP/release-candidate/drill" \
"$RUNNER_TEMP/release-candidate/measure"
rmdir "$RUNNER_TEMP/release-candidate/baseline" \
"$RUNNER_TEMP/release-candidate/candidate" \
"$RUNNER_TEMP/release-candidate/candidate-repeat"
- name: Prepare the baseline package
run: |
node scripts/release-candidate.mjs prepare \
--sha "$BASELINE_SHA" --role baseline --reference "$ROLLBACK_TARGET" \
--repo "$GITHUB_WORKSPACE" \
--out "$RUNNER_TEMP/release-candidate/baseline"
- name: Prepare the candidate package
run: |
node scripts/release-candidate.mjs prepare \
--sha "$CANDIDATE_SHA" --role candidate --label "$CANDIDATE_LABEL" \
--repo "$GITHUB_WORKSPACE" \
--out "$RUNNER_TEMP/release-candidate/candidate"
- name: Prepare the candidate a second time, reusing the first Cargo.lock
run: |
node scripts/release-candidate.mjs prepare \
--sha "$CANDIDATE_SHA" --role candidate --label "$CANDIDATE_LABEL" \
--repo "$GITHUB_WORKSPACE" \
--out "$RUNNER_TEMP/release-candidate/candidate-repeat" \
--lockfile "$RUNNER_TEMP/release-candidate/candidate/consumer/Cargo.lock"
- name: Compare the two candidate preparations
run: |
mkdir -p "$RUNNER_TEMP/release-candidate"
node scripts/release-candidate.mjs compare \
--a "$RUNNER_TEMP/release-candidate/candidate" \
--b "$RUNNER_TEMP/release-candidate/candidate-repeat" \
> "$RUNNER_TEMP/release-candidate/compare.json"
node -e 'const r = require(process.env.RUNNER_TEMP + "/release-candidate/compare.json"); if (!r.ok) { console.error(r.reason); process.exit(1); }'
- name: Rollout and rollback drill, three engines
run: |
xvfb-run -a node scripts/release-browser.mjs drill \
--baseline "$RUNNER_TEMP/release-candidate/baseline" \
--candidate "$RUNNER_TEMP/release-candidate/candidate" \
--out "$RUNNER_TEMP/release-candidate/drill" \
--engines chromium,firefox,webkit --headful firefox,webkit
- name: Regression measurement, three engines
run: |
xvfb-run -a node scripts/release-browser.mjs measure \
--baseline "$RUNNER_TEMP/release-candidate/baseline" \
--candidate "$RUNNER_TEMP/release-candidate/candidate" \
--out "$RUNNER_TEMP/release-candidate/measure" \
--engines chromium,firefox,webkit --pairs "$MEASURE_PAIRS" \
--profile gha-ubuntu-24.04-x64-pw1.56.1 --headful firefox,webkit
- name: Upload release candidate artifacts
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-candidate-${{ inputs.label }}
path: |
${{ runner.temp }}/release-candidate/baseline
${{ runner.temp }}/release-candidate/candidate
${{ runner.temp }}/release-candidate/candidate-repeat
${{ runner.temp }}/release-candidate/compare.json
${{ runner.temp }}/release-candidate/drill
${{ runner.temp }}/release-candidate/measure
!${{ runner.temp }}/release-candidate/candidate/consumer/target
!${{ runner.temp }}/release-candidate/candidate-repeat/consumer/target
if-no-files-found: warn
retention-days: 30
63 changes: 63 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Changelog

This file records each fork-scoped browser release candidate for issue #19.
A candidate section is not a release. See `docs/adr/0010-browser-release-candidates.md`
and `docs/release-candidate-contract.md` for the candidate process and its gate.

## 0.5.0-tigon32.1.rc.1 (candidate, not a release)

Tag: tigon32-miniquad-v0.5.0-tigon32.1.rc.1
Fork of: not-fl3/miniquad at 39c928fb7e09fd44e45f37fe9a98503968bca412 (package 0.4.11)
Package: miniquad 0.4.11 (version not changed)

### Breaking
- Browser bridge protocol: `js/gl.js` moves from `const version = 2;` (upstream) to
`const version = 3;` in this fork. An upstream or hosted `gl.js` build does not
work with this fork's WASM output, and this fork's `gl.js` does not work with
an upstream WASM build. Pin `gl.js` and `app.wasm` together from the same
candidate package.

### Added
- `scripts/release-candidate.mjs`: candidate label grammar, tag formatting,
compatibility-core derivation, candidate package `prepare`/`verify`/`compare`,
`collect-ci`, and `gate` commands per `docs/release-candidate-contract.md`.
- `scripts/release-browser.mjs`: the rollout/rollback `drill` command and the
`measure` regression-guard command, including the ephemeral `127.0.0.1`
release server used by both.
- `.github/workflows/release-candidate.yml`: the manual, candidate-scoped
`Miniquad release candidate` reference workflow (`workflow_dispatch` only).
- `tests/release-candidate.test.mjs`: hermetic `node:test` unit coverage for
the label grammar, manifest canonicalization, leak scan, statistics, and
gate rules above.

### Fixed
- N/A (first candidate under this contract).

### Deprecated
- N/A in this candidate.
- Planned, not done: rename `Pipeline` to `PipelineId`, the same as `BufferId`,
`TextureId`, and `ShaderId` (issue #19). Add `PipelineId` and keep a
deprecated `Pipeline` alias first, or rename only in a breaking release.
Record the step in the change log section of that candidate.

### Upstream changes
- No Rust API changes relative to the `39c928f` merge base; `Cargo.toml`
keeps `name = "miniquad"` and `version = "0.4.11"`.
- See `docs/upstream-attribution.md` for the original project, author, and
licence notices this fork keeps.

### Known limits
- No merged, tagged candidate commit exists on `origin/master` yet, so the
full candidate-vs-baseline reference drill and the 20-pair regression
measurement have not run in `Miniquad release candidate` (manual CI) for
this label. The bootstrap baseline `f837a98d415262320a8c66ef9f8024d8f2faeab1`
remains `reference: "bootstrap-reference"`, not a qualified release.
- Native platforms, Safari on a physical iOS device, and Chrome on a physical
Android device are unqualified and not tested. See the manual compatibility
matrix in `docs/release.md`.
- Consumers pin one exact fork Git revision and copy `js/gl.js` from that
revision. No npm runtime package and no GitHub Release asset exist. See
"Consumer distribution" in `docs/release.md`.
- This candidate has not received owner approval. `review.ownerApproval` must
stay `false`. A `.release` publication needs a separate, explicit owner
decision; see `docs/release-candidate-contract.md` section 9.
Loading
Loading
0