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-11925. Fix deploy step in Release Manager guide #109

Draft
wants to merge 1 commit into
base: HDDS-9225-website-v2
Choose a base branch
from

Conversation

adoroszlai
Copy link
Contributor

@adoroszlai adoroszlai commented Dec 13, 2024

What changes were proposed in this pull request?

mvn deploy rebuilds the project, as it executes all phases of the default lifecycle up to deploy. Not only is it unnecessary, it causes jars to be different between Maven repo and binary tarball.

mvn deploy:deploy just executes Maven Deploy Plugin's deploy task, which is to upload artifacts to the remote repository.

Flags -Psign -DskipTests -Dbuildhelper.skipAttach can be removed, since they are specific to other plugins, which would (before this change) be executed in various lifecycle phases.

Skipping :ozone-dist seems to be unnecessary, too. I don't see why we should not include it in the Maven repo.

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

How was this patch tested?

Will be tested during next release. (Tested similar change in Ratis, see apache/ratis#1188.)

@adoroszlai adoroszlai self-assigned this Dec 13, 2024
@github-actions github-actions bot added the website-v2 Tasks for the new ozone website targeting the HDDS-9225-website-v2 branch label Dec 13, 2024
@adoroszlai adoroszlai requested a review from errose28 December 13, 2024 13:24
@errose28
Copy link
Contributor

Thanks for looking into this @adoroszlai. I'm also not sure why ozone-dist was skipped originally. Maybe this was an attempt to re-use those artifacts from the original build?

Is there an extra verification step we can add to the release guide to make sure something like this gets caught during the release cycle? For example if some part of the original build is accidentally cleaned and the mvn deploy:deploy uploads partial artifacts. Maybe after uploading to nexus we can have the manager download the artifacts from both sources and check if they match.

@adoroszlai adoroszlai marked this pull request as draft December 16, 2024 12:07
@errose28 errose28 added the docs Changes updating documentation on the website label Dec 16, 2024
@adoroszlai
Copy link
Contributor Author

Sorry, it turns out that deploy:deploy is not enough in itself. I assumed it would deploy artifacts from local build/repo to remote one. It works fine for modules with packaging=pom, but fails for other types of packaging (jar, in our case). I will need to further refine the steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Changes updating documentation on the website website-v2 Tasks for the new ozone website targeting the HDDS-9225-website-v2 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants