Skip to content

Upload verified combined bundles without rebuilding - #15

Merged
perNyfelt merged 5 commits into
mainfrom
feature/upload-existing-combined-bundle
Nov 15, 2026
Merged

perNyfelt merged 5 commits into
mainfrom
feature/upload-existing-combined-bundle

Conversation

@perNyfelt

@perNyfelt perNyfelt commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Allow a signed combined ZIP to be tested and reviewed before uploading those same bytes. releaseAll.useExistingBundle schedules the source guard instead of bundleAll and requires externally retained expectedBundleSha256 and expectedManifestSha256 values. Normal build-and-upload behavior remains the default.

Upload graphs validate digest presence and syntax before tasks execute, reject simultaneous bundling, and verify source state, both files and their receipt entries. The guard checks the reviewed manifest digest before source/selection diagnostics. Hashing and parsing use the same manifest bytes. Upload uses a private ZIP snapshot checked against the verified digest; the journal records that same digest. Snapshot creation/copy failures explain remediation and assure that no upload was attempted. Cleanup failures identify paths for manual removal.

Digest binding occurs only when releaseAll is in the resolved graph. Plain bundling, signing checks and guard runs ignore exported upload evidence; graph configuration logs this at info level without realizing releaseAll for the diagnostic. The regression cases explicitly require the guard to succeed on both initial and cached runs; the plain :core:check case was removed because it did not execute the guard. A code comment records the graph-time input-binding assumption for Gradle upgrades.

Resume remains status-only and ignores evidence settings. Reviewed manifest digests cover polling in the upload invocation; later resumes trust the journal's manifest copy. The README documents this trust boundary, persistent Gradle properties, writable snapshot directories and crash cleanup.

Validation: 101 tests passed with no skips across ModuleReleaseTest, CombinedReleaseDslTest, and CombinedReleaseTest, including configuration-cache-enabled TestKit fixtures. Coverage includes exact multipart bytes, source/manifest/receipt tampering, missing files, malformed/uppercase digests, mixed graphs, resume precedence, check/use mutations, snapshot failures/cleanup and shared checksum formatting. git diff --check passed. Windows timeout/locked-file cleanup was not exercised on Windows. No artifacts were published.

@perNyfelt perNyfelt changed the title Allow uploading a verified combined bundle without rebuilding Upload verified combined bundles without rebuilding Nov 15, 2026
@perNyfelt
perNyfelt merged commit cf1c7fd into main Nov 15, 2026
1 of 5 checks passed
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