Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

chatcops test: --url to test a deployed server

オープン
#419 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@srujankaleru2007 がすでに取り組んでいます。

2026年10月28日 から。

評価

この issue はまだ評価されていません。

説明

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
主要言語
TypeScript
スター
13
フォーク
7
平均マージ
3時間 30分
マージ済み PR(30日)
258

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codercops/chatcops のほかの issue

codercops/chatcops の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。