aboutsummaryrefslogtreecommitdiffstats
path: root/.agent/workflows/deploy-check.md
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-14 15:16:06 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-14 15:16:06 -0800
commit17fd19c8f822ff84b1855d7729a3030ebf1f68ae (patch)
tree9423cc99d9ce08c82e0704f293a3278ff5ec6aec /.agent/workflows/deploy-check.md
parent490edf9e9f2911231df6c76ef4afeb3b1fb763d2 (diff)
downloadneko-17fd19c8f822ff84b1855d7729a3030ebf1f68ae.tar.gz
neko-17fd19c8f822ff84b1855d7729a3030ebf1f68ae.tar.bz2
neko-17fd19c8f822ff84b1855d7729a3030ebf1f68ae.zip
new workflows based on past issues
Diffstat (limited to '.agent/workflows/deploy-check.md')
-rw-r--r--.agent/workflows/deploy-check.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/.agent/workflows/deploy-check.md b/.agent/workflows/deploy-check.md
new file mode 100644
index 0000000..51ab1ae
--- /dev/null
+++ b/.agent/workflows/deploy-check.md
@@ -0,0 +1,36 @@
+---
+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.