Skip to content

refactor: Migrate java-in-srcjar build-failure test to Bazel#1851

Merged
PawelLipski merged 1 commit into
masterfrom
refactor/java-in-src-jar-as-bazel-test
Jul 8, 2026
Merged

refactor: Migrate java-in-srcjar build-failure test to Bazel#1851
PawelLipski merged 1 commit into
masterfrom
refactor/java-in-src-jar-as-bazel-test

Conversation

@PawelLipski

@PawelLipski PawelLipski commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Tree of downstream PRs as of 2026-07-08

Summary

Migrates the "java sources in a source jar while expect_java_output = False" failure fixture from test_expect_failure/java_in_src_jar_when_disabled into test/java_in_src_jar, driven by expect_build_failure_test instead of the test_scala_library_expect_failure_on_java_in_src_jar_when_disabled case in test/shell/test_scala_library.sh.

Test plan

  • bazel test //test/java_in_src_jar:java_in_src_jar_when_disabled_build_test

@PawelLipski PawelLipski changed the base branch from refactor/jmh-reports-failure-as-bazel-test to master July 8, 2026 16:24
Comment thread test/java_in_src_jar/BUILD Outdated
Move the "java sources in a source jar while expect_java_output = False"
failure fixture from test_expect_failure/java_in_src_jar_when_disabled into
test/java_in_src_jar, driven by expect_build_failure_test instead of the
test_scala_library_expect_failure_on_java_in_src_jar_when_disabled case in
test/shell/test_scala_library.sh.

The source jar is now produced by a genrule (zipping a plain-text JavaSource.java
via @bazel_tools//tools/zip:zipper) rather than committing a binary .srcjar.
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.

2 participants