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

examples: bump Bazel to 7.2.1 #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

albertocavalcante
Copy link
Owner

Disable Bzlmod and bump .bazelversion to 7.2.1.

@albertocavalcante
Copy link
Owner Author

Error

JUnit4 Test Runner
..E......
Time: 10.3[31](https://github.com/albertocavalcante/rules_antlr/actions/runs/10200006920/job/28218459071?pr=11#step:7:32)
There was 1 failure:
1) alwaysLoadJavaDependencies(org.antlr.bazel.RepositoriesTest)
java.lang.AssertionError: $TEST_TMPDIR defined: output root default is '/home/runner/.cache/bazel/_bazel_runner/4ba64efee4ef57bb659ae36c7c1b8f28/sandbox/linux-sandbox/29/execroot/rules_antlr/_tmp/c15d577ce8a83780845283eb102f6113' and max_idle_secs default is '15'.
Loading: 
Loading: 0 packages loaded
Analyzing: 5 targets (2 packages loaded, 0 targets configured)
INFO: Repository rules_java instantiated at:
  /DEFAULT.WORKSPACE.SUFFIX:429:6: in <toplevel>
  /home/runner/.cache/bazel/_bazel_runner/4ba64efee4ef57bb659ae36c7c1b8f28/sandbox/linux-sandbox/29/execroot/rules_antlr/_tmp/c15d577ce8a83780845283eb102f6113/_bazel_runner/f4d77359fef1a41cc56ec8e08d2d457d/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule http_archive defined at:
  /home/runner/.cache/bazel/_bazel_runner/4ba64efee4ef57bb659ae36c7c1b8f28/sandbox/linux-sandbox/29/execroot/rules_antlr/_tmp/c15d577ce8a83780845283eb102f6113/_bazel_runner/f4d77359fef1a41cc56ec8e08d2d457d/external/bazel_tools/tools/build_defs/repo/http.bzl:355:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'rules_java':
   Traceback (most recent call last):
	File "/home/runner/.cache/bazel/_bazel_runner/4ba64efee4ef57bb659ae36c7c1b8f28/sandbox/linux-sandbox/29/execroot/rules_antlr/_tmp/c15d577ce8a83780845283eb102f6113/_bazel_runner/f4d77359fef1a41cc56ec8e08d2d457d/external/bazel_tools/tools/build_defs/repo/http.bzl", line 125, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: /home/runner/.cache/bazel/_bazel_runner/cache/repos/v1/content_addressable/sha256/bc81f1ba47ef5cc68ad[32](https://github.com/albertocavalcante/rules_antlr/actions/runs/10200006920/job/28218459071?pr=11#step:7:33)225c3d0e70b8c6f6077663835438da8d57[33](https://github.com/albertocavalcante/rules_antlr/actions/runs/10200006920/job/28218459071?pr=11#step:7:34)f917598 (Read-only file system)
ERROR: /DEFAULT.WORKSPACE.SUFFIX:429:6: fetching http_archive rule //external:rules_java: Traceback (most recent call last):
	File "/home/runner/.cache/bazel/_bazel_runner/4ba64efee4ef57bb659ae36c7c1b8f28/sandbox/linux-sandbox/29/execroot/rules_antlr/_tmp/c15d577ce8a83780845283eb102f6113/_bazel_runner/f4d77359fef1a41cc56ec8e08d2d457d/external/bazel_tools/tools/build_defs/repo/http.bzl", line 125, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: /home/runner/.cache/bazel/_bazel_runner/cache/repos/v1/content_addressable/sha256/bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598 (Read-only file system)
ERROR: /home/runner/.cache/bazel/_bazel_runner/4ba64efee4ef57bb659ae36c7c1b8f28/sandbox/linux-sandbox/29/execroot/rules_antlr/bazel-out/k8-fastbuild/bin/src/it/java/org/antlr/bazel/RepositoriesTest.runfiles/rules_antlr/external/examples/antlr2/Cpp/src/main/antlr2/BUILD.bazel:16:6: //antlr2/Cpp/src/main/antlr2:generated depends on @rules_antlr//src/main/java/org/antlr/bazel:bazel in repository @rules_antlr which failed to fetch. no such package '@rules_java//java': java.io.IOException: /home/runner/.cache/bazel/_bazel_runner/cache/repos/v1/content_addressable/sha256/bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598 (Read-only file system)
ERROR: Analysis of target '//antlr2/Cpp/src/main/antlr2:generated' failed; build aborted: Analysis failed
INFO: Elapsed time: 1.631s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (31 packages loaded, 10 targets configured)
FAILED: Build did NOT complete successfully (31 packages loaded, 10 targets configured)
 expected:<0> but was:<1>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:8[34](https://github.com/albertocavalcante/rules_antlr/actions/runs/10200006920/job/28218459071?pr=11#step:7:35))
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.antlr.bazel.RepositoriesTest.alwaysLoadJavaDependencies(RepositoriesTest.java:189)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:[36](https://github.com/albertocavalcante/rules_antlr/actions/runs/10200006920/job/28218459071?pr=11#step:7:37)3)
	at com.google.testing.junit.runner.internal.junit4.CancellableRequestFactory$CancellableRunner.run(CancellableRequestFactory.java:108)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:1[37](https://github.com/albertocavalcante/rules_antlr/actions/runs/10200006920/job/28218459071?pr=11#step:7:38))
	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
	at com.google.testing.junit.runner.junit4.JUnit4Runner.run(JUnit4Runner.java:116)
	at com.google.testing.junit.runner.BazelTestRunner.runTestsInSuite(BazelTestRunner.java:148)
	at com.google.testing.junit.runner.BazelTestRunner.main(BazelTestRunner.java:75)
FAILURES!!!
Tests run: 8,  Failures: 1
BazelTestRunner exiting with a return value of 1
JVM shutdown hooks (if any) will run now.
The JVM will exit once they complete.
-- JVM shutdown starting at 2024-08-01 14:16:51 --
================================================================================
[93 / 95] 9 / 11 tests, 1 failed; Testing //src/it/java/org/antlr/bazel:Antlr4Test; 0s linux-sandbox ... (2 actions running)
[96 / 97] 10 / 11 tests, 1 failed; Testing //src/it/java/org/antlr/bazel:Antlr4Test; 5s linux-sandbox
INFO: Elapsed time: 37.6[41](https://github.com/albertocavalcante/rules_antlr/actions/runs/10200006920/job/28218459071?pr=11#step:7:42)s, Critical Path: 17.28s
INFO: 97 processes: 43 internal, 34 linux-sandbox, 20 worker.
INFO: Build completed, 1 test FAILED, 97 total actions
//src/it/java/org/antlr/bazel:Antlr2Test                                 PASSED in 1.0s
//src/it/java/org/antlr/bazel:Antlr3Test                                 PASSED in 5.5s
//src/it/java/org/antlr/bazel:Antlr4Test                                 PASSED in 6.3s
//src/test/java/org/antlr/bazel:CaseFormatTest                           PASSED in 0.5s
//src/test/java/org/antlr/bazel:DirectoryLayoutTest                      PASSED in 0.9s
//src/test/java/org/antlr/bazel:GrammarTest                              PASSED in 0.8s
//src/test/java/org/antlr/bazel:LanguageTest                             PASSED in 0.4s
//src/test/java/org/antlr/bazel:NamespaceTest                            PASSED in 0.4s
//src/test/java/org/antlr/bazel:StringsTest                              PASSED in 0.4s
//src/test/java/org/antlr/bazel:VersionTest                              PASSED in 0.4s
//src/it/java/org/antlr/bazel:RepositoriesTest                           FAILED in 10.8s
  /home/runner/.cache/bazel/_bazel_runner/4ba64efee4ef57bb659ae36c7c1b8f28/execroot/rules_antlr/bazel-out/k8-fastbuild/testlogs/src/it/java/org/antlr/bazel/RepositoriesTest/test.log
Executed 11 out of 11 tests: 10 tests pass and 1 fails locally.
INFO: Build completed, 1 test FAILED, 97 total actions
Error: Process completed with exit code 3.

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.

1 participant