test(api): prove inherited caller cancellation for baseten, fireworks and sambanova
Mantenedores costumam responder em até 3 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
Direção de pesquisa
Read src/api/providers/base-openai-compatible-provider.ts first (the RequestConfigBuilder + throwIfAborted path from #1311) and compare it with the thin shells in src/api/providers/baseten.ts, fireworks.ts and sambanova.ts. Then read the existing base-openai-compatible-provider.spec.ts and base-openai-compatible-provider-timeout.spec.ts to copy their abort/timeout setup, and add one spec per provider next to the existing baseten.spec.ts / fireworks.spec.ts / sambanova.spec.ts asserting the inherited AbortError pass-through and the agreed timeout verdict. Done means those three specs pass against the merged base, the per-provider pass counts are recorded in the issue, and no provider-local abort wiring exists in the three files.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Scope: verification only, no new wiring
baseten, fireworks and sambaNova are thin shells over the shared compatible base - at main 75a93a9d9acc each file is ~20 lines with no method overrides and no abort handling of its own:
src/api/providers/baseten.ts:6: export class BasetenHandler extends BaseOpenAiCompatibleProvider<BasetenModelId> {
src/api/providers/fireworks.ts:7: export class FireworksHandler extends BaseOpenAiCompatibleProvider<FireworksModelId> {
src/api/providers/sambanova.ts:7: export class SambaNovaHandler extends BaseOpenAiCompatibleProvider<SambaNovaModelId> {
git grep -c -F abortSignal returns nothing for all three: they receive caller cancellation and the request timeout entirely through base-openai-compatible-provider.ts (the RequestConfigBuilder + throwIfAborted path that #1311 adds). They therefore need no provider-specific patch PR, and they are not part of the seven hand-written bridges listed in #2486.
Acceptance criteria (after #1311 merges)
- Re-run
baseten.spec.ts,fireworks.spec.ts,sambanova.spec.tstogether withbase-openai-compatible-provider.spec.tsandbase-openai-compatible-provider-timeout.spec.tsagainst the merged base, and record the pass/fail count per provider in this issue. - Add one small regression spec per provider pinning the inherited contract rather than the base contract:
- a pre-aborted caller rejects with
name === "AbortError"before any HTTP request is issued; - a cancel during the request rejects with
AbortErrorand is not re-wrapped with the provider's own error prefix; - a timeout expiry surfaces with the verdict that #2486 U0b settles for this family (
TimeoutErrorfromcreateTimeoutError(providerName, phase)vs the gateway family'sAbortError) - the specs must not drift per provider.
- a pre-aborted caller rejects with
- Confirm no provider-local
AbortController/addEventListener("abort")appears in the three files, so #2486 U7 can keep the hygiene selectors strict.
Budget
Three focused specs in one PR, roughly 120 a+d total; no production file changes expected unless a criterion above fails.
Dependencies
- #1311 (the compatible-base cancellation they inherit) must merge first.
- #2486 U0b decides the timeout verdict this issue must pin.
- #616 (abort pass-through umbrella) is the tracker to close once these three are proven.
Sibling families that inherit rather than patch, for the same record: deepseek / mimo / moonshot / kimi-code via OpenAiHandler (covered by #1311 specs), github-copilot via VsCodeLmHandler (#2486 U6), vertex via GeminiHandler.
- Linguagem predominante
- TypeScript
- Estrelas
- 2k
- Forks
- 301
- Merge médio
- 3d 14h
- PRs com merge (30d)
- 103
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Zoo-Code-Org/Zoo-Code
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 comentário ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 comentário ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
Mantenedores costumam responder em até 3 dias
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on WindowsTalvez já em andamento @easonLiangWorldedtech assumiu há 15 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
Mantenedores costumam responder em até 3 dias
-
[BUG] search_files hides matching text on long linesTalvez já em andamento @DananjayaNadun assumiu há 9 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 3 dias
Todas as issues de Zoo-Code-Org/Zoo-Code
Issues semelhantes
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
ci
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
ClickHouse/clickhouse-js#1248 ·
Mantenedores costumam responder em até 1 dia
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltAbertatechnik
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
AhmedNAgy25/analysor#25 ·
Mantenedores costumam responder em até 1 dia