Repository navigation
fix: look up the latest GitHub release among the 100 newest releases, not the 30 newest - #2048
Merged
lagergren merged 1 commit intoNov 21, 2026
Conversation
… not the 30 newest Part of redhat-developer#1961. A `github` download takes the newest release that matches its `prerelease` setting, among the releases that the GitHub API lists. The API lists 30 releases by default, so a repository which publishes many prereleases can push its latest release out of them. The installer then finds no release, and installs its fallback `url`, an older version, with only a line in its output. sysml-lsp is such a case: Open-MBEE/OpenSysML publishes a nightly prerelease almost every day, and its latest release, v0.12.1, is the 11th today (the 8th on Nov 13), so about 19 more nightly builds without a release would push it out, and the installer would install v0.9.1. The lookup now asks for 100 releases, the most that the API gives in one page. Test: `GitHubAssetFetcherTest` checks the URL of the lookup. It and the installer tests pass (29 tests).
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2048 +/- ##
==========================================
- Coverage 49.44% 49.42% -0.02%
==========================================
Files 813 813
Lines 33324 33325 +1
Branches 5191 5191
==========================================
- Hits 16478 16472 -6
- Misses 14272 14279 +7
Partials 2574 2574 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
@coderabbitai review |
Action not completed
|
Collaborator
Author
|
@coderabbitai review |
Action performed
|
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.
Part of #1961.
A
githubdownload takes the newest release that matches itsprereleasesetting, among the releases that the GitHub API lists. TheAPI lists 30 releases by default, so a repository which publishes many
prereleases can push its latest release out of them. The installer then
finds no release, and installs its fallback
url, an older version, withonly a line in its output. sysml-lsp is such a case: Open-MBEE/OpenSysML
publishes a nightly prerelease almost every day, and its latest release,
v0.12.1, is the 11th today (the 8th on Nov 13), so about 19 more nightly
builds without a release would push it out, and the installer would
install v0.9.1.
The lookup now asks for 100 releases, the most that the API gives in one
page.
Test:
GitHubAssetFetcherTestchecks the URL of the lookup. It and theinstaller tests pass (29 tests).