-
Notifications
You must be signed in to change notification settings - Fork 4k
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
java_test: Restore resource_strip_prefix attribute #18206
java_test: Restore resource_strip_prefix attribute #18206
Conversation
Fixes: bazelbuild#18205 Closes: bazelbuild#18206. Change-Id: I34b811d83bfc54f2dc8ef920aa43a7371b7064f1
e55000a
to
4ff6743
Compare
@hvadehra @meteorcloudy @fweikert Could you please review it? |
@comius @hvadehra Any chance this can be reviewed? @meteorcloudy @philwo I also don't understand, why gerrit build is still green on Bazel-CI, If I try to run gerrit tests on latest 7.x snapshot release: diff --git a/.bazelversion b/.bazelversion
index 5e3254243a..db63b31bdd 100644
--- a/.bazelversion
+++ b/.bazelversion
@@ -1 +1 @@
-6.1.2
+7.0.0-pre.20230420.2 I am getting this breakage, that this PR is fixing: $ bazelisk test //javatests/com/google/gerrit/server/rules/prolog:prolog_tests
[...]
ERROR: /home/davido/projects/gerrit/javatests/com/google/gerrit/server/rules/prolog/BUILD:3:12: //javatests/com/google/gerrit/server/rules/prolog:prolog_tests: no such attribute 'resource_strip_prefix' in 'java_test' rule
ERROR: Skipping '//javatests/com/google/gerrit/server/rules/prolog:prolog_tests': Error evaluating '//javatests/com/google/gerrit/server/rules/prolog:prolog_tests': error loading package 'javatests/com/google/gerrit/server/rules/prolog': Package 'javatests/com/google/gerrit/server/rules/prolog' contains errors
ERROR: Error evaluating '//javatests/com/google/gerrit/server/rules/prolog:prolog_tests': error loading package 'javatests/com/google/gerrit/server/rules/prolog': Package 'javatests/com/google/gerrit/server/rules/prolog' contains errors
INFO: Elapsed time: 17.624s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Couldn't start the build. Unable to run tests Or is there no Bazel-CI for gerrit project that is running from Bazel@HEAD, or for upcoming 7.x release? Update: See also this issue upstream: [2]. [1] https://buildkite.com/bazel/gerrit/builds/11463#0187daa3-f119-4282-9e41-83616937872f |
Gerrit was disabled in Bazel's downstream pipeline: https://github.com/bazelbuild/continuous-integration/blob/master/buildkite/bazelci.py#L203 |
Thanks for the pointer. I missed that issue. Looking at your latest comment:
Looking at the log this is exactly the breakage this PR is fixing: [1]. (04:15:46) ERROR: /var/lib/buildkite-agent/builds/bk-docker-pr70/bazel-downstream-projects/gerrit/javatests/com/google/gerrit/auth/BUILD:4:12: //javatests/com/google/gerrit/auth:auth_tests: no such attribute 'resource_strip_prefix' in 'java_test' rule
(04:15:46) ERROR: package contains errors: javatests/com/google/gerrit/auth
(04:15:46) ERROR: /var/lib/buildkite-agent/builds/bk-docker-pr70/bazel-downstream-projects/gerrit/javatests/com/google/gerrit/server/rules/BUILD:3:12: //javatests/com/google/gerrit/server/rules:prolog_tests: no such attribute 'resource_strip_prefix' in 'java_test' rule
(04:15:46) ERROR: package contains errors: javatests/com/google/gerrit/server/rules
(04:15:46) ERROR: /var/lib/buildkite-agent/builds/bk-docker-pr70/bazel-downstream-projects/gerrit/javatests/com/google/gerrit/server/ioutil/BUILD:3:12: //javatests/com/google/gerrit/server/ioutil:ioutil_tests: no such attribute 'resource_strip_prefix' in 'java_test' rule
(04:15:46) ERROR: package contains errors: javatests/com/google/gerrit/server/ioutil
(04:15:46) ERROR: /var/lib/buildkite-agent/builds/bk-docker-pr70/bazel-downstream-projects/gerrit/javatests/com/google/gerrit/server/BUILD:21:12: //javatests/com/google/gerrit/server:server_tests: no such attribute 'resource_strip_prefix' in 'java_test' rule
(04:15:46) ERROR: package contains errors: javatests/com/google/gerrit/server
(04:15:46) ERROR: Error evaluating '//...': error loading package 'javatests/com/google/gerrit/auth': Package 'javatests/com/google/gerrit/auth' contains errors
(04:15:46) INFO: Elapsed time: 0.530s
(04:15:46) INFO: 0 processes.
(04:15:46) ERROR: Build did NOT complete successfully
(04:15:46) ERROR: Couldn't start the build. Unable to run tests
(04:15:46) INFO: Build Event Protocol files produced successfully.
bazel test failed with exit code 1
🚨 Error: The command exited with status 1 @meteorcloudy What is your suggestion to address that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this, sorry for the trouble.
Fixes: bazelbuild#18205 Closes: bazelbuild#18206. Change-Id: I34b811d83bfc54f2dc8ef920aa43a7371b7064f1 Closes bazelbuild#18206. Change-Id: I34b811d83bfc54f2dc8ef920aa43a7371b7064f1 PiperOrigin-RevId: 528758180
Fixes: #18205
Closes: #18206.
Change-Id: I34b811d83bfc54f2dc8ef920aa43a7371b7064f1