Skip to content

Commit 07832be

Browse files
committed
ops: document Sentry fallback env
1 parent d7069ab commit 07832be

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

agents/.paperclip.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ agents:
123123
SENTRY_AUTH_TOKEN:
124124
kind: "secret"
125125
requirement: "optional"
126+
SENTRY_ORG:
127+
kind: "plain"
128+
default: "ffmemes"
129+
requirement: "optional"
130+
SENTRY_PROJECT:
131+
kind: "plain"
132+
default: "ff-backend"
133+
requirement: "optional"
126134
COOLIFY_ACCESS_TOKEN:
127135
kind: "secret"
128136
requirement: "optional"
@@ -182,6 +190,14 @@ agents:
182190
SENTRY_AUTH_TOKEN:
183191
kind: "secret"
184192
requirement: "required"
193+
SENTRY_ORG:
194+
kind: "plain"
195+
default: "ffmemes"
196+
requirement: "optional"
197+
SENTRY_PROJECT:
198+
kind: "plain"
199+
default: "ff-backend"
200+
requirement: "optional"
185201
PREFECT_AUTH_STRING:
186202
kind: "secret"
187203
requirement: "required"

agents/qa-engineer/AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You are running without a human operator. NEVER call `AskUserQuestion`. When ski
2525

2626
## Log Sources
2727

28-
1. **Sentry** — prefer the new CLI: `sentry issue list --query "is:unresolved" --limit 20 --json --fields shortId,title,level,firstSeen`. If only `sentry-cli` exists, use `sentry-cli issues list --status unresolved --max-rows 20`. Use `sentry issue view <id>` / `sentry-cli issues info <id>` for details.
28+
1. **Sentry** — prefer the new CLI: `sentry issue list --query "is:unresolved" --limit 20 --json --fields shortId,title,level,firstSeen`. If only `sentry-cli` exists, use `sentry-cli issues list --org "$SENTRY_ORG" --project "$SENTRY_PROJECT" --status unresolved --max-rows 20`. Use `sentry issue view <id>` or Sentry REST API for details.
2929
2. **Coolify app logs**`curl -s "$COOLIFY_BASE_URL/api/v1/applications/v0kkssccwoswgwwscws4kscc/logs?lines=200" -H "Authorization: Bearer $COOLIFY_ACCESS_TOKEN"`.
3030
3. **DB health**`psql $ANALYST_DATABASE_URL` (read-only). Query `user_meme_reaction`, `user_stats.updated_at`, `meme_stats.updated_at`, and new `meme` rows in the last hour.
3131

@@ -113,7 +113,7 @@ even when the run is partial or errored.
113113

114114
When reviewing after a deploy, whether from scheduled heartbeat, Sentry trigger, or handoff:
115115
1. **Run `/canary`** — MANDATORY. Handles console errors, performance regressions, page failures, baseline comparison.
116-
2. **Sentry scan** — run `sentry issue list --query "is:unresolved" --limit 20 --json --fields shortId,title,level,firstSeen`; if only legacy `sentry-cli` exists, run `sentry-cli issues list --status unresolved --max-rows 20`. Cross-reference against the deploy timestamp.
116+
2. **Sentry scan** — run `sentry issue list --query "is:unresolved" --limit 20 --json --fields shortId,title,level,firstSeen`; if only legacy `sentry-cli` exists, run `sentry-cli issues list --org "$SENTRY_ORG" --project "$SENTRY_PROJECT" --status unresolved --max-rows 20`. Cross-reference against the deploy timestamp.
117117
3. Run E2E smoke tests if credentials are configured (see below).
118118
4. Report results to **CTO** — GREEN (all clear) or RED (issues found).
119119

docs/paperclip-ops-runbook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Agents need `PATH=/paperclip/bin:$PATH` to find them.
344344
| `codex` | `/paperclip/bin/codex` | `npm install --prefix /paperclip/.npm-global @openai/codex@latest && ln -sf /paperclip/.npm-global/node_modules/.bin/codex /paperclip/bin/codex` |
345345
| `sentry` / `sentry-cli` | `/paperclip/bin/sentry` or system path | `npm install --prefix /paperclip/.npm-global sentry @sentry/cli && ln -sf /paperclip/.npm-global/node_modules/.bin/sentry /paperclip/bin/sentry && ln -sf /paperclip/.npm-global/node_modules/.bin/sentry-cli /paperclip/bin/sentry-cli` |
346346

347-
`sentry` and legacy `sentry-cli` use different issue-list syntax. Prefer `sentry issue list --query "is:unresolved" --limit 20`; use `sentry-cli issues list --status unresolved --max-rows 20` only as a legacy fallback.
347+
`sentry` and legacy `sentry-cli` use different issue-list syntax. Prefer `sentry issue list --query "is:unresolved" --limit 20`; use `sentry-cli issues list --org "$SENTRY_ORG" --project "$SENTRY_PROJECT" --status unresolved --max-rows 20` only as a legacy fallback. QA and CTO receive `SENTRY_ORG=ffmemes` and `SENTRY_PROJECT=ff-backend` from the manifest.
348348

349349
Post-deployment command (runs after each Coolify deploy) is configured to reinstall these,
350350
but runs as non-root `node` user — see Coolify Quirks below.

0 commit comments

Comments
 (0)