Publish skips when ci-ready lands before ci-pending clears

Open Beginner friendly
#10,607 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, javascript
Domain
ci-cd

Research direction

Start with the publish job condition and event triggers in .github/workflows/publish.yml, then trace how the ci-ready and ci-pending label events interact. Reproduce the ordering described in the issue and check that publishing runs once accepted and ci-ready are present and ci-pending is absent. Confirm the workflow still skips when those conditions are not met.

Written by the indexing model from the issue text.

Description

An accepted publish issue can get stuck with accepted + ci-ready and never publish. The CI poller sometimes adds ci-ready before it removes ci-pending. The publish job only runs on the ci-ready labeled event, and that event's label snapshot still contains ci-pending, so the job is skipped. Removing ci-pending afterwards triggers nothing, because publish.yml only listens to issues: [labeled].

Seen on getsentry/publish#10605 (getsentry/[email protected]). Label timeline (UTC, all by getsantry[bot] unless noted):

  • 17:53:16 accepted added (sentry-junior[bot])
  • 17:53:47 ci-pending added
  • 18:02:01 ci-ready added → Publish run at 18:02:04 skipped
  • 18:02:02 ci-pending removed → no run
  • Issue sat with accepted + ci-ready until accepted was removed and re-added at 18:29. The poller then removed ci-pending before adding ci-ready (both 18:30:19), the run went through, and the issue published at 18:33.

Relevant condition in .github/workflows/publish.yml (publish job):

github.event.label.name == 'ci-ready'
&& contains(github.event.issue.labels.*.name, 'accepted')
&& contains(github.event.issue.labels.*.name, 'ci-ready')
&& !contains(github.event.issue.labels.*.name, 'ci-pending')

Workaround: remove and re-add accepted.

via @BYK.

--

View Session [Sentry]

Dominant language
JavaScript
Stars
16
Forks
30
Avg merge
1h 5m
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/publish

All issues in getsentry/publish

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.