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

HDDS-12100. Move CI dependency installer functions out of _lib.sh #7715

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

hadoop-ozone/dev-support/checks/_lib.sh contains functions to install dependencies required for running various CI checks (Hugo, SpotBugs, etc.). This file needs to be edited whenever we want to upgrade a dependency (e.g. HDDS-12098 to upgrade Hugo). Since _lib.sh is shared between several CI checks, all checks are triggered when the file is changed. However, upgrading Hugo affects only the check using Hugo, i.e. basic (docs). Furthermore, functions to install dependencies may need to be changed when bumping versions. E.g. Hugo artifact name is changed for newer versions.

This PR moves the functions that install various dependencies out of _lib.sh to separate shell scripts. selective_ci_checks.sh is updated to trigger checks if these new scripts are changed.

https://issues.apache.org/jira/browse/HDDS-12100

How was this patch tested?

CI:
https://github.com/adoroszlai/ozone/actions/runs/12843513823/job/35815551491#step:7:20
https://github.com/adoroszlai/ozone/actions/runs/12843513823/job/35815551681#step:7:20
https://github.com/adoroszlai/ozone/actions/runs/12843513823/job/35815551764#step:7:20
https://github.com/adoroszlai/ozone/actions/runs/12843513823/job/35815709161#step:6:22
https://github.com/adoroszlai/ozone/actions/runs/12843513823/job/35815709911#step:6:22

@adoroszlai adoroszlai added the CI label Jan 18, 2025
@adoroszlai adoroszlai self-assigned this Jan 18, 2025
@adoroszlai
Copy link
Contributor Author

@sarvekshayr can you please review?

Copy link
Contributor

@sarvekshayr sarvekshayr left a comment

Choose a reason for hiding this comment

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

Thank you @adoroszlai for the patch. All the functions required for installing various dependencies have been carefully moved to their respective shell scripts. The changes look good to me.

Copy link
Contributor

@dombizita dombizita left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @adoroszlai, I have a small question, otherwise it looks good to me!

@adoroszlai adoroszlai merged commit e2718dd into apache:master Jan 21, 2025
44 checks passed
@adoroszlai
Copy link
Contributor Author

Thanks @dombizita, @sarvekshayr for the review.

@adoroszlai adoroszlai deleted the HDDS-12100 branch January 21, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants