Skip to content

vinca-snapshot --rosdistro-ref: snapshot a ros/rosdistro git ref (e.g. a sync tag) - #161

Merged
traversaro merged 1 commit into
RoboStack:masterfrom
Tobias-Fischer:feat/snapshot-rosdistro-ref
Oct 7, 2026
Merged

traversaro merged 1 commit into
RoboStack:masterfrom
Tobias-Fischer:feat/snapshot-rosdistro-ref

Conversation

@Tobias-Fischer

Copy link
Copy Markdown
Contributor

The published rosdistro distribution cache (repo.ros2.org) follows rosdistro's default branch, so vinca-snapshot picks up releases that are still only in ros-testing. The ROS release team tags every sync to the main repositories in ros/rosdistro (<distro>/<YYYY-MM-DD>, e.g. jazzy/2026-10-05).

vinca-snapshot --rosdistro-ref <ref> snapshots that ref instead:

  • the distribution file of the ref replaces the one in the published cache (DistributionCache.update_distribution), which drops the package.xml entries whose release changed;
  • only those package.xml files are fetched again (lazy loading via get_cached_distribution(..., allow_lazy_load=True)), everything else is reused from the cache;
  • the snapshot header records the ref.

Without the option nothing changes.

Example: jazzy at jazzy/2026-10-05 vs. the current cache differs in 276 packages, e.g. controller_manager 4.48.1 (synced) vs. 4.49.0 (testing only); the refetched package.xml versions match the tag. A full jazzy snapshot with the option takes about 90 s.

Used by RoboStack's bot to open a snapshot PR whenever a distribution is synced.

🤖 Generated with Claude Code

…e.g. a sync tag)

The published distribution cache follows rosdistro's default branch, which includes
releases that are only in ros-testing. With a sync tag such as jazzy/2026-10-05 the
snapshot matches what was synced to the main repositories: the tag's distribution
file replaces the cached one, and only the package.xml files of changed releases are
fetched again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@traversaro traversaro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@traversaro
traversaro merged commit 837434e into RoboStack:master Oct 7, 2026
3 checks passed
Tobias-Fischer added a commit to Tobias-Fischer/robostack-distros that referenced this pull request Oct 7, 2026
…/vinca#161)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants