A failed publish job permanently blocks retrying the same package version
Maintainers usually reply within 1 day
A pull request for this has already been merged.
- #794 by @thomashoneyman — merged
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- backend-api-design
Research direction
Start with the duplicate publish-job check in app/src/App/Server/Router.purs, around lines 82–89, and trace how job status and publish payload are used. The report identifies failed completed jobs as blocking retries, but leaves open whether they should be requeued, excluded from duplicate detection, or compared by payload; clarify the intended behavior before making a change. Done means a corrected publish can be processed and the unrelated historical issue reference is addressed if in scope.
Written by the indexing model from the issue text.
Description
I attempted to publish [email protected].
The original publish failed because its location used a monorepo subdir:
- Job:
ea66babf-2a67-43c1-9810-1c7f52d95952 - Logs: https://www.purescript.org/registry-dev/#/jobs/ea66babf-2a67-43c1-9810-1c7f52d95952
- Original location:
katsujukou/puppy, subdirectorypuppy-runtime
I moved the package to a standalone repository and updated the manifest:
- New location: https://github.com/katsujukou/purescript-puppy-runtime
- Ref:
v0.2.0
The standalone repository's main branch and v0.2.0 tag both point to the corrected package.
However, retrying spago publish -p puppy-runtime returns the original failed job and prints its old logs. The corrected location is never processed.
The API appears to identify duplicate publish jobs only by package name and version, including completed failed jobs:
https://github.com/purescript/registry-dev/blob/master/app/src/App/Server/Router.purs#L82-L89
Could the failed job be removed or requeued so that [email protected] can be published from the corrected location?
More generally, should completed failed jobs be excluded from duplicate detection, or should a changed payload be allowed to create a new job?
One additional detail: the failure message says “See issue #16”, but registry-dev issue #16 is closed and concerns a different historical topic.
- Dominant language
- PureScript
- Stars
- 95
- Forks
- 79
- Avg merge
- 16h 13m
- Merged PRs (30d)
- 14
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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 purescript/registry-dev
-
Difficulty 5/5 Over a week Newbie friendliness 22/100
purescript/registry-dev#804 · 9 comments ·
Maintainers usually reply within 1 day
-
Implement search and versioned Prim docs for the new PursuitMay be free again @thomashoneyman claimed this 109 days ago, and no pull request is open. Openpursuit
purescript/registry-dev#790 · 1 assignee ·
Maintainers usually reply within 1 day
-
Migrate Pursuit application to the monorepoMay be free again @thomashoneyman claimed this 109 days ago, and no pull request is open. Openpursuit
purescript/registry-dev#789 · 1 comment · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
Complete support for monorepos / subdir key and non-GitHub locationsMay be free again @thomashoneyman claimed this 109 days ago, and no pull request is open. Open
purescript/registry-dev#750 · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
Deprecate creation of legacy package setsMay be free again @mikesol claimed this 67 days ago, and no pull request is open. Open
purescript/registry-dev#745 · 5 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in purescript/registry-dev
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
milind-soni/OpenMausBot#5829 ·
Maintainers usually reply within 1 day