| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Amp-Thread-ID: https://ampcode.com/threads/T-019f8c03-1a8e-72d0-9f9e-905bf7e8a190 Co-authored-by: Thomas Honeyman <admin@thomashoneyman.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019f8c03-1a8e-72d0-9f9e-905bf7e8a190 Co-authored-by: Thomas Honeyman <admin@thomashoneyman.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019f8c03-1a8e-72d0-9f9e-905bf7e8a190 Co-authored-by: Thomas Honeyman <admin@thomashoneyman.com>
| Back | FazBrowse Home | New Git URL |
I spent some time thinking about #741, and I think we're still missing a couple things that will make the GitHub action reliable. Namely, this PR:
This PR is limited to the registry server, API, schema, and tests. It does not implement the GitHub Action or any Spago changes; I have some ideas about how we might want to build that, but I don't think it should live in this repo, and it should probably be built on purescript-github-actions-toolkit.
Publish duplicate detection and insertion now happen in one SQLite IMMEDIATE transaction. Acquiring the write lock before the lookup prevents concurrent requests from both observing no existing job and inserting separate jobs.
For the same package name and version:
Publish submission responses contain jobId and a disposition, which is one of:
Completed publish jobs expose a successful terminal disposition of published or already-published. Failed jobs expose a structured error with a job-failed or job-timeout code and a message.
I made some efforts to preserve compatibility (API compatibility, not library compatibility) with older clietns:
The intentional behavior change is that an equivalent already-published request succeeds with a machine-readable disposition instead of terminating as a failed job with free-text log output.