diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-14 15:16:06 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-14 15:16:06 -0800 |
| commit | 17fd19c8f822ff84b1855d7729a3030ebf1f68ae (patch) | |
| tree | 9423cc99d9ce08c82e0704f293a3278ff5ec6aec /.agent/workflows/test-safe.md | |
| parent | 490edf9e9f2911231df6c76ef4afeb3b1fb763d2 (diff) | |
| download | neko-17fd19c8f822ff84b1855d7729a3030ebf1f68ae.tar.gz neko-17fd19c8f822ff84b1855d7729a3030ebf1f68ae.tar.bz2 neko-17fd19c8f822ff84b1855d7729a3030ebf1f68ae.zip | |
new workflows based on past issues
Diffstat (limited to '.agent/workflows/test-safe.md')
| -rw-r--r-- | .agent/workflows/test-safe.md | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.agent/workflows/test-safe.md b/.agent/workflows/test-safe.md new file mode 100644 index 0000000..bba4adb --- /dev/null +++ b/.agent/workflows/test-safe.md @@ -0,0 +1,42 @@ +--- +description: Run tests in a safe, controlled manner to avoid VM crashes +--- + +Use this workflow to run tests with extra precautions, especially Playwright/E2E tests that have historical stability issues. + +1. **Pre-flight checks:** + ```bash + # Ensure clean environment + ./clean_test_env.sh + # Check for stray processes + ps aux | grep -E 'neko|playwright|chrome' + ``` + +2. **Backend tests (Go):** + // turbo + ```bash + go test -v -timeout=5m ./... + ``` + +3. **Frontend unit tests (Node):** + // turbo + ```bash + cd frontend && npm test -- --run + ``` + +4. **E2E tests (Safe Wrapper):** + Use the safe wrapper script which handles timeouts and automatic cleanup. + ```bash + ./run_e2e_safe.sh + ``` + + If E2E tests fail or hang: + - Check `backend.log` for server issues + - Run `./clean_test_env.sh` to reset the database and environment + - Create a ticket in Thicket for any flaky tests discovered + +5. **Report results:** + - Document any flaky tests in the relevant Thicket ticket + - Update the ticket with coverage information if applicable + +**CRITICAL**: NEVER run Playwright tests directly via `npm run test:e2e` if you are unsure of stability. Always use the `./run_e2e_safe.sh` wrapper. |
