Repository navigation
Description
Reduce CI wall-clock time by removing proven duplicate work and runner queue contention after #2466. Open an ordinary new PR against current main; do not merge/deploy or change branch protection, approvals, credentials, or rootless isolation.
Measured baseline: PR #2469 head 0d08e4d, full-suite run https://github.com/integry/propr/actions/runs/35841864469 took 15m39s. Four rootless workers, each capped at 2 CPUs/8GiB, serve all eligible Linux checks. Shards themselves took 406/427/400/391 seconds; starts were delayed 133/417/527/134 seconds. Build/lint run 35841864435 occupied one worker for 585 seconds (notification suite 119s, PWA/browser 132s, Run Checks 113s). Other jobs compete: separate Node22/24 CLI Agent Skill and init JSON jobs install/build overlapping dependencies; Node24 install alone cost 88–90s. Docs took146s. Desktop run35841864440 took13m51s, mainly macOS x64 validation684s. Desktop already has path filters including propr-ui; #2469 genuinely changes shared renderer code, so simply excluding UI changes is not sound.
Implement a focused second optimization, using evidence:
- Audit exact duplicate test execution across pr-build-check.yml, pr-test-on-label.yml and package scripts. Focused notification, visual-preview, fast-unit, hosted-tunnel and MCP suites may overlap full discovery. Build an explicit equivalence/coverage mapping of command, test files, runtime, env and browser/native obligations before removing duplicate CI invocation. Preserve unique browser, packaging, platform and special-environment assertions. Keep developer-facing focused scripts. Deduplicate only where an enforced full-suite gate covers the same assertions/environment. Keep existing required check names and fail-closed results: if a named check becomes an aggregate, it must fail on missing/failed/cancelled validation; do not turn it into an unconditional green placeholder or unsafe cross-workflow race. If cross-workflow required-check dependencies make removal unsafe, restructure the execution/gates coherently or leave that part unchanged and explain.
- Consolidate Linux CLI Agent Skill and init-JSON execution per Node version to reuse one clean install and dependency build, retaining both Node22/24 behavior and native glibc/Darwin/Windows proofs. Inspect actual branch protection and preserve required status compatibility. Prefer fewer actual executor jobs over adding empty scaffolding. Preserve failure diagnostics for each constituent command and fail closed if any fails.
- Eliminate redundant package builds/installations within a job when outputs are already valid at the same SHA/runtime. Keep native ABI/platform distinctions. Any cache/artifact optimization must be immutable/SHA/toolchain keyed, must not execute trusted jobs from untrusted shared output, and must not reuse persistent node_modules/workspaces across PR trust boundaries. Preserve rootless preflight, isolated HOME/TMPDIR/Redis, always-run cleanup, secretless PR execution and hosted fallback.
- Inspect desktop macOS x64's repeated packaging/typecheck/build steps for a bounded, demonstrably safe reuse optimization without removing native architecture/install/deep-link/relaunch/removal, signing/release, visual or accessibility acceptance. Do not broaden this into release redesign. If no simple safe change exists, leave desktop behavior unchanged and report its remaining latency floor.
- Preserve complete deterministic four-shard coverage verification and sequential per-shard Redis isolation. Don't add shards/workers or raise timeouts to manufacture a speedup. Preserve superseded-run cancellation and gather independent shard results. Keep default/unsharded/nightly behavior intact.
Server setup is managed separately: four existing rootless workers remain 2CPU/8GiB, original nightly runner separate, production Docker untouched. No host changes from this implementation task. Server filesystem trimming is being handled by the operator.
Validation: inspect current workflows/tests, add meaningful coverage for changed routing/coverage/gates and CLI combined failure behavior, run actionlint/ShellCheck and relevant tests. Execute real resulting PR CI on the existing rootless pool. Report exact head, all required checks, full manifest coverage, job durations AND queue time against baseline; distinguish measured gains from projections. Do not claim 8-minute total CI while desktop remains a ~14-minute gate. Optimize without weakening existing merge confidence. PR description should clearly state retained coverage, removed duplication and any remaining bottleneck.
Activity
propr-dev commentedon Sep 23, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-52470/claude-opus-5-reduce-ci-queueing-and-du-20260923-0944-l91mainissue-2470-20260923-0944-claude-opus-5-l91🔍 Track Task Execution
feat(ai): All three points are implemented and verified against a ren…