Consolidate Forgejo PR preflight checks #70
Loading…
Reference in a new issue
No description provided.
Delete branch "mcp/consolidate-pr-preflight"
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?
Goal
Make BookWave's manual Forgejo PR gate more efficient on the shared capacity-1 runner without increasing global runner concurrency or weakening validation.
Evidence before the change
Current
mainat investigation start:1790c1ad9ec280c3fe65a3eabb36a244b45fc49aRecent successful PR runs showed the same four serial prerequisite jobs on the same capacity-1 runner. UI run #173 is representative:
From the first prerequisite job starting to the fourth finishing, run #173 spent about 16.9s. Each job independently created a
node:22-bookwormcontainer and ran its own checkout.mainhas no required status-check contexts configured, so the old individual job names are not a branch-protection contract.None of the four prerequisite jobs receives signing material, repository secrets or privileged checkout credentials. There is no security or correctness benefit from putting those checks in separate clean containers.
Change
PR #<number> · Preflightjob;continue-on-erroron the validation steps and a final preflight verdict so one failed check does not hide other preflight diagnostics;classpath_changedas the preflight job output consumed byverifyDebug;PR #<number> · verifyDebugas the separate heavyweight Android job;No application code, dependencies, Gradle/AGP/Kotlin/JDK versions, Android SDK levels, signing behavior, release behavior or runner configuration changed.
Exact-head validation
Final PR head:
669e1a2d40d698211e177e1113ad552b76b9a76cBase
main:1790c1ad9ec280c3fe65a3eabb36a244b45fc49aForgejo UI run #175: PASS on that exact head.
Preflight:
verification_mode=rerunbecause this PR changes a Forgejo workflow;Heavy gate:
verifyDebug --rerun-taskspassed in 7m53s;The full workflow total is intentionally close to the recent classpath-change baseline because this CI-only PR correctly forces all Gradle tasks to execute. The deterministic improvement is the preflight phase and removal of three redundant job/container/checkout boundaries.
No further obvious duplicate work was removed from
verifyDebug: its checkout, trusted-cache restore, environment contract check, single Gradle gate and report/artifact uploads have distinct responsibilities. Memory/worker limits and verification coverage are unchanged.No merge requested; repository owner will review and merge manually.
PR #70 is ready for review.
Final exact-head evidence:
669e1a2d40d698211e177e1113ad552b76b9a76cagainst main1790c1ad9ec280c3fe65a3eabb36a244b45fc49a;verifyDebug --rerun-tasks: 7m53s, 1184/1184 tasks executed;No merge performed.