Publish skips when ci-ready lands before ci-pending clears
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
acceptedadded (sentry-junior[bot]) - 17:53:47
ci-pendingadded - 18:02:01
ci-readyadded → Publish run at 18:02:04 skipped - 18:02:02
ci-pendingremoved → no run - Issue sat with
accepted+ci-readyuntilacceptedwas removed and re-added at 18:29. The poller then removedci-pendingbefore addingci-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.
--
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/publish
-
ci-ready
Difficulty 1/5 Under an hour Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
-
ci-failed
Difficulty 1/5 Under an hour Newbie friendliness 1/100
-
ci-ready
Difficulty 1/5 Under an hour Newbie friendliness 20/100
-
accepted ci-ready
Difficulty 1/5 Under an hour Newbie friendliness 15/100
All issues in getsentry/publish
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
w3develops/w3Develops#560 ·
-
Request: Nitro IconOpennew icon permissions in review
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
simple-icons/simple-icons#15196 ·
Maintainers usually reply within 1 day
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
rootsiemen/loophole#98 ·
Maintainers usually reply within 1 day
-
fix(python): --check-overrides is discarded and the CLI then tells you to use itPossibly taken @akshad-exe claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OWASP/cve-lite-cli#1863 · 5 comments · 1 reaction ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
LadybirdBrowser/ladybird#16233 ·
Maintainers usually reply within 1 day