Skip to content

πŸͺ’ Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

docs(previews): update debugging guide (#15306)

Tobias Wochingerd438443c1c5c
diff --git a/.agents/skills/langfuse-previews/SKILL.md b/.agents/skills/langfuse-previews/SKILL.md
index dfbacd9bd9..630aaf82f0 100644
--- a/.agents/skills/langfuse-previews/SKILL.md
+++ b/.agents/skills/langfuse-previews/SKILL.md
@@ -117,6 +117,7 @@ kubectl annotate ns $NS downscaler/force-uptime- # undo later
### Symptom β†’ fix
| Symptom | Likely cause / fix |
|---|---|
+| My preview environment is not available | Check for the `preview` label and inspect the **AWS preview build** workflow. If the PR opened with merge conflicts, resolve them; the next update adds the label. Other CI checks do not gate the preview build. |
| 🟒 build comment posted, but the URL 404s | PR author not on the **deploy allowlist** β€” the image built, nothing deployed. Add yourself (see Getting access). |
| URL not ready right after building | Build still finishing (~5 min) or a transient `ImagePullBackOff` β€” it self-heals. |
| Unresponsive at night / on a weekend | Asleep off-hours β€” wake it (above). |
@@ -129,18 +130,15 @@ kubectl annotate ns $NS downscaler/force-uptime- # undo later
selector in `k8s/preview/bootstrap/applicationset.yaml` (repo
`langfuse/infrastructure`), open a PR, and merge to `main`. Argo re-syncs and
your labeled PRs deploy β€” no admin needed.
-- **Cluster access β€” needs an admin** (only to debug with `kubectl`, not to
- *use* a preview). Ask an admin to add you to the preview-cluster role in AWS
- IAM Identity Center. Then set up local access β€” the `~/.aws/config` profile
- block and its exact values (AWS account id, SSO start URL, cluster name,
- region) are in the internal Langfuse doc:
+- **Cluster access β€” available to all Langfuse engineers** (only needed to
+ debug with `kubectl`, not to *use* a preview). Set up local access using the
+ `~/.aws/config` profile block from the internal Langfuse doc:
https://linear.app/langfuse/document/connect-to-aws-instances-aurora-redis-from-local-machine-896fe46ff797
1. Open `~/.aws/config` and add the `[sso-session langfuse]` + `[profile preview]`
blocks from that doc (keep any `[sso-session langfuse]` you already have).
2. `aws sso login --profile preview`
- 3. `aws eks update-kubeconfig --name <cluster> --region <region> --profile preview`
- (name + region are in the doc; no `--role-arn` β€” the role has its own EKS
- access entry).
+ 3. `aws eks update-kubeconfig --name langfuse-preview --region eu-west-1 --profile preview`
+ (no `--role-arn` β€” the role has its own EKS access entry).
---
diff --git a/.github/workflows/preview-autolabel.yml b/.github/workflows/preview-autolabel.yml
index 19e8226ed8..cb83ce7833 100644
--- a/.github/workflows/preview-autolabel.yml
+++ b/.github/workflows/preview-autolabel.yml
@@ -1,8 +1,11 @@
name: AWS preview auto-label
-# Auto-apply the `preview` label to same-repo PRs on open, so the Argo CD
-# ApplicationSet (in the infrastructure repo) picks them up and builds a
-# preview. Anyone with write access can also apply the label by hand.
+# Auto-apply the `preview` label to same-repo PRs on open or update, so the Argo
+# CD ApplicationSet (in the infrastructure repo) picks them up and builds a
+# preview. Including synchronize recovers PRs that opened with merge conflicts:
+# GitHub skips pull_request workflows until the conflict is resolved. It also
+# reactivates a stale or manually removed preview when development resumes.
+# Anyone with write access can also apply the label by hand.
#
# Trust boundary is WRITE access, not a per-author allowlist: opening a
# same-repo PR requires push access, so labeling every same-repo PR is exactly
@@ -14,7 +17,7 @@ name: AWS preview auto-label
# stays off zizmor's dangerous-triggers list.
on:
pull_request:
- types: [opened, reopened]
+ types: [opened, reopened, synchronize]
permissions: {}