Skip to content

fix(ci): gate test jobs on labels resolved at run time - #908

Open
yordis wants to merge 1 commit into
open-telemetry:mainfrom
yordis:yordis/fix-ci-label-gating
Open

yordis wants to merge 1 commit into
open-telemetry:mainfrom
yordis:yordis/fix-ci-label-gating

Conversation

@yordis

@yordis yordis commented Nov 30, 2026

Copy link
Copy Markdown
Member
  • The labeler applies labels with GITHUB_TOKEN, and events created by that token never start a new workflow run, so test jobs gated on github.event.pull_request.labels only ran when some later event happened to carry the labels.
  • Several label events cancelling each other through cancel-in-progress made this worse: the run that finished last could carry a payload with no labels at all, skip every test job, and still report green.
  • Working out the labels inside the run from .github/labeler.yml and the PR's changed files keeps the labeler config as the single source of truth while making CI independent of when the labeler finishes.

The labeler applies labels with GITHUB_TOKEN, which never triggers a new
run, so test jobs gated on the event payload were silently skipped
whenever no later event carried the labels.

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
@yordis
yordis requested a review from a team as a code owner November 30, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant