FFFF Validate explicit release artifact suffixes in a hosted rehearsal · Issue #46 · project-minigraf/minigraf-java · GitHub
[go: up one dir, main page]

Skip to content

Validate explicit release artifact suffixes in a hosted rehearsal #46

Done

Description

@adityamukho

Purpose

Track the hosted release-isolation validation deferred from #45. The CI fix and its ordinary partial-rerun acceptance are accepted in the follow-up review. Explicit release suffixes currently have passing fixture/workflow-contract coverage; this issue adds evidence from the existing non-publishing rehearsal route.

Execution route

Use .github/workflows/release.yml via workflow_dispatch with rehearsal: true, on a pinned workflow revision containing #45. Record the requested version, and source_alias / exact core candidate when required by the selected source line. The workflow already prepares a source bundle, calls CI with an explicit preparation suffix, and records rehearsal evidence.

Acceptance

  • Record the workflow SHA, binding source SHA, prepared SHA, core/dependency identity, run ID and preparation attempt A.
  • Complete a fresh rehearsal and capture the seven native artifact IDs/digests, prepared-A, dist-jar-A, native/JAR provenance and consumer receipts. Explicit-suffix native archives must remain binary-only.
  • Re-run one successful consumer job in the same run after preparation has completed. Record the later workflow attempt B, with B > A. Confirm preparation did not execute again, the retained native and JAR IDs/digests are unchanged, and download/receipt selectors still use A rather than B or the ordinary ci fallback. This covers the preparation-attempt-4 / dependent-workflow-attempt-5 relationship without depending on those literal attempt numbers.
  • Verify the retried consumer resolves the selected Maven version and its receipt matches the retained distribution hashes and prepared source. Require the dependent rehearsal summary/evidence validation to pass.
  • Confirm explicit-suffix native, provenance and distribution package uploads retain their existing no-overwrite policy. If an immutable-upload conflict occurs, preserve the original artifacts and follow the documented pre-tag recovery route; record the conflict and recovery evidence.
  • Confirm the production tag and publish paths stayed skipped, and retain the run/job links, inputs, artifact inventory, source/prepared SHAs and checksums with the final result.

Scope

This tracks build/test rehearsal and evidence collection. Production publication and changes to release immutability are separate work. The existing release.yml route and its preparation-attempt suffix must remain authoritative.

Related: #39, #45. Broader prerelease readiness is tracked in #30.

Hosted validation completed — 4 December 2026

The existing non-publishing release route passed both the fresh-run and consumer-only partial-rerun acceptance in run 47324706987, using the merged #45 workflow. Preparation attempt A = 1 was retained when the dependent workflow advanced to B = 2. No code change was needed for this validation.

Inputs and identities

Field Verified value
Workflow .github/workflows/release.yml, workflow_dispatch, ref main
Inputs version=v3.0.0-alpha, rehearsal=true, empty source_alias
Workflow and binding-source SHA 45dd588e88190449ddda116251c556129efe31db
Prepared SHA 34889d457da91cbd09cbed6f185578cd3a7fa686
Prepared parent Exactly the binding-source SHA above
Core candidate 38b10383d6c94c1ae39091ef34e75f68d3d8c76f
Cargo.lock SHA-256 7e412d380e7ba184ceec436043b5a25ad95b1502a8294ef3158dc39cbf7d598e
Requested / selected Maven version 3.0.0-alpha

The candidate's crate metadata still declares 2.0.5; this rehearsal uses the exact Git-candidate path, whose provenance is authenticated by the full revision. It does not use the registry-version release path.

Fresh attempt 1

  • 25 successful jobs, 7 expected skipped records, including all six consumer legs.
  • Captured and SHA-256-verified all 24 original artifacts before the targeted retry.
  • Verified the preparation ZIP and bundle, prepared commit parent, exact core pin, lock digest and selected version.
  • All seven native archives contain exactly one binary and no ci-native.json. ELF, PE and both Mach-O universal2 slices match their target identities; native-job logs establish the GNU/musl/Windows/Darwin build commands.
  • The assembled JAR embeds byte-for-byte matches of all seven captured natives. POM and Gradle metadata specify 3.0.0-alpha. The hosted assembly/rebuild comparison passed.
  • All six receipts and eight provenance records match the prepared source and distribution. The strict evidence seal step actually executed and passed before rehearsal-1 was uploaded.

Consumer-only retry, workflow attempt 2

Only these jobs actually executed again:

Job Job ID Execution UTC
Linux x86-64 consumer 145023336596 11:43:45–11:44:58
Record rehearsal evidence 145023971695 11:45:00–11:45:10

All 23 other successful jobs retained identical original start/end timestamps and complete step histories, including preparation, seven native builds and JAR assembly. GitHub allocated new IDs to retained jobs; IDs alone were not treated as evidence of execution.

All 17 immutable preparation/native/provenance/distribution artifacts retained their original IDs, archive digests, sizes and metadata. Across the whole inventory, 23 artifacts remained unchanged. The selected receipt was replaced under the existing overwrite: true policy, and one new summary was added:

  • consumer-1-linux-x86_64: ID 15837333462 → 15837787700; the receipt's JSON bytes are identical, SHA-256 e4e891eae6c247b9bfd2c96343d74704844517e76fcc08928e8faa3979075244.
  • rehearsal-1 remains ID 15837249309; new rehearsal-2 is ID 15837971105.
  • The consumer and summary logs show downloads of original prepared-1 ID 15836782669 and dist-jar-1 ID 15836118547, with matching expected and downloaded digests. The consumer still uses artifact-suffix: 1; summary selectors remain consumer-1-* and provenance-1-*.
  • No attempt-2 or ci preparation/native/provenance/distribution package names appeared.
  • The retried consumer selected 3.0.0-alpha, passed, and recorded the same prepared SHA and all five distribution hashes.
  • The downstream summary's strict seal step executed and passed again. Its copied prepared plan and rehearsal.json retain origin attempt 1. Only release.json changes its origin.attempt to 2, identifying the later evidence-sealing attempt; this does not change artifact selectors.

Retained native inventory

Target Artifact ID Archive SHA-256
aarch64-pc-windows-msvc 15835333249 b1f52a60944e7bc7839a5cd95cc9ae87c03a101f4be0959c1b7919d76d968ca4
aarch64-unknown-linux-gnu 15836338316 9df90edf850db49632eacb4b8fbab01748f0108c6c922513cf668b2823dee3df
aarch64-unknown-linux-musl 15836353227 7a972beb19abcd5643e1d7ce13f3d7f2ec411a047078e94be8eeb634cfcaa236
universal2 15837232692 7092746266ce4e28a88ee58bfb0afd8dfda20fea266e595a0c4c0bafa06beead
x86_64-pc-windows-msvc 15836254054 1499c0bfdcddc1239eab15515561bc3dfd460f979e3c8f9b89f7332d4553d1b2
x86_64-unknown-linux-gnu 15836497161 85567ee7d86802b83dc7ca573f3c93a0a71765f65a3bd319b27aa6610ea846df
x86_64-unknown-linux-musl 15835632425 b715f8f33d670d1159e58e8500a3b8c2442a48e4d8ad60553565fbf7ec0d083a

Preparation, distribution and evidence archives

Artifact ID Archive SHA-256
prepared-1 15836782669 5c1155694be2db7d16294c67d3f362fe9c81a0e20765a47557cf45bb6aab4c82
dist-jar-1 15836118547 feefb9a27f287bac387cd25c88a5b053dd43adec3bbe0ccee80cb7d137f4df97
rehearsal-1 15837249309 014ac9326bc26fd5c0fcb4b4ec9d453d14320d94c32e9335f31e8b4b235d1077
rehearsal-2 15837971105 ba53cf1b2826c3e8f14363958ecb35dbd80a06f0b6f63482347147b2b711f257

Release isolation

All 14 native/provenance uploads and both JAR/provenance uploads logged overwrite: false; the preparation and summary uploads also retain no-overwrite behavior. No immutable-upload conflict occurred and no immutable artifact deletion or pre-tag recovery was needed.

The production seal, tag, Maven Central deployment, published-package verification and production-failure reporting jobs remained skipped with no steps executed. Both rehearsal summaries record empty pushed_refs and deleted_refs. Main still points to 45dd588e88190449ddda116251c556129efe31db; the requested public tag v3.0.0-alpha remains absent.

The evidence retains original and replacement receipt archives, complete artifact inventories, source/prepared identities, distribution hashes, native target checks and relevant job logs. rehearsal-1 and rehearsal-2 each contain the prepared source bundle, distribution, all six consumer receipts and all eight provenance records.

A separate pre-existing README stamping defect discovered during preparation is tracked in #47; it does not affect suffix isolation or the selected Maven version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0