Skip to content

ci: GitHub release downloads fall back to the API asset route - #534

Merged
SSFSKIM merged 3 commits into
masterfrom
release-api-fallback
Nov 8, 2026
Merged

SSFSKIM merged 3 commits into
masterfrom
release-api-fallback

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Since about 08:45Z on 2026-11-08, github.com's /releases/download/ web route has answered 504 for several assets: Electron 44.4.5 on linux-x64 and darwin-arm64, gitleaks 8.30.1, Meslo and displayplacer. Every gate has been red on it. The API's asset route (api.github.com/repos/<o>/<r>/releases/assets/<id>, Accept: application/octet-stream) serves the same bytes: same publisher, same release, and every caller keeps its checksum check, so this is not a mirror. The architect found the route (1321).

  • .github/scripts/release-fetch.sh <owner/repo> <tag> <asset> <dest>: the web route with bounded retries, then the API route. It uses GH_TOKEN, else GITHUB_TOKEN, else anonymous. The token goes to curl on stdin (-H @-), never on argv. The destination is written atomically.
  • gitleaks (maws-app-scan.sh): uses the helper, keeping MAWS_APP_GITLEAKS_URL and the sha256 checks. Its tests share one per-user cache keyed by the pinned sha256, so a warm run touches no network.
  • Electron (scripts/electron-prefetch.mjs, from the setup action before pnpm install and from postinstall): fetches into @electron/get v5's own cache path (its parent-URL SHA-256 key), only on a cache miss and only when Electron isn't already installed. Electron's installer still verifies it against checksums.json.
  • displayplacer, Meslo (.github/ci-setup.sh) and packaging's Electron (mawsd-pack.mjs): use the helper with their checks kept. The steps that need it get github.token.

Review: an independent review (reviewer-medium) found two defects, both fixed with tests that reproduce them (76e872e): the token on curl's argv, and an already-installed Electron failing offline. Then one lint fix (b02d65d).

Gate 42472652812: GREEN, during the outage, covering static (including the gitleaks scan tests), unit 1/4–4/4 and e2e:widgets on a hosted Mac. Focused tests 48/48 locally, plus offline proofs: gitleaks scanned from an API-fetched archive; Electron's real install.js took a cache hit.

Open branches (#527, #530, M4b) need to merge master after this lands.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

Prefetch Electron into its checksum-verified installer cache; keep caller pins for gitleaks, displayplacer, Meslo and packaging. Reuse the real scanner archive across integration runs.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Feed API headers to curl through stdin. Match Electron installer presence checks before prefetching, for both setup and postinstall; cover installed, stale and overridden distributions.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
…e repo's other scripts do

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T11:01:51.156047Z b02d65d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 5fc234d into master Nov 8, 2026
@SSFSKIM
SSFSKIM deleted the release-api-fallback branch November 8, 2026 11:03
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
…lease-download fallback (#534)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
…kip-electron-binary

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
), #535, #536 and #524's channel reach

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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