Repository navigation
fix: update browser wasm tests for FakeAgent's numbered turns - #639
Merged
Merged
Conversation
The FakeAgent rewrite in #634 numbers user message ids per prompt and holds prompts sent mid-turn until the turn ends. The browser wasm tests still expected the fixed "user-message" id, and the mid-turn prompt test never answered its elicitation, so the queued prompt hung the runner until the job timed out and was reported as cancelled. Bound the wasm test step with its own timeout so a hung test fails the step instead of cancelling the job.
There was a problem hiding this comment.
Auto approve: this PR only updates browser wasm tests to match FakeAgent's numbered messages and turn completion behavior, and bounds the CI wasm step. No production, infrastructure, schema, or HTTP API changes, and no obvious bugs found. The CI Check and test wasm step passed.
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.
Why
The
Wasmcheck has been failing (shown as Cancelled) onmainand every open PR since #634.The
FakeAgentrewrite in #634 changed two behaviors the browser wasm tests depend on:user-message-1,user-message-2, ...). The tests still expected a fixed"user-message", and every elicitation test asserts on it throughexpect_turn_start(), so 6 tests failed.a_prompt_during_a_turn_is_sent_to_the_agentsent a second prompt while an elicitation was still unanswered. That prompt never resolved, and wasm-bindgen-test has no per-test timeout, so the runner hung until the job's 20-minutetimeout-minutescancelled it. The hang also stopped the failure details from ever printing.Changes
packages/aether-browser/tests/client.rs.user-message-2.Check and test wasmCI step its owntimeout-minutes: 10, so a hung test should fail that step instead of cancelling the job.Testing
just wasm-check wasm-testpasses locally: 27 passed, 0 failed (0.19s).