Skip to content

Improve test reliability and add test mode options#2678

Merged
robgruen merged 9 commits into
mainfrom
dev/robgruen/smoke_test_fix
Jul 15, 2026
Merged

Improve test reliability and add test mode options#2678
robgruen merged 9 commits into
mainfrom
dev/robgruen/smoke_test_fix

Conversation

@robgruen

Copy link
Copy Markdown
Collaborator

This pull request contains several improvements to the test infrastructure and reliability for the shell and agent provider packages. The changes focus on making test runs more robust, preventing race conditions, and ensuring that tests do not fail due to slow shutdowns or interference from other running instances.

Test infrastructure and reliability improvements:

  • Improved the @session clear test to wait for the session reinitialization to fully complete and verify the success message before shutting down, preventing shutdown race conditions that could cause test timeouts. [1] [2]
  • Enhanced the closeInstance helper to force-kill the process and log a warning if graceful shutdown exceeds the timeout, instead of failing the test, making tests more resilient to slow or hung shutdowns.

@robgruen robgruen marked this pull request as ready for review July 15, 2026 04:02
@robgruen robgruen enabled auto-merge July 15, 2026 04:02
Comment thread ts/packages/shell/test/testHelper.ts
@robgruen robgruen added this pull request to the merge queue Jul 15, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 15, 2026
@robgruen robgruen enabled auto-merge July 15, 2026 15:40
@robgruen robgruen added this pull request to the merge queue Jul 15, 2026
Merged via the queue into main with commit 4fcac5d Jul 15, 2026
25 checks passed
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.

2 participants