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-5045. Add rclone package for robot test #37

Merged
merged 2 commits into from
Dec 15, 2024

Conversation

ptlrs
Copy link
Contributor

@ptlrs ptlrs commented Dec 12, 2024

What changes were proposed in this pull request?

This PR adds the rclone tool needed for robot tests

What is the link to the Apache JIRA

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

Please replace this section with the link to the Apache JIRA)

How was this patch tested?

CI: https://github.com/ptlrs/ozone-docker-runner/actions/runs/12306659392
Manually built and ran the dev image

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @ptlrs for working on this.

Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated
@@ -58,6 +58,11 @@ RUN sudo python3 -m pip install --upgrade pip

COPY --from=go /go/bin/csc /usr/bin/csc

RUN dnf install -y unzip \
&& curl https://rclone.org/install.sh | sudo bash \
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather re-implement download and extraction, instead of relying on a remote script that needs to be run as root.

Checksums are also available, see https://rclone.org/release_signing/

Copy link
Contributor Author

@ptlrs ptlrs Dec 13, 2024

Choose a reason for hiding this comment

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

I am now using the latest rpm packages available from https://downloads.rclone.org/?sort=time&order=desc.
This helps to test with newer rclone packages as they are released.

Is this approach ok or is the preferred approach still to pin the package version and verify the checksums before using them? I can update the changes to use this approach if it is preferred.

@ptlrs ptlrs requested a review from adoroszlai December 13, 2024 18:58
Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @ptlrs for updating the patch, LGTM.

@adoroszlai adoroszlai merged commit 6c88cfc into apache:master Dec 15, 2024
1 check passed
adoroszlai pushed a commit that referenced this pull request Dec 16, 2024
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