chatcops test: --url to test a deployed server
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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 withsendTurn(line 135), which calls the handler in process. Add a second way to send a turn: POST the same body to the URL withformat: 'v1'(seewebsite/src/content/docs/server/protocol.mdxfor the request and the stream), parse the stream into the sameTurnResult, and keep theconversationIdacross turns. - With
--url, theserverconfig isn't needed. A test withmockscan'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 1in the docs. Recording with--recordworks the same way, since replays happen at thefetchlevel (packages/cli/src/test/cassette.ts).
Acceptance criteria
- Tests against a real server started in the test with
createChatHandlerandnode:http(seepackages/server/testsfor 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:coverageandpnpm lintpass
- Lingua principale
- TypeScript
- Stelle
- 13
- Fork
- 7
- Merge medio
- 3h 39m
- PR unite (30g)
- 275
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di codercops/chatcops
-
Widget: fetch signed-in visitor tokens when a session is requestedForse già presa @piyusshhjangid l’ha presa oggi. Apertaenhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 63/100
codercops/chatcops#461 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Widget: support CSP nonces for injected stylesForse già presa @piyusshhjangid l’ha presa oggi. Apertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
codercops/chatcops#460 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Server: validate `rateLimit.windowMs` before creating the limiterForse già presa @ashutoshpalhare l’ha presa oggi. Aperta
codercops/chatcops#452 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Widget: a "New reply" button when the visitor has scrolled upForse già presa @srujankaleru2007 l’ha presa 1 giorno fa. Apertaenhancement hacktoberfest widget
codercops/chatcops#420 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
chatcops test: GitHub Actions reporterForse già presa @mohithreddydonala37 l’ha presa 1 giorno fa. Apertaenhancement hacktoberfest testing
codercops/chatcops#417 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di codercops/chatcops
Issue simili
-
b:minor bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
software-mansion/argent#1698 ·
I maintainer di solito rispondono entro 1 giorno
-
e2e-failure ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
better-auth/better-auth#12132 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
automation missing-model model-sync provider:tinfoil
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
anomalyco/models.dev#12053 ·
I maintainer di solito rispondono entro 1 giorno
-
o8 next debug build aborts on Glass to Dark appearance switch (nil identifier messaged before check)Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
hurttlocker/o8#5112 ·