Repository navigation
Look up the ros-apt-source version without the GitHub API - #895
Merged
christophebedard merged 2 commits intoNov 19, 2026
Merged
christophebedard merged 2 commits into
christophebedard merged 2 commits into
Conversation
The latest ros-apt-source version came from the GitHub REST API without a token. That is limited to 60 requests per hour per IP address, and runners share IP addresses, so the request often failed. The version was then empty and the download returned a 404 (ros-tooling#892). Get the version from the redirect of the release page instead, retry, and stop with a clear error if no version is found. Signed-off-by: HappySamuel <[email protected]>
HappySamuel
requested review from
christophebedard and
emersonknapp
and removed request for
a team
November 18, 2026 09:20
christophebedard
requested changes
Nov 19, 2026
Contributor
Author
|
Thanks for the review. I removed the version check and the test, so the change is now only the version lookup in src/setup-ros-ubuntu.ts (plus dist/). I also updated the description. |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: HappySamuel <[email protected]>
HappySamuel
force-pushed
the
fix/ros-apt-source-version-lookup
branch
from
November 19, 2026 02:15
8587bb8 to
22bd1c2
Compare
Member
|
Closing and re-opening to trigger CI |
christophebedard
approved these changes
Nov 19, 2026
christophebedard
left a comment
Member
There was a problem hiding this comment.
LGTM, thanks for the PR
1 of 2 tasks
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.
Fixes #892.
The latest
ros-apt-sourceversion came from the GitHub REST API without a token:Unauthenticated API requests are limited to 60 per hour per IP address, and GitHub-hosted runners share IP addresses, so the request often fails with a rate-limit error.
curl -sdoes not fail on that, and the empty substitution insideexportdoes not stop the script, so the version ends up empty and the download returns a 404 (.../releases/download//ros2-apt-source_.noble_all.deb).This change gets the version from the redirect of
https://github.com/ros-infrastructure/ros-apt-source/releases/latest(to.../releases/tag/<version>), which does not go through the REST API rate limit. Bothcurlcalls use--failand retries, and the script runs withset -eo pipefail, so a failed lookup stops the step instead of continuing to a 404.Tested:
npm run lint, andnpm run buildwithdist/checked in.ros2-apt-sourceandros2-testing-apt-source1.3.0 in cleanubuntu:jammyandubuntu:noblecontainers, andapt-cache policythen listspackages.ros.org.Generated-by: Claude Code (Claude Opus 5.5) was used to find the cause, write the fix, and draft this description. I reviewed the change and the results.
🤖 Generated with Claude Code