Skip to content

ci: run the integration files one at a time again - #394

Merged
devswha merged 2 commits into
mainfrom
ci/serial-integration
Oct 3, 2026
Merged

devswha merged 2 commits into
mainfrom
ci/serial-integration

Conversation

@devswha

@devswha devswha commented Oct 3, 2026

Copy link
Copy Markdown
Owner

What

The Integration and browser job sets HERDR_TEST_SHARDS: 1, so the integration files run one by one again. The worker code from #374 stays, and the browser lane still runs beside the integration lane.

Why

Since #374 ran the integration files four at a time beside the browser lane, CI fails by chance more often than not:

runs that failed or needed a rerun
before #374 2 of 17
after #374 8 of 14

A different old test failed each time, none of them part of the PR under test:

  • server/submit.contract.test.ts: the 50ms submitDeadlineMs case timed out its first message; the Enter gap read 119 against >= 120.
  • server/updater.test.ts: the 12s wait for a managed update ran out (two cases).
  • server/api.contract.test.ts: the resize case hit the 15s timeout.
  • scripts/chat-size-regression.ts:74 (browser lane): the chat lens sent two resize frames. This one may be a race in the app, not in the test; not looked into here.

Locally on current main, HERDR_TEST_SHARDS=1 bun run test:integration passed 197/197 (one run, 158s), while nine parallel runs each failed somewhere (4 workers on 4 cores, 2 workers on 4 cores, 4 workers on 32 cores). The local machine was shared, so the parallel numbers are noisy.

Cost

The integration lane goes from about 30s back to about 160s. The job as a whole is bounded by that lane again instead of the browser lane (about 130s).

Checking it

This PR's CI is run several times in a row; the results are in a comment below.

Next

Make the timing-bound tests hold under load, look into the chat-lens resize, then raise the worker count again.

🤖 Generated with Claude Code

Since #374 ran them four at a time beside the browser lane, 8 of 14 CI
runs needed a rerun (2 of 17 before). A different old timing assertion
failed each time: the 50ms submit deadline and the 120ms Enter gap in
submit.contract, the 12s managed update wait in updater.test, the 15s
resize in api.contract. None belonged to the PR under test.

The workers stay in scripts/ci-tests.ts; CI sets HERDR_TEST_SHARDS=1
until those tests hold under load. The browser lane still runs beside
the integration lane.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f2556af8-8313-48b5-bf3d-92d567cae988
📥 Commits

Reviewing files that changed from the base of the PR and between 0cf322c and ac5cc9e.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 66fe4057-68a3-428c-9eec-369a57c4f47e
📥 Commits

Reviewing files that changed from the base of the PR and between 53cbe93 and 0cf322c.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • docs/development.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.


📝 Summary

Summary by CodeRabbit

  • Tests
    • Integration checks now run sequentially in CI, while the integration and browser test lanes continue to run concurrently.
  • Documentation
    • Development guidance now reflects the updated CI test execution order.

Walkthrough

The integration CI job now runs tests with one shard. The CI documentation describes sequential integration tests and notes that the integration and browser lanes still run concurrently.

Changes

Integration CI

Layer / File(s) Summary
Set and document integration test sharding
.github/workflows/ci.yml, docs/development.md
The integration job sets HERDR_TEST_SHARDS to 1 and comments on timing-bound contract test failures under four-way concurrency. The documentation states that integration files run one by one and that the integration and browser lanes still run concurrently.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to 0cf32

Integration files run one at a time while the browser lane remains concurrent. No actionable issue identified here prevents merging.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: CI runs integration files one at a time again.
Description check ✅ Passed The description explains the change, rationale, impact, and next steps. It gives a validation plan but does not include the CI results in the description; overall, it is mostly complete.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@devswha

devswha commented Oct 3, 2026

Copy link
Copy Markdown
Owner Author

CI on 0cf322c, run 37127454768, five attempts in a row:

attempt Integration and browser time
1 pass 140s
2 pass 149s
3 fail 146s
4 pass 148s
5 cancelled (the branch was updated with main)

So 3 of 4. The job takes about as long as before: the integration lane is about 120s beside the browser lane.

The one failure is server/api.contract.test.ts "applies a resize that arrives while a covered attach is still creating the pty", added in #363. The geometry frame with 91 columns and input-ready both arrived; the shell then never printed size=27 91 within 15s. That is not one of the old timing assertions: either the typed line was lost, or the shell really saw another size, which would be the race the test is about. It needs looking into on its own.

None of the old timing tests (submit.contract, updater.test) failed in these four attempts.

@devswha
devswha merged commit d05f0bf into main Oct 3, 2026
4 checks passed
@devswha
devswha deleted the ci/serial-integration branch October 3, 2026 14:03
devswha added a commit that referenced this pull request Oct 3, 2026
Bumps package.json and herdr-plugin.toml to 0.3.47, moves the Unreleased
notes under [0.3.47] - 2026-10-03 (the two Fixed lists folded into one),
and adds the compare link. Raises the remote PC bundle to 14 (new
routes: `/api/tab/rename`, `/api/tab/close`): push the `remote-v14` tag
and let the bundle workflow publish before running release.yml.

Carries #374, #388, #389, #390, #391, #392, #394, #395.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5.1 <[email protected]>
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