chatcops test: --url to test a deployed server
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 13
- Forks
- 7
- Ø Merge
- 3 Std. 39 Min.
- Gemergte PRs (30 T.)
- 275
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codercops/chatcops
-
Widget: fetch signed-in visitor tokens when a session is requestedEvtl. vergeben @piyusshhjangid hat das heute übernommen. Offenenhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 63/100
codercops/chatcops#461 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Widget: support CSP nonces for injected stylesEvtl. vergeben @piyusshhjangid hat das heute übernommen. Offenenhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
codercops/chatcops#460 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Server: validate `rateLimit.windowMs` before creating the limiterEvtl. vergeben @ashutoshpalhare hat das heute übernommen. Offen
codercops/chatcops#452 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Widget: a "New reply" button when the visitor has scrolled upEvtl. vergeben @srujankaleru2007 hat das vor 1 Tag übernommen. Offenenhancement hacktoberfest widget
codercops/chatcops#420 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
chatcops test: GitHub Actions reporterEvtl. vergeben @mohithreddydonala37 hat das vor 1 Tag übernommen. Offenenhancement hacktoberfest testing
codercops/chatcops#417 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codercops/chatcops
Ähnliche Issues
-
fix(worker): keep normal prepare waiting states failure-freeEvtl. vergeben @LichKing-2234 hat das heute übernommen. Offenagent:codex priority:P1
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
AgoraIO-Extensions/agent-infra#3745 ·
Maintainer antworten meist innerhalb von 1 Tag
-
The five-line work window can drop its oldest line: the per-line byte share ignores the JSON framingEvtl. vergeben @Eapp1e hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
makecindy/cindy#7973 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
lingdojo/kana-dojo#33337 · 1 Kommentar · 5 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
coder/xum#7733 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
code-yeongyu/senpi#4917 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag