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

Implement purge/--pre-cleanup option #86

Merged
merged 3 commits into from
Apr 12, 2024
Merged

Implement purge/--pre-cleanup option #86

merged 3 commits into from
Apr 12, 2024

Conversation

j-rivero
Copy link
Contributor

Add a --pre-clean option that removes any existing gzdev installation from the system before proceeding with the next actions.

Signed-off-by: Jose Luis Rivero <[email protected]>
@j-rivero j-rivero changed the title Implement --pre-cleaup option Implement --pre-cleanup option Apr 10, 2024
Signed-off-by: Jose Luis Rivero <[email protected]>
Signed-off-by: Jose Luis Rivero <[email protected]>
@j-rivero j-rivero changed the title Implement --pre-cleanup option Implement purge/--pre-cleanup option Apr 10, 2024
@j-rivero
Copy link
Contributor Author

Tested:

Although failing due to problems with Noble python packages, the relevant log seems fine:

#23 [19/51] RUN git clone https://github.com/gazebo-tooling/gzdev -b jrivero/precleanup_purge /home/jenkins/workspace/_test_gz_math-ci-gz-math7-noble-amd64/gzdev
#23 0.358 Cloning into '/home/jenkins/workspace/_test_gz_math-ci-gz-math7-noble-amd64/gzdev'...
#23 DONE 1.1s

#24 [20/51] RUN if [ -n  ]; then         git -C /home/jenkins/workspace/_test_gz_math-ci-gz-math7-noble-amd64/gzdev fetch origin  || true;         git -C /home/jenkins/workspace/_test_gz_math-ci-gz-math7-noble-amd64/gzdev checkout  || true;     fi || true
#24 0.693 Your branch is up to date with 'origin/jrivero/precleanup_purge'.
#24 DONE 0.7s

#25 [21/51] RUN git -C /home/jenkins/workspace/_test_gz_math-ci-gz-math7-noble-amd64/gzdev branch
#25 0.294 * jrivero/precleanup_purge
#25 DONE 0.3s

#26 [22/51] RUN /home/jenkins/workspace/_test_gz_math-ci-gz-math7-noble-amd64/gzdev/gzdev.py repository purge

#26 0.396 Removed: /etc/apt/sources.list.d/_gzdev_osrf_stable.list
#26 0.396 Removed: /etc/apt/sources.list.d/_gzdev_osrf_prerelease.list
#26 0.396 Removed: /usr/share/keyrings/_gzdev_osrf_stable.gpg
#26 0.396 Removed: /usr/share/keyrings/_gzdev_osrf_prerelease.gpg
#26 DONE 0.5s

#27 [23/51] RUN /home/jenkins/workspace/_test_gz_math-ci-gz-math7-noble-amd64/gzdev/gzdev.py repository enable --project=gz-math7 --force-linux-distro=noble || ( git -C /home/jenkins/workspace/_test_gz_math-ci-gz-math7-noble-amd64/gzdev pull origin jrivero/precleanup_purge &&     if [ -n  ]; then git -C /home/jenkins/workspace/_test_gz_math-ci-gz-math7-noble-amd64/gzdev checkout ; fi || true &&     /home/jenkins/workspace/_test_gz_math-ci-gz-math7-noble-amd64/gzdev/gzdev.py repository enable --project=gz-math7 --force-linux-distro=noble )
#27 0.449 Hit:1 http://packages.osrfoundation.org/gazebo/ubuntu-stable noble InRelease
#27 0.593 Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease
#27 0.666 Hit:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
#27 0.703 Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease

#27 0.737 Hit:5 http://archive.ubuntu.com/ubuntu noble-backports InRelease
#27 0.799 Reading package lists...
#27 1.549 Get:1 http://packages.osrfoundation.org/gazebo/ubuntu-prerelease noble InRelease [4252 B]
#27 1.554 Hit:2 http://packages.osrfoundation.org/gazebo/ubuntu-stable noble InRelease
#27 1.594 Get:3 http://packages.osrfoundation.org/gazebo/ubuntu-prerelease noble/main amd64 Packages [39.6 kB]
#27 1.685 Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
#27 1.692 Hit:5 http://archive.ubuntu.com/ubuntu noble InRelease
#27 1.769 Hit:6 http://archive.ubuntu.com/ubuntu noble-updates InRelease
#27 1.846 Hit:7 http://archive.ubuntu.com/ubuntu noble-backports InRelease
#27 1.895 Fetched 43.9 kB in 0s (123 kB/s)

#27 1.895 Reading package lists...
#27 2.610 
#27 2.610 Invoking 'apt-get update'
#27 2.610 
#27 2.610 
#27 2.610 Invoking 'apt-get update'
#27 2.610 
#27 DONE 2.7s

@j-rivero j-rivero merged commit badb80c into master Apr 12, 2024
6 checks passed
@j-rivero j-rivero deleted the jrivero/precleanup branch April 12, 2024 16:51
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