Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

chatcops test: --url to test a deployed server

Aperta
#419 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@srujankaleru2007 ci sta già lavorando.

Dal 28/10/2026.

  • #448 di @srujankaleru2007 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement hacktoberfest testing

chatcops test runs the bot in process from the config. --url https://example.com/chat runs the same eval files against a deployed server instead, over the wire protocol, as a smoke test after a deploy.

What to add

  • In packages/cli/src/test/run.ts, runOnce (line 86) sends each turn with sendTurn (line 135), which calls the handler in process. Add a second way to send a turn: POST the same body to the URL with format: 'v1' (see website/src/content/docs/server/protocol.mdx for the request and the stream), parse the stream into the same TurnResult, and keep the conversationId across turns.
  • With --url, the server config isn't needed. A test with mocks can't run that way, so fail it with a reason that says so instead of skipping it quietly.
  • --header "Authorization: Bearer ..." (repeatable) for servers that need it. Never print header values.
  • The server's rate limit will apply, so mention --concurrency 1 in the docs. Recording with --record works the same way, since replays happen at the fetch level (packages/cli/src/test/cassette.ts).

Acceptance criteria

  • Tests against a real server started in the test with createChatHandler and node:http (see packages/server/tests for examples), including multi-turn, an error part and a refused request
  • Documented in website/src/content/docs/core/testing.mdx, with a changeset for @chatcops/cli (minor)
  • pnpm test:coverage and pnpm lint pass
Lingua principale
TypeScript
Stelle
13
Fork
7
Merge medio
3h 39m
PR unite (30g)
275

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codercops/chatcops

Tutte le issue di codercops/chatcops

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.