Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(ci): capture test selection on depot (#106878)

Raúl Negrón-Oterob7a54e37d76b
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.yml
index cdc2ed6ac8b8..6ca79799db86 100644
--- a/.depot/workflows/ci-backend.yml
+++ b/.depot/workflows/ci-backend.yml
@@ -4334,13 +4334,16 @@ jobs:
# DevEx project only, mirroring monitor-github-rate-limit; continue-on-error so
# telemetry never reds CI. Skipped on forks/Dependabot, which never have the secret.
if: |
- !cancelled() && github.run_attempt == '1'
+ !cancelled()
&& github.actor != 'dependabot[bot]'
&& github.event.pull_request.head.repo.full_name == 'PostHog/posthog'
&& needs.turbo-discover.result == 'success'
&& needs.turbo-discover.outputs.mode != ''
steps:
- name: Capture test selection to DevEx PostHog
+ # Depot CI evaluates github.run_attempt as an empty string in a job-level if,
+ # so this guard stays on the step for the Depot copy of this job to run.
+ if: github.run_attempt == '1'
continue-on-error: true
uses: PostHog/posthog-github-action@58dea254b598fb5d469c0699c98af8288a7f7650 # v1.2.0
with:
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index f56d9b6bb0dc..0b31aea30a72 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -4495,13 +4495,16 @@ jobs:
# DevEx project only, mirroring monitor-github-rate-limit; continue-on-error so
# telemetry never reds CI. Skipped on forks/Dependabot, which never have the secret.
if: |
- !cancelled() && github.run_attempt == '1'
+ !cancelled()
&& github.actor != 'dependabot[bot]'
&& github.event.pull_request.head.repo.full_name == 'PostHog/posthog'
&& needs.turbo-discover.result == 'success'
&& needs.turbo-discover.outputs.mode != ''
steps:
- name: Capture test selection to DevEx PostHog
+ # Depot CI evaluates github.run_attempt as an empty string in a job-level if,
+ # so this guard stays on the step for the Depot copy of this job to run.
+ if: github.run_attempt == '1'
continue-on-error: true
uses: PostHog/posthog-github-action@58dea254b598fb5d469c0699c98af8288a7f7650 # v1.2.0
with: