Skip to content

fix(ci): stop labeler overwriting org triage labels - #67

Merged
mulhamna merged 1 commit into
mainfrom
fix/labeler-triage-race
Aug 29, 2026
Merged

fix(ci): stop labeler overwriting org triage labels#67
mulhamna merged 1 commit into
mainfrom
fix/labeler-triage-race

Conversation

@mulhamna

Copy link
Copy Markdown
Member

Summary

  • The label and triage jobs in suiflex.yml run in parallel on pull_request_target, and both write labels. actions/labeler replaces the whole label set in one setLabels (PUT) call based on a snapshot read at start, so it can erase the org labels (bot, maintainer, commit: *, needs: conventional commit) that the triage job applied seconds earlier.
  • Observed on PR feat: install updates directly from forgeguard update #66: timeline shows maintainer + 4 commit: * labels applied at 17:24:29Z, then unlabeled at 17:24:30Z by the labeler's PUT, leaving only the area: * labels.

Changes

  • label job now declares needs: triage so its read happens after the org labels are applied; area labels layer on top instead of overwriting.
  • Comments updated to document the write semantics so nobody "tidies" the needs away.

Test plan

  • YAML validated locally (ruby -ryaml).
  • After merge: open/update a PR from a maintainer with conventional commits and confirm both commit: */maintainer and area: * labels survive.
  • Confirm synchronize re-runs still reconcile both label sets correctly.

actions/labeler replaces the entire label set in a single write, so
running it in parallel with the org triage job let its snapshot race
the triage labels and erase them on PUT (seen on PR #66, where the
commit/maintainer labels vanished one second after being applied).
Serialize the label job on triage so area labels layer on top of the
org ones instead of overwriting them.
@mulhamna
mulhamna requested a review from a team August 29, 2026 17:41
@suiflex-bot suiflex-bot Bot added area: ci GitHub Actions workflows and templates maintainer commit: fix labels Aug 29, 2026
@mulhamna
mulhamna merged commit c59cc43 into main Aug 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci GitHub Actions workflows and templates commit: fix maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant