chore: harden CI, releases and the app update check #122
No reviewers
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches!122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "review/ci-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #105, fixes #80, #81, #82 and #102. All
chore:; the Forgejo-side behaviour is proven only by running it, so please look at this PR's own CI run first.check-patches.shexits 0 ok / 1 patch failed (Failed:/Not applied:lines) / 2 no verdict (OOM, crash, timeout, list-patches failure); Morphe and APKEditor calls undertimeout; stderr visible.app-update-check.shopens "update check failed" on 2, validates list-versions output, fails red on errors.concurrency(Forgejo ≥14 supports it: release grouprelease, no cancel; ci per ref, cancel);forgejo-release.cjscheckspermissions.pushin verifyConditions, timeouts on all requests, GET retries,download_urlfromnextRelease.gitTag; recovery of a tag without release/.mpp documented in the release skill.gradle/verification-metadata.xml(sha256; Linux aapt2 added by hand); actions pinned to SHAs; app-update-check split into a token-lesscheckjob (download, verify signers before unpacking, check-patches) and areportjob with the token; composite action.forgejo/actions/gpr-credentials..gitattributes* text=auto+ LF for CI files (renormalize was a no-op); RenovatemanagerFilePatterns; sharedscripts/tool-versions.envread by setup-tools.ps1/.sh and tracked by Renovate; setup-tools.sh reports GitHub 403/429 instead of "not found".smalistays in the catalog (the Morphe plugin reads it). Remaining deprecationConfiguration.setVisiblecomes from the Morphe Gradle plugin.Verified locally: buildAndroid + unit tests (also with a fresh Gradle home), tampered checksum fails, check-patches exit codes 0/1/2 incl. OOM/timeout simulations, report-mode dry runs,
bash -n. Not verified: workflows on Forgejo,node --checkof the .cjs, Renovate handling of the pinned forms.🤖 Generated with Claude Code
Merged into dev as
54726d1(merged locally together with other review PRs, so Forgejo didn't mark it merged).Pull request closed