ci: scope native acceptance and bind release candidate artifacts (#6378)
* ci: scope native acceptance and bind release candidate artifacts * ci: isolate Windows installers and use portable Git tree fixtures * test: preserve installer subprocess diagnostics on timeout
This commit is contained in:
1 parent
4dc695ca76
commit
67fc220c8a
15 files changed
+1222
-288
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
# CI execution boundaries
|
||||
|
||||
Code validation and release acceptance have different owners. `Test Suite` validates PRs and the merged `main` tree. `Verify Release Candidate` builds an explicit candidate and validates its exact installable bytes. Neither workflow publishes releases, signs manifests or advances `release-index`; that branch is a release catalogue, not a product source branch.
|
||||
|
||||
## Code validation
|
||||
|
||||
`scripts/ci_scope.py` owns the ordered path rules and explains each decision in the run summary. PR selection uses the merge-base diff; pushes use the complete before/after range, including all commits in the push. Renames consider both old and new paths. Missing revisions, failed or empty diffs, unknown paths and manual dispatch select the full validation set. Ordinary documentation changes still produce the stable `CI required` result without scheduling product jobs.
|
||||
|
||||
Python retains its Linux minimum/latest and Windows compatibility matrix. WebUI changes retain lint, types, unit coverage, build, browser regression and Docker checks. TUI functionality retains both platforms' checks, tests, terminal smoke, build and archive verification. Shared backend client contracts select the consuming clients as well. Docker continues checking installed assets, startup, dependencies and container privilege boundaries; frontend changes are not assumed irrelevant to the image.
|
||||
|
||||
Native packaging, installation and update lifecycle changes additionally select Linux and Windows native acceptance on PRs. Windows isolated update jobs and installer checks use the same high-risk selection. The installer matrix has its own bounded job, separate from process-identity checks; an 18-minute installer run must not consume the process job's timeout or hide its result. Pushes to `main` run the selected code checks but do not repeat those specialized installer/update journeys or full native acceptance. A manual `Test Suite` dispatch requests all checks. Scope changes must keep new shared contracts and lifecycle dependencies classified; directory names alone do not establish the dependency graph.
|
||||
|
||||
`CI required` checks the selected job results, including matrix and reusable-workflow results. Failure, cancellation, an unexpected skip or a missing selector output fails the gate. Only an intentional unselected skip is accepted. Administrators should require this stable check in branch protection/rulesets; defining the job does not enable repository protection or remove any existing required check.
|
||||
|
||||
## Candidate acceptance
|
||||
|
||||
The candidate producer builds five platform bundles and records the candidate commit and manifest SHA-256. It transfers only the Linux x64 and Windows x64 wheels and the manifest to parallel native consumers. Consumers download by immutable producer artifact IDs, including when only failed jobs are retried, and verify the build-output manifest hash, candidate commit, wheel size/hash and embedded commit before installing or executing the wheel. They never rebuild candidate packages. The same reusable native acceptance workflow also builds private test packages for high-risk PRs.
|
||||
|
||||
Each native consumer runs the clean public installer, installed startup/assets probes, and all nine packaged upgrade/recovery scenarios, including subsequent successful updates after restoration. Windows acceptance retains the default short-path policy. Scenarios remain serial within their private environment: sharing that installation across parallel scenarios would invalidate the test. These controlled version/fault fixtures do not replace real supported historical baselines, public-download acceptance, other native platforms, or interactive UI acceptance; see [the release checklist](releasing.md).
|
||||
|
||||
`Candidate required` requires both the producer and the complete native matrix. Only after success may an explicitly requested prepared source/installation handoff be promoted to `installable-candidate`. Temporary same-run wheel transfers expire after one day, even when no installable handoff was requested. Reports are retained for three days; an explicitly requested installable handoff expires after one day. Preserve accepted bytes and evidence before expiry. The final gate is not publication approval: the existing separate approval, public artifact verification and serialized catalogue advancement remain mandatory.
|
||||
|
||||
## Timing and evidence
|
||||
|
||||
Packaged acceptance writes `packaged-update-timings.json` incrementally, including failed phases and completed scenarios. It measures environment setup, initial dependencies, fixture generation, baseline installation, each preparation/worker/verification journey, cleanup and scenario totals. Scenario totals overlap their phases and must not be added to them. Completed checkpoints are diagnostic evidence, not an overall pass.
|
||||
|
||||
Upload only the explicit structured reports. Private acceptance logs, configuration, sessions, backups and live test environments can contain credentials and are not upload sets. Do not remove hash checks or durable production writes merely to reduce CI time. Compare wall time and raw runner-minutes separately, with the same scenario coverage and exact source/produced package identity; moving work out of daily CI does not prove that the specialized acceptance itself became faster.
|
||||
+2
-2
@@ -24,8 +24,8 @@ Packaging is maintainer-triggered, not scheduled or push-triggered. Record the r
|
||||
### Maintainer-triggered Preview procedure
|
||||
|
||||
1. Select an exact reviewed `main` commit with passing required CI; skip it if its source SHA matches the last accepted candidate. Record the next unreleased stable base and an unused increasing Preview sequence.
|
||||
2. Run **Verify Release Candidate** for that ref and base. It prepares a version-only candidate, builds the WebUI and five native TUI bundles, and verifies the package set without publication. Users receive built packages, not a checkout requiring Bun.
|
||||
3. Select `retain_installable` and preserve the handoff before expiry. Complete native and packaged old-to-new update/recovery acceptance against those exact bytes. Keep candidate SHA, manifest hash, coverage, known issues and source-offer approval together; CI reports alone are neither installable artifacts nor publication consent.
|
||||
2. Run **Verify Release Candidate** for that ref and base. It prepares a version-only candidate, builds the WebUI and five native TUI bundles once, and runs Linux x64 and Windows x64 clean-install and packaged update/recovery acceptance against the exact manifest-bound wheels without publication. Require the **Candidate required** check to pass; build-only reports are insufficient. Users receive built packages, not a checkout requiring Bun.
|
||||
3. Select `retain_installable` and preserve the accepted `installable-candidate` handoff before expiry. Temporary `candidate-native` inputs and `prepared-candidate` artifacts are not accepted handoffs. Complete the remaining native-platform and real historical-baseline acceptance against those exact bytes; the automated fault-injection fixtures do not establish compatibility with a previously published version. Keep candidate SHA, manifest hash, coverage, known issues and source-offer approval together; CI reports alone are neither installable artifacts nor publication consent.
|
||||
4. With separate approval, publish immutable `v<version>` at the **candidate** commit and a GitHub prerelease, never the latest stable release. Upload the complete verified set, manifest and notes; make the pinned installer source publicly reachable.
|
||||
5. Verify all public sizes/hashes and clean public install/update acceptance before advancing `preview` with a new catalogue generation. Validate against the latest catalogue, preserve `stable` and withdrawals, and serialize stable, Preview and withdrawal writes. A stale publisher must reread and revalidate.
|
||||
6. After partial upload, leave the feed unchanged and resume only from the original verified files. Lost or changed bytes require a new version and repeated acceptance. Withdraw unsafe candidates with a reason and offer a newer fix; never rewind the feed or restore user data.
|
||||
|
||||
Reference in new issue
Block a user