ci: skip the desktop build on documentation-only changes - #11
ashutoshpw wants to merge 1 commit into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
04e4be3 to
0ec7827
Compare
Summary
Skips the desktop build's heavy steps on documentation-only changes, inside the existing
Checkjob.A new API-only detection step runs at the top of
Checkand computeschangedfrom the PR/compare file list. Only documentation and repository-metadata paths (docs/**,*.md,.github/ISSUE_TEMPLATE/**,.github/pr-assets/**,LICENSE,.gitignore) skip the desktop work; anything else — source, config, lockfile, workflow, script, native, or an empty/unresolvable list — runs it. Detection is fail-open.Guarded steps (all otherwise byte-identical):
setup-apt-mirrors,Install browser secret helper build libraries,Build desktop pipeline,Verify preload bundle output. Guard:success() && steps.detect.outputs.changed != 'false'; detection pre-writeschanged=trueand usescontinue-on-error, so a hard detection failure still runs the build.Why reworked (v1 → v2)
v1 split the desktop build into its own job. Same-repo measurements killed that: on this fork
Testis ~424s andCheck~267s (main@99908f59f, run35655900272), soCheckis not the bottleneck, and the extra job added a runner, checkout, and full install for zero merge-wait benefit. v2 keeps the useful part — skipping heavy work when nothing relevant changed — at zero extra cost on code PRs.Evidence
Check267s (apt 13s + desktop build 57s at the tail),Test424s.package.json, lockfile, script, native, empty list → run.Stack
#9 (ci: batch short jobs) ← this PR: ci: skip the desktop build on documentation-only changes
Merge in order; after #9 merges, this PR is retargeted to
main.Manual Testing Guide
gh run view <id> --repo ashutoshpw/t2code --json jobs— confirmCheckstill runs checkout, PR-assets rejection, Setup Vite+, Electron setup, knip,vp check, typecheck, apt setup, browser-secret libs, desktop build, and preload verification.docs/anything.md): confirmDetect desktop build changeslogsOnly documentation or repository metadata changed.and the four guarded steps are skipped, while the job stays green.package.json,pnpm-lock.yaml,.github/workflows/ci.yml,scripts/*.ts,native/**) makes all four steps run.changed=trueis written and the build runs rather than being skipped.