Skip to content

fix(github): fence stale pull request reads and shorten ci - #1298

Merged
nixuuu merged 3 commits into
devfrom
ci/balance-shorter-checks
Nov 26, 2026
Merged

nixuuu merged 3 commits into
devfrom
ci/balance-shorter-checks

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Run twelve duration-balanced Linux shards in full PR and Push CI. Verify that all twelve reports cover every discovered test file exactly once. Refresh weights from two complete test(ci): shorten required checks and tighten test design #1296 runs.

  • Skip dependency lifecycle scripts for Windows native test installation. The optional SSH CPU feature build took 104–106 seconds in two baseline jobs. The Electron test still downloads its pinned binary and the same native checks run.

  • Subscribe to the real linked-update overview stream in the integration fixture. Batch rejected diagnostic writes while checking the same limits and recovery.

  • Prevent a GitHub batch response obtained before permission invalidation from repopulating individual pull request summaries. Persist the last-known summary only while its matching cache row still exists. Serialize cache fills with account- and repository-level invalidation.

  • Make the proxy usage test share the initial refresh and open later read leases with the existing per-gateway clock. The test still requires exactly one vendor request for the initial read and cache hit.

Verification

  • The first twelve-shard run finished in 5m22s and exposed the GitHub race. Windows dependency installation took 41 seconds, down from 168 seconds in the baseline. Full PR and Push CI timings will be measured on green runs. The additional four Linux runners repeat setup and PostgreSQL startup.

  • The existing integration test now pauses the cached response, triggers permission denial over gRPC, resumes the batch and checks that neither the batch nor a delayed last-known write can restore the old titles. The original code reproduced the stale titles at that barrier.

  • Twenty-five linked-update and diagnostics cases passed on Bun 1.4.5 and isolated PostgreSQL 18. The shard verifier accepted the complete twelve-report set and rejected eight reports.

  • The final GitHub change passed 51 integration cases. The proxy change passed all 16 cases in its two adjacent suites.

Fixes: #752
Fixes: #749

Related: #1296

@nixuuu
nixuuu enabled auto-merge (squash) November 26, 2026 10:05
@nixuuu nixuuu changed the title ci: shorten full checks with twelve balanced shards fix(github): fence stale pull request reads and shorten ci Nov 26, 2026
@nixuuu
nixuuu force-pushed the ci/balance-shorter-checks branch from 9414c71 to 7a99a9f Compare November 26, 2026 10:28
@nixuuu
nixuuu merged commit 3370cdc into dev Nov 26, 2026
25 checks passed
@nixuuu
nixuuu deleted the ci/balance-shorter-checks branch November 26, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant