Skip to content

fix(ci): use !cancelled() gate pattern for LLM Services roll-up#60950

Merged
rnegron merged 1 commit into
masterfrom
mendral/fix-llm-services-gate-condition
Jun 1, 2026
Merged

fix(ci): use !cancelled() gate pattern for LLM Services roll-up#60950
rnegron merged 1 commit into
masterfrom
mendral/fix-llm-services-gate-condition

Conversation

@mendral-app
Copy link
Copy Markdown
Contributor

@mendral-app mendral-app Bot commented Jun 1, 2026

Summary

  • Fix the llm_services_tests gate job to use !cancelled() instead of always(), and check for explicit failure rather than != success/skipped
  • This preserves master dedup (concurrency with github.ref) while preventing concurrency-evicted runs from reporting false failures

Supersedes #60796 based on feedback from @rnegron — the root cause is the gate condition, not the concurrency group. This also fixes the same class of issue seen in Security CI (#60298).


Note

Created by Mendral. Tag @mendral-app with feedback or questions.

Replace `if: always()` with `if: ${{ !cancelled() }}` on the
llm_services_tests gate job so that concurrency-evicted runs skip the
gate entirely instead of reporting failure.

Change the llm-gateway result check from a != success/skipped allowlist
to an explicit == failure check. This means cancelled upstream jobs no
longer cause the gate to fail.

This preserves the master dedup concurrency group (github.ref fallback)
while fixing the root cause: the gate treating cancelled jobs as
failures.

Closes the same class of issue as Security CI #60298.
@mendral-app mendral-app Bot requested a review from rnegron June 1, 2026 15:39
@mendral-app mendral-app Bot marked this pull request as ready for review June 1, 2026 15:52
@assign-reviewers-posthog assign-reviewers-posthog Bot requested a review from a team June 1, 2026 15:52
@assign-reviewers-posthog
Copy link
Copy Markdown

👥 Auto-assigned reviewers

Skipped a review request for @PostHog/team-ai-gateway (.github/workflows/ci-llm-gateway.yml) because they only have minor changes here. These are soft owners (CODEOWNERS-soft / each product's product.yaml), so nothing blocks merge — self-assign if you'd like a look. (Generated files and lockfiles are ignored when deciding ownership.)

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Jun 1, 2026

Reviews (1): Last reviewed commit: "fix(ci): use !cancelled() gate pattern f..." | Re-trigger Greptile

@rnegron rnegron merged commit 56922d4 into master Jun 1, 2026
152 of 153 checks passed
@rnegron rnegron deleted the mendral/fix-llm-services-gate-condition branch June 1, 2026 16:03
@deployment-status-posthog
Copy link
Copy Markdown

deployment-status-posthog Bot commented Jun 1, 2026

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-06-01 16:35 UTC Run
prod-us ✅ Deployed 2026-06-01 16:48 UTC Run
prod-eu ✅ Deployed 2026-06-01 16:51 UTC Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant