Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gazebodistro downstream library topological ordering #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

methylDragon
Copy link
Contributor

From: gazebo-tooling/release-tools#710

Description

This package clones gazebodistro in a temp directory, and uses it to calculate information about the LATEST version of downstream packages, including:

  • Generating valid bump phases via topological ordering, so downstream packages will always be merged AFTER upstream ones
  • Generating a list of all downstream, (explicit) dependants of any participant libraries

Usage

./gazebodistro_downstream_parser "<lib>'

Alternatively, do it with semicolon delimiters! (Making sure to use quotes)
./gazebodistro_downstream_parser "<lib_1>;<lib_2>;...'

Example Invocation

methyldragon@methyldragon-ThinkPad-T480:~/Desktop/gazebodistro$ ./gazebodistro_downstream_parser.py "ign-rendering;ign-launch"
PARSING TARGETS: ['ign-rendering', 'ign-launch']
Cloning into 'gazebodistro'...
remote: Enumerating objects: 1562, done.
remote: Counting objects: 100% (552/552), done.
remote: Compressing objects: 100% (376/376), done.
remote: Total 1562 (delta 402), reused 235 (delta 170), pack-reused 1010
Receiving objects: 100% (1562/1562), 234.45 KiB | 1.67 MiB/s, done.
Resolving deltas: 100% (998/998), done.

=== EXPLICIT DEPENDANTS ===
All dict values are dependants of their keys!

{'ign-gazebo': ['ign-launch'],
 'ign-gui': ['ign-gazebo', 'ign-launch'],
 'ign-launch': [],
 'ign-rendering': ['ign-gazebo', 'ign-gui', 'ign-launch', 'ign-sensors'],
 'ign-sensors': ['ign-gazebo', 'ign-launch']}

=== TOPOLOGICALLY ORDERED MERGE WAVES ===
(Merge from highest number to lowest number!)

4 ['ign-rendering']
3 ['ign-sensors', 'ign-gui']
2 ['ign-gazebo']
1 ['ign-launch']

@methylDragon methylDragon requested a review from j-rivero as a code owner April 29, 2022 23:00
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.

1 participant