Repository navigation
Packages: an update from older metadata gets its build from GitHub - #160
Merged
Merged
Conversation
The repository keeps the 3 newest builds, and the last step of publish-repo.sh deleted the rest, so a machine still on the metadata from before a publish asked for a file that was gone: Discover and GNOME Software failed the whole update with a 404. nginx now sends a request for a build the server no longer has to the same file in its GitHub release (linux/package/repo-nginx.conf), and www/ gets the new packages before the metadata that names them, with the old files deleted last. The Windows feed had the same race: the site's update.exe is replaced by every build of the same Chromium version, so a browser with the feed from before would refuse the new file's signature. release.yml now uploads update.exe to the GitHub release, and the feed links to that build's copy there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Discover failed a whole update with a 404: its metadata, from before a publish, named an oganesson build the repository had already deleted (it keeps the 3 newest).
linux/package/repo-nginx.conf, mounted byrepo-compose.yaml, with the GitHub repository filled in bypublish-repo.sh). The GitHub assets are byte-identical (tools/from-github.shchecks), so dnf and apt accept them against their metadata checksums.www/gets the new packages first, then the metadata, deleting old files last (--delete-after), so it never has metadata naming a missing package.release.ymluploads-update.exeto the GitHub release, andwindows/publish.shpointsappcast.xmlat that build's copy when the release has it (same SHA-256), else at the site's copy. The site's copy is overwritten by every build of the same Chromium version, so a feed read earlier failed the signature check.Tested: the nginx config in an
nginx:alpinecontainer. Current files return 200; stale.rpm/.debnames return 302 to GitHub, and the followed downloads match the release digests and the checksum a stale PackageKit cache asked for; unknown files return 404. The release lookup inpublish.shwas run against real releases.tools/hooks/pre-commitpasses. Not run: a fullpublish-repo.sh/windows/publish.sh(they publish live); WinSparkle following the GitHub redirect is untested (WinInet follows redirects by default).🤖 Generated with Claude Code