agentHost: harden integration test timeouts - #329099
Merged
Merged
Conversation
Use extended operation, shutdown, and watcher budgets on CI while preserving fast local timeouts. This prevents constrained workers from force-killing the test server and cascading one slowdown across later suites. (Written by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Hardens Agent Host integration tests against slow CI workers while retaining shorter local timeouts.
Changes:
- Adds CI-aware protocol and shutdown timeout budgets.
- Extends affected protocol and Copilot customization test waits.
- Preserves existing local macOS/Linux timeout behavior.
Show a summary per file
| File | Description |
|---|---|
serverIntegrationTestHelpers.ts |
Centralizes CI-aware operation, shutdown, and test timeouts. |
copilotCustomizations.integrationTest.ts |
Extends customization-suite CI budgets. |
turnExecution.integrationTest.ts |
Applies CI-aware turn test timeouts. |
sessionLifecycle.integrationTest.ts |
Applies CI-aware lifecycle test timeouts. |
sessionDiffs.integrationTest.ts |
Extends setup, test, and notification waits on CI. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 1
- Review effort level: Balanced
Keep default protocol waits short, scope extended waits to the operations that were slow in Azure, and give their Mocha tests enough outer budget for request-specific timeout errors to surface. (Written by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
roblourens
marked this pull request as ready for review
August 5, 2026 17:39
roblourens
enabled auto-merge (squash)
August 5, 2026 17:39
anthonykim1
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
The failed Linux worker was abnormally slow: its filesystem diagnostics took 4m14s, compared with 35s on a successful comparison worker. Fixed 5–10 second waits caused otherwise responsive tests to time out, and the 5-second shutdown budget could force-kill the Agent Host before persistence completed, cascading into later failures.
This change uses the existing normal/extended timeout policy for CI, as was already done for Windows and coverage runs, while retaining the shorter local budgets.
Validation
npm run compilenpm run hygiene42 passing,2 pending)42 passing,2 pendingThe broader Agent Host integration run passed the affected tests but later encountered a separate Copilot idle-release assertion on current
main.(Written by Copilot)