Skip to content

fix: verify uploaded release updater assets - #492

Merged
khaira777 merged 1 commit into
mainfrom
fm/flocafe-465-release-verifier
Aug 23, 2026
Merged

khaira777 merged 1 commit into
mainfrom
fm/flocafe-465-release-verifier

Conversation

@khaira777

@khaira777 khaira777 commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Implement FloCafe issue #465 under epic #463 by enforcing release verification for every shipped Windows, macOS, and Linux self-updating target. Verification must use the actual uploaded GitHub draft release, fail on missing or malformed latest*.yml manifests, unavailable referenced assets, or SHA-512 mismatches, while preserving the draft-until-verified flow from PR #488.

What changed

  • Parse and validate updater manifests as YAML, including platform mappings, checksums, and release asset inventory.
  • Download manifests and referenced assets from the uploaded draft release, require HTTP 200, and recompute SHA-512 values.
  • Add Linux architecture manifest gates and deterministic no-network success, malformed, missing-manifest, unavailable-URL, and bad-hash simulations.
  • Document the manifest and post-upload verification contract.

Microsoft Store/Mac App Store publishing automation and Windows direct-download code signing are unchanged and not part of this change.

Testing

  • npm run test:release-config
  • npm run lint
  • git diff --check
  • No-network executable-interface simulations cover Windows, macOS x64/arm64, Linux x64/arm64, plus failure paths.

Fixes #465
Refs #463

@greptile-apps

greptile-apps Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR strengthens draft-release verification so updater manifests and their referenced uploaded artifacts are validated before publication.

  • Parses updater manifests as YAML and enforces their structure, platform mapping, asset availability, and SHA-512 checksums.
  • Adds Linux pre-upload inventory checks and installs the verifier’s locked dependencies in the verification job.
  • Expands deterministic tests and release documentation for successful and failed verification paths.

Confidence Score: 5/5

The PR appears safe to merge, with no concrete blocking or non-blocking defects identified in the changed release-verification path.

The workflow installs the locked parser dependency, validates locally produced Linux assets before upload, and verifies actual draft-release manifests and artifact bytes using checks consistent with the configured electron-builder outputs.

Important Files Changed

Filename Overview
scripts/verify-release-assets.cjs Adds strict YAML parsing, uploaded-asset availability checks, checksum verification, and an injectable end-to-end verifier without an identified defect.
.github/workflows/release.yml Adds architecture-aware Linux pre-upload checks and installs locked verifier dependencies before post-upload validation.
tests/release-asset-verifier.test.cjs Adds deterministic uploaded-release simulations covering supported platforms and principal failure modes.
tests/release-config.test.ts Asserts that the new workflow verification and dependency-installation steps remain configured.
docs/release-process.md Documents the strengthened pre-upload and post-upload release verification contract.

Sequence Diagram

sequenceDiagram
    participant Platform as Platform release jobs
    participant Draft as GitHub draft release
    participant Verify as verify-release job
    participant Script as Asset verifier
    participant Publish as publish-release job
    Platform->>Platform: Check local manifests and installers
    Platform->>Draft: Upload release assets
    Verify->>Verify: Install locked dependencies
    Verify->>Draft: Fetch draft release metadata
    loop Required updater manifests
        Script->>Draft: Download manifest
        Script->>Script: Parse YAML and validate mapping
        loop Referenced artifacts
            Script->>Draft: Download uploaded artifact
            Script->>Script: Recompute and compare SHA-512
        end
    end
    alt Verification succeeds
        Verify->>Publish: Allow draft publication
    else Verification fails
        Verify--xPublish: Keep release unpublished
    end
Loading

Reviews (1): Last reviewed commit: "ci: verify uploaded updater manifests an..." | Re-trigger Greptile

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.

Release CI: fail loudly on missing/invalid updater manifests for all self-updating targets

1 participant