chore: check patches against stored APKs in CI and keep the store filled #126

Merged
midas merged 1 commit from review/79-apk-store into dev 2026-10-18 07:44:05 +02:00
Owner

Fixes #79 (last open item of #105).

  • Tested APKs live in the generic package registry of the private org midas-apks (anonymous access: 401). scripts/apk-store.sh exists|fetch|upload: upload verifies the signers first (check-patches.sh -V -x) and stores only the repacked original APKs; a 409 with identical content counts as success.
  • ci.yml gets a patch-check job (needs build, reuses its .mpp): on PRs de Volkskrant, Tubantia and Videoland (all stored tested versions, phone + TV), on pushes to dev/main every package. Runs only when patch-relevant files changed; exit 1 = a patch failed, exit 2 = no verdict; a selected package with nothing stored fails; without APK_STORE_TOKEN it warns and skips.
  • app-update-check: a new version that applies is uploaded to the store before its bump PR is opened (APK_STORE_WRITE_TOKEN; dry runs never upload); dispatch input seed_store fills the store for packages whose APKPure version equals the newest tested version.
  • AGENTS.md (CI section "APK store and patch check", Definition of done) and the update-app-version skill updated, incl. the manual upload of the Videoland TV build.

Verified locally: bash -n; real server with a fake token gives clean 401s; a zipped Gelderlander 9.21.1 split set verifies; mock store end-to-end (upload, re-upload, patch-check 15 Applied, seed dry run); buildAndroid + unit tests. Not verified: the workflow on Forgejo with real secrets (needs the owner's tokens).

🤖 Generated with Claude Code

Fixes #79 (last open item of #105). - Tested APKs live in the generic package registry of the private org `midas-apks` (anonymous access: 401). `scripts/apk-store.sh exists|fetch|upload`: upload verifies the signers first (`check-patches.sh -V -x`) and stores only the repacked original APKs; a 409 with identical content counts as success. - `ci.yml` gets a `patch-check` job (needs `build`, reuses its .mpp): on PRs de Volkskrant, Tubantia and Videoland (all stored tested versions, phone + TV), on pushes to dev/main every package. Runs only when patch-relevant files changed; exit 1 = a patch failed, exit 2 = no verdict; a selected package with nothing stored fails; without `APK_STORE_TOKEN` it warns and skips. - `app-update-check`: a new version that applies is uploaded to the store before its bump PR is opened (`APK_STORE_WRITE_TOKEN`; dry runs never upload); dispatch input `seed_store` fills the store for packages whose APKPure version equals the newest tested version. - AGENTS.md (CI section "APK store and patch check", Definition of done) and the update-app-version skill updated, incl. the manual upload of the Videoland TV build. Verified locally: `bash -n`; real server with a fake token gives clean 401s; a zipped Gelderlander 9.21.1 split set verifies; mock store end-to-end (upload, re-upload, patch-check 15 Applied, seed dry run); buildAndroid + unit tests. Not verified: the workflow on Forgejo with real secrets (needs the owner's tokens). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chore: check patches against stored APKs in CI and keep the store filled
All checks were successful
CI / Build (pull_request) Successful in 1m31s
CI / Patch check (pull_request) Successful in 27s
7c02b4ad1e
CI gets a Patch check job that runs check-patches.sh on the signed originals of tested app
versions, kept in the private generic package registry of the organisation midas-apks
(scripts/apk-store.sh). PRs check de Volkskrant, Tubantia and Videoland (all stored tested
versions: phone and TV); pushes check every package. app-update-check uploads the verified XAPK
of a new version before it opens the bump PR, and has a seed_store dispatch input to fill the
store. check-patches.sh gets -V (verify only) and -x (write the verified APKs as a clean zip).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No description provided.