Skip to content

HBASE-26542 Apply a package to test protobuf files - #3924

Merged
ndimiduk merged 1 commit into
apache:masterfrom
ndimiduk:26542-test-protobuf-package
Dec 15, 2021
Merged

HBASE-26542 Apply a package to test protobuf files#3924
ndimiduk merged 1 commit into
apache:masterfrom
ndimiduk:26542-test-protobuf-package

Conversation

@ndimiduk

Copy link
Copy Markdown
Member

This is needed in a couple places in order to test that traces over the IPC layer carry correct
span names, and it's good hygiene anyway.

@ndimiduk

Copy link
Copy Markdown
MemberAuthor

@busbey any idea if test-patch will pick up on the protobuf change and run unit tests in affected modules?

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@ndimiduk

Copy link
Copy Markdown
MemberAuthor

To answer my own question, the answer appears to be, "sort of".

[ERROR] Failed to execute goal on project hbase-protocol-shaded: Could not resolve dependencies for project org.apache.hbase:hbase-protocol-shaded:jar:3.0.0-alpha-2-SNAPSHOT: Could not find artifact org.apache.hbase:hbase-annotations:jar:tests:3.0.0-alpha-2-SNAPSHOT in Nexus (http://repository.apache.org/snapshots)

@ndimiduk

Copy link
Copy Markdown
MemberAuthor

So there's a direct dependency, but test-patch runs mvn install from the module directory, and so maven cannot install the dependency?

[INFO] ---------------< org.apache.hbase:hbase-protocol-shaded >---------------
[INFO] Building Apache HBase - Shaded Protocol 3.0.0-alpha-2-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] [INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ hbase-protocol-shaded ---
[INFO] org.apache.hbase:hbase-protocol-shaded:jar:3.0.0-alpha-2-SNAPSHOT
[INFO] +- org.apache.hbase.thirdparty:hbase-shaded-protobuf:jar:3.5.1:compile
[INFO] +- junit:junit:jar:4.13:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] +- org.apache.hbase:hbase-annotations:test-jar:tests:3.0.0-alpha-2-SNAPSHOT:test
[INFO] \- org.apache.yetus:audience-annotations:jar:0.5.0:compile

@ndimiduk

Copy link
Copy Markdown
MemberAuthor

Comparing the output here vs. other PRs I have up, this one seems to be missing section "maven install: master". Maybe this needs added to hbaseprotoc_rebuild in hbase-personality.sh.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

2 similar comments
@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@ndimiduk

Copy link
Copy Markdown
MemberAuthor

This is better. It didn't run any tests impacted by the changed protoc files, but it didn't fail either.

@Apache9

Copy link
Copy Markdown
Contributor

So which PR is effected?

In the past we have a lot of PRs which changes the protobuf files but I haven't seen any problems on the pre commit run...

@ndimiduk

Copy link
Copy Markdown
MemberAuthor

The primary change on this PR (HBASE-26542) is a change to the test protoc files. pre-commit did not handle the change properly and errored out (see the initial jenkins build). I pushed a second commit here, the same commit as is on #3927 / HBASE-26549, which tweaks the hbaseprotoc plugin shipped in our personality file, in a way that I thought might fix the initial build failure.

This PR/HBASE-26542 is need in order to test inclusion of protoc service package names in HBASE-26521 .

@Apache9

Copy link
Copy Markdown
Contributor

What I mean is that, we used to change the protobuf files a lot in the past and IIRC we haven't seen any problems on the pre commit build.

So I want to know, in which PR you see a broken pre commit result because of the problem the described here? It seems that we do not run 'mvn install' first then the build will be broken?

Thanks.

@ndimiduk

Copy link
Copy Markdown
MemberAuthor

What I mean is that, we used to change the protobuf files a lot in the past and IIRC we haven't seen any problems on the pre commit build.

So I want to know, in which PR you see a broken pre commit result because of the problem the described here? It seems that we do not run 'mvn install' first then the build will be broken?

