Repository navigation
Conversation
StartScriptShouldWaitForAShortScriptToFinish asked StartScript to wait up to 5 seconds for `echo "finished"`. On busy Windows agents, PowerShell startup alone can exceed that, so StartScript correctly returned Running and the test failed intermittently (e.g. 5,297 ms on win-x86). Raise the window to 60 seconds. StartScript returns as soon as the script completes, so passing runs are no slower. Claude-Session: https://claude.ai/code/session_012a7MWUgDDfPmxcoi6ZFskC
gb-8
force-pushed
the
claude/sharp-cray-6bhvrd
branch
from
November 26, 2026 08:36
5c6cb01 to
e4a5e7a
Compare
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.
Background
Fixes LEV-2418
ScriptServiceV2Fixture.StartScriptShouldWaitForAShortScriptToFinishfails intermittently on Windows.The test asserts that when a script finishes within the timespan the start command specifies, then
StartScriptshould returnRunning.However, it using a timespan of 5 seconds, and even the 1 line
echoscript it uses does not always complete within 5 seconds, due to how long it can take to start PowerShell on a busy agent.Tentacle behaved correctly. The test was effectively asserting that PowerShell can run
echoin under 5 seconds on the build agent.Results
The we increase the start command's timespan from 5 seconds to 60 seconds.
StartScriptreturns as soon as the script completes, so passing runs take no longer.Before
Intermittent failure: 2 of the latest 100 runs for this configuration.
After
The test passes unless the shell takes longer than 60 seconds to run
echo.How to review this PR
Quality ✔️
Test-only change. Does the reasoning make sense. Is this still a valuable test?
Pre-requisites