test: run-process --trace subprocess flakes with "Model not found: test/test-model" while sibling tests pass
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
Research direction
Start with test/cli/run/run-process.test.ts and the --trace subprocess test, then inspect expectExit and the test provider setup. Reproduce the failure under the bounded subprocess suite or load conditions, and compare it with the four sibling tests. Done means the test no longer flakes with “Model not found: test/test-model” while preserving the existing exit and trace assertions.
Written by the indexing model from the issue text.
Description
Flake
test/cli/run/run-process.test.ts › "opencode run (non-interactive subprocess) > --trace writes a session trace artifact" failed once on the v0.12.1 release PR (#1338, head a2ff011130) with no related code change:
[opencode] expected exit 0, got 1 after 3075ms
Error: Model not found: test/test-model
Try: `altimate models` to list available models
The four sibling subprocess tests in the same file — same test provider, same model — passed in the same run seconds earlier, and the same test passed on the PR's previous heads. The branch touches nothing under cli/cmd/run, tracing, or provider config. Run: https://github.com/AltimateAI/altimate-code/actions/runs/35602891038
Looks like the subprocess occasionally starts before the test provider registration is visible to it (config read race), or the bounded subprocess suite is scheduling-sensitive under load. Worth a bounded retry inside expectExit for this shape, or a readiness check on the test provider before spawning.
Filed so the re-run has a paper trail per the release process.
🤖 Generated with Claude Code
- Dominant language
- TypeScript
- Stars
- 813
- Forks
- 134
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 62
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AltimateAI/altimate-code
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AltimateAI/altimate-code#1323 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
AltimateAI/altimate-code#1288 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
AltimateAI/altimate-code#1285 ·
-
privacy: Altimate Base consent dialog no longer discloses persistent per-installation identifier Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
AltimateAI/altimate-code#1284 ·
-
Difficulty 2/5 Under an hour Newbie friendliness 72/100
AltimateAI/altimate-code#1283 ·
All issues in AltimateAI/altimate-code
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·