@Apache9 This same PR is where the problem was seen. See the results of the first CI checks for full details. The exact error I extracted from the build log and posted in this comment,

[ERROR] Failed to execute goal on project hbase-protocol-shaded: Could not resolve dependencies for project org.apache.hbase:hbase-protocol-shaded:jar:3.0.0-alpha-2-SNAPSHOT: Could not find artifact org.apache.hbase:hbase-annotations:jar:tests:3.0.0-alpha-2-SNAPSHOT in Nexus (http://repository.apache.org/snapshots)

One difference between this and previous changes to protobuf files may be that this PR is changing the test protobuf files, not the main ones.

@Apache9

Copy link
Copy Markdown
Contributor

OK, I guess the problem is that if we only touch the proto without changing any java files, we will not trigger a 'mvn install' first which could lead to the problem...

Let me take a look at the PR here, thanks @ndimiduk for explaining.

@ndimiduk
ndimidukforce-pushed the 26542-test-protobuf-package branch from 2867035 to 031b63fCompareDecember 14, 2021 17:23
@ndimiduk

Copy link
Copy Markdown
MemberAuthor

OK, I guess the problem is that if we only touch the proto without changing any java files, we will not trigger a 'mvn install' first which could lead to the problem...

Oh, of course! Yes, that makes perfect sense. Thanks for taking a look.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 24sDocker 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 _
+1 💚mvninstall3m 56smaster passed
_ Patch Compile Tests _
+1 💚mvninstall3m 51sthe patch passed
_ Other Tests _
+1 💚unit0m 46shbase-protocol-shaded in the patch passed.
10m 14s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3924/4/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile
GITHUB PR#3924
Optional Testsunit
unameLinux 9802e736f8e0 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 / 13f3b17
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3924/4/testReport/
Max. process+thread count78 (vs. ulimit of 30000)
modulesC: hbase-protocol-shaded U: hbase-protocol-shaded
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3924/4/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 31sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗prototool0m 0sprototool was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+1 💚mvninstall4m 41smaster passed
_ Patch Compile Tests _
+1 💚mvninstall4m 18sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hbaseprotoc1m 4sthe patch passed
_ Other Tests _
+1 💚asflicense0m 13sThe patch does not generate ASF License warnings.
13m 24s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3924/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#3924
Optional Testsdupname asflicense cc hbaseprotoc prototool
unameLinux f0c2633fde01 4.15.0-163-generic #171-Ubuntu SMP Fri Nov 5 11:55:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 13f3b17
Max. process+thread count65 (vs. ulimit of 30000)
modulesC: hbase-protocol-shaded U: hbase-protocol-shaded
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3924/4/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec7m 10sDocker 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 _
+1 💚mvninstall5m 52smaster passed
_ Patch Compile Tests _
+1 💚mvninstall5m 34sthe patch passed
_ Other Tests _
+1 💚unit1m 12shbase-protocol-shaded in the patch passed.
21m 6s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3924/4/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#3924
Optional Testsunit
unameLinux 6ddbd12fc09c 4.15.0-163-generic #171-Ubuntu SMP Fri Nov 5 11:55:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 13f3b17
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3924/4/testReport/
Max. process+thread count74 (vs. ulimit of 30000)
modulesC: hbase-protocol-shaded U: hbase-protocol-shaded
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3924/4/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

This is needed in a couple places in order to test that traces over the IPC layer carry correct
span names, and it's good hygiene anyway.
Signed-off-by: Duo Zhang <zhangduo@apache.org>
@ndimiduk
ndimidukforce-pushed the 26542-test-protobuf-package branch from 031b63f to 6865cbcCompareDecember 15, 2021 23:52
@ndimiduk
ndimiduk merged commit c93e457 into apache:masterDec 15, 2021
@ndimiduk
ndimiduk deleted the 26542-test-protobuf-package branch December 15, 2021 23:52
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.

3 participants

@ndimiduk@Apache-HBase@Apache9