Skip to content

test(ci): shorten required checks and tighten test design - #1296

Merged
nixuuu merged 1 commit into
devfrom
test/streamline-ci
Nov 26, 2026
Merged

nixuuu merged 1 commit into
devfrom
test/streamline-ci

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 26, 2026

Copy link
Copy Markdown
Member

Changes

  • Document when a new test earns its place, how to assert an independent result, and how to wait for observable events. Keep repeated stress runs and benchmarks out of required CI.
  • Remove three low-value or duplicated files and repeated cases, including 18 identical thread moves. Keep both attachment sizes and the move recovery cases.
  • Replace production-duration waits in linked routes, worktree checkout and proxy account tests with scoped clocks or barriers. Fix false positives in worker compatibility, oversized images, linked reads and Slack retry. Wait for the gateway/worker permission outcome despite redelivery.
  • Refresh shard weights from two complete green runs with the deleted files removed. Adjust the estimates for the shortened files using their previous durations and focused run evidence. Add a command to refresh from verified timing reports.
  • Start PR native source checks alongside builds. Send only the binaries for each smoke runner's target. Native PR jobs check the build from the same run, with a five-minute wait limit if it is still running. Install the workspaces needed by the native checks.

Baseline and verification

  • Compared with perf(web): reduce layout work when opening side threads #1294 Push CI, which took 8 min 16 s on the previous workflows. Its five binary smoke jobs each downloaded the same 669 MB bundle. The revised timings predict about 5 min 8 s of Bun execution on each shard. GitHub Actions will measure elapsed time, including setup and transfer.
  • Focused Bun 1.4.5 verification covered the edited integration suites on isolated PostgreSQL 18, including full move and worktree files, proxy and linked routes, plus the affected tests without a database. The large and small move variants passed in the same suite. Mutation checks caught the removed GIF size limit and a wrong Slack Retry-After deadline.
  • Worker-side test lint and formatting, gateway/integration/scripts typechecks where affected, actionlint, shellcheck and diff checks passed. Verified all 904 paths are assigned once and the report validator rejects duplicate entries and invalid durations. Scoped install ran the 52 matching source checks on macOS.
  • GitHub CI verifies Docker-backed PostgreSQL, the Windows and Intel macOS native paths, and the same-run artifact downloads. The release gate continues to require successful Push CI for the released commit.

@nixuuu
nixuuu enabled auto-merge (squash) November 26, 2026 08:09
@nixuuu
nixuuu merged commit ac0645d into dev Nov 26, 2026
20 checks passed
@nixuuu
nixuuu deleted the test/streamline-ci branch November 26, 2026 08:16
nixuuu added a commit that referenced this pull request Nov 26, 2026
## 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 #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
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