Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
docs: keep dev workers out of backend test databases (#10900)
Danila Katalshov7b7c98bc27c9
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 8c886c1c3c..a0d8c08a8c 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -593,6 +593,14 @@ make migrate-downThese generic targets require a valid env file in the current directory.+`make test` prepares and migrates the database before running the Go tests. In a worktree without `.env`, `make` automatically selects `.env.worktree`; you can also select it explicitly with `make test ENV_FILE=.env.worktree`.++Before `make test`, `make check`, or `make check-worktree`, stop any development API using the same database so its background workers cannot pick up test jobs. Use the stop command that matches how you started it:++- `make up` → `make down C=api`.+- `make start` / `make dev` → `make stop`; `make start-worktree` → `make stop-worktree`.+- `make server` → press Ctrl-C in its terminal.+### Dev ToolbarSet `VITE_DEV_TOOLBAR=1` to pin a status bar to the bottom of the Web and Desktop dev builds. It shows the client, backend host, workspace, your role, and route, plus live JS heap, last navigation time, main-thread long-task share, in-flight requests, and WebSocket state. Production builds never render it.diff --git a/apps/docs/content/docs/developers/contributing.fr.mdx b/apps/docs/content/docs/developers/contributing.fr.mdxindex a389ed623a..79bde6823c 100644--- a/apps/docs/content/docs/developers/contributing.fr.mdx+++ b/apps/docs/content/docs/developers/contributing.fr.mdx@@ -117,6 +117,14 @@ make migrate-downmake sqlc```+`make test` prépare la base de données et applique les migrations avant les tests Go. Dans un worktree sans `.env`, `make` sélectionne automatiquement `.env.worktree` ; vous pouvez aussi le sélectionner explicitement avec `make test ENV_FILE=.env.worktree`.++Avant `make test`, `make check` ou `make check-worktree`, arrêtez toute API de développement utilisant la même base pour que ses tâches de fond ne traitent pas les travaux de test. Utilisez la commande d’arrêt correspondant à la commande de démarrage :++- `make up` → `make down C=api`.+- `make start` / `make dev` → `make stop` ; `make start-worktree` → `make stop-worktree`.+- `make server` → appuyez sur Ctrl-C dans son terminal.+Pour exécuter une commande CLI depuis les sources :```bashdiff --git a/apps/docs/content/docs/developers/contributing.ja.mdx b/apps/docs/content/docs/developers/contributing.ja.mdxindex d3a2084327..dbc169603a 100644--- a/apps/docs/content/docs/developers/contributing.ja.mdx+++ b/apps/docs/content/docs/developers/contributing.ja.mdx@@ -102,6 +102,14 @@ make migrate-downmake sqlc```+`make test` は Go テストの実行前にデータベースを準備し、マイグレーションを適用します。`.env` のないワークツリーでは、`make` は自動的に `.env.worktree` を選択します。`make test ENV_FILE=.env.worktree` で明示的に指定することもできます。++`make test`、`make check`、`make check-worktree` の前に、同じデータベースを使う開発用 API を停止し、バックグラウンドワーカーがテストジョブを処理しないようにしてください。起動方法に対応する停止方法を使います。++- `make up` → `make down C=api`。+- `make start` / `make dev` → `make stop`。`make start-worktree` → `make stop-worktree`。+- `make server` → 実行中のターミナルで Ctrl-C を押します。+ソースから CLI コマンドを実行するには:```bashdiff --git a/apps/docs/content/docs/developers/contributing.ko.mdx b/apps/docs/content/docs/developers/contributing.ko.mdxindex 553c54911a..6de94c140d 100644--- a/apps/docs/content/docs/developers/contributing.ko.mdx+++ b/apps/docs/content/docs/developers/contributing.ko.mdx@@ -102,6 +102,14 @@ make migrate-downmake sqlc```+`make test`는 Go 테스트를 실행하기 전에 데이터베이스를 준비하고 마이그레이션을 적용합니다. `.env`가 없는 워크트리에서는 `make`가 자동으로 `.env.worktree`를 선택합니다. `make test ENV_FILE=.env.worktree`로 명시적으로 지정할 수도 있습니다.++`make test`, `make check`, `make check-worktree`를 실행하기 전에 같은 데이터베이스를 사용하는 개발 API를 중지하여 백그라운드 워커가 테스트 작업을 가져가지 않도록 하세요. 시작 방법에 맞는 중지 방법을 사용하세요.++- `make up` → `make down C=api`.+- `make start` / `make dev` → `make stop`; `make start-worktree` → `make stop-worktree`.+- `make server` → 실행 중인 터미널에서 Ctrl-C를 누르세요.+소스에서 CLI 명령을 실행하려면 다음을 사용합니다.```bashdiff --git a/apps/docs/content/docs/developers/contributing.mdx b/apps/docs/content/docs/developers/contributing.mdxindex 29c386c24d..438c1fa146 100644--- a/apps/docs/content/docs/developers/contributing.mdx+++ b/apps/docs/content/docs/developers/contributing.mdx@@ -117,6 +117,14 @@ make migrate-downmake sqlc```+`make test` prepares and migrates the database before running the Go tests. In a worktree without `.env`, `make` automatically selects `.env.worktree`; you can also select it explicitly with `make test ENV_FILE=.env.worktree`.++Before `make test`, `make check`, or `make check-worktree`, stop any development API using the same database so its background workers cannot pick up test jobs. Use the stop command that matches how you started it:++- `make up` → `make down C=api`.+- `make start` / `make dev` → `make stop`; `make start-worktree` → `make stop-worktree`.+- `make server` → press Ctrl-C in its terminal.+To run a CLI command from source:```bashdiff --git a/apps/docs/content/docs/developers/contributing.zh-Hant.mdx b/apps/docs/content/docs/developers/contributing.zh-Hant.mdxindex b40c26e1d3..70695d3720 100644--- a/apps/docs/content/docs/developers/contributing.zh-Hant.mdx+++ b/apps/docs/content/docs/developers/contributing.zh-Hant.mdx@@ -102,6 +102,14 @@ make migrate-downmake sqlc```+`make test` 會在執行 Go 測試前準備資料庫並套用遷移。worktree 中沒有 `.env` 時,`make` 會自動選擇 `.env.worktree`;也可以用 `make test ENV_FILE=.env.worktree` 明確指定。++執行 `make test`、`make check` 或 `make check-worktree` 前,請先停止使用同一資料庫的開發 API,避免其背景工作程序領取測試工作。停止方式應與啟動方式對應:++- `make up` → `make down C=api`。+- `make start` / `make dev` → `make stop`;`make start-worktree` → `make stop-worktree`。+- `make server` → 在執行它的終端機按 Ctrl-C。+從源碼執行某條 CLI 命令:```bashdiff --git a/apps/docs/content/docs/developers/contributing.zh.mdx b/apps/docs/content/docs/developers/contributing.zh.mdxindex deee1e14e6..6246e26e19 100644--- a/apps/docs/content/docs/developers/contributing.zh.mdx+++ b/apps/docs/content/docs/developers/contributing.zh.mdx@@ -102,6 +102,14 @@ make migrate-downmake sqlc```+`make test` 会在运行 Go 测试前准备数据库并执行迁移。worktree 中没有 `.env` 时,`make` 会自动选择 `.env.worktree`;也可以用 `make test ENV_FILE=.env.worktree` 显式指定。++运行 `make test`、`make check` 或 `make check-worktree` 前,请先停止使用同一数据库的开发 API,避免其后台工作进程领取测试任务。停止方式应与启动方式对应:++- `make up` → `make down C=api`。+- `make start` / `make dev` → `make stop`;`make start-worktree` → `make stop-worktree`。+- `make server` → 在运行它的终端按 Ctrl-C。+从源码运行某条 CLI 命令:```bash