Skip to content

test(agent): give the prompt-timeout test room for a slow runner - #4861

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:kalin/fix-flaky-prompt-timeout-test
Oct 6, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:kalin/fix-flaky-prompt-timeout-test

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

A timing test added in #4726 failed the required Windows unit job on an unrelated PR (#4859), 72 minutes into the run. It gives a tool 0.3 seconds to finish everything except waiting on the permission prompt, and a loaded Windows runner took longer than that just to start the thread. The test now allows 2 seconds around a 3-second prompt, so it still fails if prompt time is counted against the tool, but a slow runner no longer trips it.

Test plan

  • pytest tests/unit/test_path_access_grant.py — 8 passed (4 s; this test went from 1 s to 3 s)
  • Unit Tests (Windows, py3.12) green on this PR

The test allowed a tool 0.3 s outside its permission prompt, and a loaded Windows runner exceeded that on thread start-up alone, failing the required unit job on an unrelated PR. It now allows 2 s around a 3 s prompt: still a failure if prompt time counts against the tool, no longer a failure on a slow machine.
@github-actions github-actions Bot added the tests Test changes label Oct 6, 2026
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Oct 6, 2026
Merged via the queue into amd:main with commit be1e0df Oct 6, 2026
@kovtcharov-amd
kovtcharov-amd deleted the kalin/fix-flaky-prompt-timeout-test branch October 6, 2026 06:07
kovtcharov-amd pushed a commit that referenced this pull request Oct 6, 2026
Three fixes merged to main after the release branch was last updated, so
the release would ship without them: the flagship mail-connect fix
(#4859), the code-search workflow fix (#4858) and the Windows
timing-test fix (#4861). This merges main into `v0.25.0-release` and
adds the one user-visible change, #4859, to the notes. It targets the
release branch, not main.

## Test plan
- [x] `python util/validate_release_notes.py --tag v0.25.0
docs/releases/v0.25.0.mdx` validates
- [x] `pytest tests/unit/chat/ui/test_export_openapi.py
hub/agents/gaia/python/tests/test_npm_doc_min_version.py
tests/unit/connectors/test_grant_agent_scope_derivation.py
tests/unit/test_path_access_grant.py` — 32 passed
- [ ] Unit jobs green on this PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants