Skip to content

Commit c5ccb06

Browse files
comiuscopybara-github
authored andcommitted
Automated rollback of commit bc1e9d8.
*** Reason for rollback *** Probable culprit for b/252758923 Autopush for pod-batch flumes failing with CLIENT_VIOLATES_BUILD_HORIZON *** Original change description *** Rollforward of e96507b: Enable Starlark java_binary PiperOrigin-RevId: 480480926 Change-Id: Ib53d56f08c4442aa93b1013283b4d69e218c09c6
1 parent 1ab8498 commit c5ccb06

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/test/java/com/google/devtools/build/lib/rules/android/AndroidBuildViewTestCase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected void useConfiguration(ImmutableMap<String, Object> starlarkOptions, St
9595
ImmutableList.Builder<String> fullArgs = ImmutableList.builder();
9696
fullArgs.add("--incompatible_enable_android_toolchain_resolution");
9797
// Uncomment the below to get more info when tests fail because of toolchain resolution.
98-
// fullArgs.add("--toolchain_resolution_debug=tools/android:.*toolchain_type");
98+
// fullArgs.add("--toolchain_resolution_debug=tools/android:.*toolchain_type");
9999
boolean hasPlatform = false;
100100
for (String arg : args) {
101101
if (arg.startsWith("--android_sdk=")) {

src/test/java/com/google/devtools/build/lib/rules/java/JavaStarlarkApiTest.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -1615,14 +1615,12 @@ public void starlarkJavaToJavaBinaryAttributes() throws Exception {
16151615
" deps = [':mya'], runtime_deps = [':myb'])");
16161616
assertNoEvents();
16171617

1618-
setBuildLanguageOptions("--experimental_google_legacy_api");
16191618
// Test that all bottom jars are on the runtime classpath.
16201619
ConfiguredTarget binary = getConfiguredTarget("//foo:binary");
16211620
assertThat(
16221621
prettyArtifactNames(
16231622
binary
1624-
.get(JavaInfo.PROVIDER)
1625-
.getCompilationInfoProvider()
1623+
.getProvider(JavaRuntimeClasspathProvider.class)
16261624
.getRuntimeClasspath()
16271625
.getSet(Artifact.class)))
16281626
.containsAtLeast("foo/libjl_bottom_for_deps.jar", "foo/libjl_bottom_for_runtime_deps.jar");
@@ -1973,7 +1971,6 @@ public void javaBinary_propagatesDirectNativeLibrariesInJavaInfo() throws Except
19731971
"my_rule(name = 'r', dep = ':jl', cc_dep = ':ccl')",
19741972
"java_binary(name = 'binary', main_class = 'C', srcs = ['java/C.java'], deps = [':r'])");
19751973

1976-
setBuildLanguageOptions("--experimental_google_legacy_api");
19771974
ConfiguredTarget testTarget = getConfiguredTarget("//foo:binary");
19781975

19791976
TemplateExpansionAction action =
@@ -2221,7 +2218,6 @@ public void javaCommonCompileNeverlink() throws Exception {
22212218
" fragments = ['java']",
22222219
")");
22232220

2224-
setBuildLanguageOptions("--experimental_google_legacy_api");
22252221
ConfiguredTarget target = getConfiguredTarget("//java/test:plugin");
22262222
assertThat(
22272223
actionsTestUtil()

src/test/java/com/google/devtools/build/lib/skyframe/ConfigurationsForTargetsTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public void splitDeps() throws Exception {
351351
"java/a/BUILD",
352352
"cc_library(name = 'lib', srcs = ['lib.cc'])",
353353
"android_binary(name='a', manifest = 'AndroidManifest.xml', deps = [':lib'])");
354-
useConfiguration("--fat_apk_cpu=k8,armeabi-v7a", "--experimental_google_legacy_api");
354+
useConfiguration("--fat_apk_cpu=k8,armeabi-v7a");
355355
List<ConfiguredTarget> deps = getConfiguredDeps("//java/a:a", "deps");
356356
assertThat(deps).hasSize(2);
357357
ConfiguredTarget dep1 = deps.get(0);

0 commit comments

Comments
 (0)