Skip to content

HBASE-24297 release scripts should be able to use an existing project clone - #1725

Closed
busbey wants to merge 2 commits into
apache:masterfrom
busbey:HBASE-24297
Closed

HBASE-24297 release scripts should be able to use an existing project clone#1725
busbey wants to merge 2 commits into
apache:masterfrom
busbey:HBASE-24297

Conversation

@busbey

Copy link
Copy Markdown
Contributor

Adds the ability to specify the remote git repo for the release scripts, including a local clone.

  • adds a optional -r [repo] arg
  • if the passed repo is on the local filesystem, creates a container mount
  • git clone operations consolidated into a function
  • when cloning a local repo configure git to share objects with the local repo instead of copying
  • when cloning a local repo in a container configure the clone to have a remote that will work back on the host.

@busbey

Copy link
Copy Markdown
ContributorAuthor

@mattf-apache mind taking a look?

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 29sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗shelldocs0m 1sShelldocs was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 21sMaven dependency ordering for branch
_ Patch Compile Tests _
+0 🆗mvndep0m 8sMaven dependency ordering for patch
-0 ⚠️shellcheck0m 3sThe patch generated 1 new + 4 unchanged - 0 fixed = 5 total (was 4)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
_ Other Tests _
+0 🆗asflicense0m 0sASF License check generated no output?
2m 6s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1725
Optional Testsdupname asflicense shellcheck shelldocs
unameLinux 72d599c81e71 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 15627bb
shellcheckhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/1/artifact/yetus-general-check/output/diff-patch-shellcheck.txt
Max. process+thread count48 (vs. ulimit of 12500)
modulesC: U:
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/1/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) shellcheck=0.4.6
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 29sDocker mode activated.
-0 ⚠️yetus0m 2sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 20sMaven dependency ordering for branch
_ Patch Compile Tests _
+0 🆗mvndep0m 7sMaven dependency ordering for patch
_ Other Tests _
2m 48s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1725
Optional Tests
unameLinux 8ef8be1757b8 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 15627bb
Max. process+thread count47 (vs. ulimit of 12500)
modulesC: U:
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/1/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 28sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 24sMaven dependency ordering for branch
_ Patch Compile Tests _
+0 🆗mvndep0m 7sMaven dependency ordering for patch
_ Other Tests _
2m 52s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/1/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#1725
Optional Tests
unameLinux af93b7c703d2 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 15627bb
Max. process+thread count47 (vs. ulimit of 12500)
modulesC: U:
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/1/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@busbey
busbey requested a review from saintstackMay 19, 2020 17:16

@saintstacksaintstack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

This is a new feature w/ nice cleanup of git reference. We want to be able to specify the git repo to speed stuff up?

Thanks Sean.

Comment threaddev-support/create-release/do-release-docker.sh

@ndimidukndimiduk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1 from me. some comment about maybe simplifying url sniffing. nice addition :)

Comment threaddev-support/create-release/do-release-docker.sh
Comment threaddev-support/create-release/release-util.sh Outdated
Comment threaddev-support/create-release/release-util.sh Outdated
Comment threaddev-support/create-release/release-util.sh
Comment threaddev-support/create-release/release-util.sh
Comment threaddev-support/create-release/release-util.sh
Comment threaddev-support/create-release/release-util.sh Outdated
Comment threaddev-support/create-release/release-util.sh
Comment threaddev-support/create-release/release-util.sh
@busbey

Copy link
Copy Markdown
ContributorAuthor

I think this last push has the nits you mentioned cleaned up @ndimiduk.

Y'all let me know if you want to review things more. Otherwise I'll merge when I get some time this weekend.

if [ -z "${PROJECT}" ] || [ "${PROJECT}" != "${PROJECT#/}" ]; then
error "Project name must be defined and not start with a '/'. PROJECT='${PROJECT}'"
fi
rm -rf "${PROJECT}"

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

I am a bit nervous here about malformed project names like "../.."

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 29sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗shelldocs0m 0sShelldocs was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+0 🆗mvndep0m 22sMaven dependency ordering for branch
_ Patch Compile Tests _
+0 🆗mvndep0m 8sMaven dependency ordering for patch
-0 ⚠️shellcheck0m 3sThe patch generated 1 new + 4 unchanged - 0 fixed = 5 total (was 4)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
_ Other Tests _
+0 🆗asflicense0m 0sASF License check generated no output?
1m 52s
SubsystemReport/Notes
DockerClient=19.03.9 Server=19.03.9 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1725
Optional Testsdupname asflicense shellcheck shelldocs
unameLinux 567374aacfb8 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / e1d7dc8
shellcheckhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/2/artifact/yetus-general-check/output/diff-patch-shellcheck.txt
Max. process+thread count50 (vs. ulimit of 12500)
modulesC: U:
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/2/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) shellcheck=0.4.6
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec3m 26sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 22sMaven dependency ordering for branch
_ Patch Compile Tests _
+0 🆗mvndep0m 7sMaven dependency ordering for patch
_ Other Tests _
4m 32s
SubsystemReport/Notes
DockerClient=19.03.9 Server=19.03.9 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/2/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#1725
Optional Tests
unameLinux d90c05b04a70 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / e1d7dc8
Max. process+thread count47 (vs. ulimit of 12500)
modulesC: U:
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/2/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec3m 35sDocker mode activated.
-0 ⚠️yetus0m 4sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+0 🆗mvndep0m 20sMaven dependency ordering for branch
-0 ⚠️patch0m 21sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+0 🆗mvndep0m 7sMaven dependency ordering for patch
_ Other Tests _
4m 41s
SubsystemReport/Notes
DockerClient=19.03.9 Server=19.03.9 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/2/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
Optional Tests
unameLinux 13f04b57a9ff 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / e1d7dc8
Max. process+thread count48 (vs. ulimit of 12500)
modulesC: U:
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1725/2/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

Sign up for freeto 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.

4 participants

@busbey@Apache-HBase@ndimiduk@saintstack