test(httpapi): add scenarios for 37 uncovered routes - #198
Closed
alltomatos wants to merge 1 commit into
Closed
alltomatos wants to merge 1 commit into
alltomatos wants to merge 1 commit into
Conversation
Closes the coverage gap in the httpapi-exercise gate for batuta, combo, agentui, mcp, memory, telegram, config, external-agent, experimental/background-job and global/bug-relay routes. The coverage/auth/effect modes of `bun run test:httpapi` now all report missing=0 extra=0. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Owner
Author
|
Closing as superseded by PR #203 which landed scenarios for all 38 routes on dev. |
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.
Summary
test:httpapi(bun run script/httpapi-exercise.ts --mode coverage --fail-on-missing --fail-on-skip) estava quebrado emdev: 37 rotas registradas no HttpApi (batuta, combo, agentui, mcp, memory, telegram, config, external-agent, experimental/background-job, global/bug-relay) não tinham cenário de teste empackages/opencode/test/server/httpapi-exercise/index.ts, causandomissing=37e bloqueando CI (unit (linux)/unit (windows)) em qualquer PR contradev..at(),.jsonEffect(),.mutating(),.seeded()).Test plan
bun run script/httpapi-exercise.ts --mode coverage --fail-on-missing --fail-on-skip→missing=0 extra=0, exit 0bun run script/httpapi-exercise.ts --mode auth --fail-on-missing --fail-on-skip→missing=0 extra=0, exit 0bun run script/httpapi-exercise.ts --mode effect --fail-on-missing --fail-on-skip→missing=0 extra=0, exit 0 (6 falhas de cenário pré-existentes e não relacionadas —pty.create,worktree.reset,v2.pty.create,session.prompt,session.prompt_async,session.command— não bloqueiam o gate, que só falha pormissing/skip)bun turbo test→ 719/722 passando; as 3 falhas restantes são de paridade i18n do localedv(packages/app/src/i18n/parity.test.ts), pré-existentes emdeve sem relação com este diffbun turbo typecheck(rodado pelo pre-push hook) → limpoNotas
effectmode e as 3 falhas de i18ndvsão pré-existentes emdev; considerar issues separadas se quiser investigá-las.🤖 Generated with Claude Code