Repository navigation
test(cli): size the browser profile tests by spawn count - #448
Merged
Merged
Conversation
Two browser profile tests start the built CLI twice but kept vitest's 5 s default, and timed out in a loaded full coverage run. Give them cliSpawnTimeout(2), as #249 did for the other multi-start CLI tests.
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.
Closes #436
The two browser profile tests in
packages/cli/test/browser-session.test.tsstart the built CLI twice and kept vitest's 5 s default. They now usecliSpawnTimeout(2), as #249 did for the other multi-start CLI tests. "reports unsafe profiles while listing healthy profiles in text and JSON" is the one the issue names. "rejects invalid names and profiles on other session types" also starts the CLI twice with the default, so it gets the same size. The named profile lifecycle test starts it nine times and had a fixed 60 s; it now getscliSpawnTimeout(9), as #249's rule keeps the larger of the two.The agents case (
agents.test.ts, "surfaces unrelated claude mcp add failures") starts the CLI once. Under the #249 load recipe it took 0.7 to 0.9 s and never timed out in 9 runs, so it keeps the default, as #249 decided for single-start tests.Traceability
~/.pickforge/investigations/436/before-*.log,after-*.log,durations.txt~/.pickforge/investigations/436/heavy.txt,heavy-*.json~/.pickforge/investigations/436/durations.txtfull-suite.sh~/.pickforge/investigations/436/full/pickcheck check --base origin/main --fail-on new,worsened,unmatched; gitleaks on the branch commit~/.pickforge/investigations/436/pickcheck.jsonQA pass skipped: this is a test-only change with nothing to drive.
Review
Sol, round 1 at 5eab5ae: 9/10. Its one nit, the nine-start test's fixed 60 s, is fixed in 1bed907.