@@ -422,7 +422,7 @@ public void testPackageBoundaryError_externalRepository_boundary() throws Except
422422 .build ());
423423 scratch .file ("BUILD" , "cc_library(name = 'cclib'," , " srcs = ['r/my_sub_lib.h'])" );
424424 invalidatePackages (
425- /*alsoConfigs=*/ false ); // Repository shuffling messes with toolchain labels.
425+ /* alsoConfigs= */ false ); // Repository shuffling messes with toolchain labels.
426426 reporter .removeHandler (failFastHandler );
427427 getConfiguredTarget ("//:cclib" );
428428 assertContainsEvent (
@@ -444,7 +444,7 @@ public void testPackageBoundaryError_externalRepository_entirelyInside() throws
444444 scratch .overwriteFile (
445445 "MODULE.bazel" , "bazel_dep(name = 'r')" , "local_path_override(module_name='r', path='/r')" );
446446 invalidatePackages (
447- /*alsoConfigs=*/ false ); // Repository shuffling messes with toolchain labels.
447+ /* alsoConfigs= */ false ); // Repository shuffling messes with toolchain labels.
448448 reporter .removeHandler (failFastHandler );
449449 getConfiguredTarget ("@@r+//:cclib" );
450450 assertContainsEvent (
@@ -733,7 +733,6 @@ public void testCreateStarlarkActionArgumentsWithUnusedInputsList() throws Excep
733733
734734 @ Test
735735 public void testCreateStarlarkActionArgumentsWithResourceSet_success () throws Exception {
736- setBuildLanguageOptions ("--experimental_action_resource_set" );
737736 StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
738737 setRuleContext (ruleContext );
739738
@@ -759,8 +758,7 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_success() throws Ex
759758 }
760759
761760 @ Test
762- public void testCreateStarlarkActionArgumentsWithResourceSet_flagDisabled () throws Exception {
763- setBuildLanguageOptions ("--noexperimental_action_resource_set" );
761+ public void testCreateStarlarkActionArgumentsWithResourceSet_noneResourceSet () throws Exception {
764762 StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
765763 setRuleContext (ruleContext );
766764
@@ -772,7 +770,7 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_flagDisabled() thro
772770 "ruleContext.actions.run(" ,
773771 " inputs = ruleContext.files.srcs," ,
774772 " outputs = ruleContext.files.srcs," ,
775- " resource_set = get_resources ," ,
773+ " resource_set = None ," ,
776774 " executable = 'executable')" );
777775 StarlarkAction action =
778776 (StarlarkAction )
@@ -785,7 +783,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_flagDisabled() thro
785783
786784 @ Test
787785 public void testCreateStarlarkActionArgumentsWithResourceSet_lambdaForbidden () throws Exception {
788- setBuildLanguageOptions ("--experimental_action_resource_set" );
789786 StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
790787 setRuleContext (ruleContext );
791788
@@ -806,7 +803,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_lambdaForbidden() t
806803
807804 @ Test
808805 public void testCreateStarlarkActionArgumentsWithResourceSet_illegalResource () throws Exception {
809- setBuildLanguageOptions ("--experimental_action_resource_set" );
810806 StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
811807 setRuleContext (ruleContext );
812808
@@ -832,7 +828,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_illegalResource() t
832828
833829 @ Test
834830 public void testCreateStarlarkActionArgumentsWithResourceSet_defaultValue () throws Exception {
835- setBuildLanguageOptions ("--experimental_action_resource_set" );
836831 StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
837832 setRuleContext (ruleContext );
838833
@@ -855,7 +850,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_defaultValue() thro
855850
856851 @ Test
857852 public void testCreateStarlarkActionArgumentsWithResourceSet_intDict () throws Exception {
858- setBuildLanguageOptions ("--experimental_action_resource_set" );
859853 StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
860854 setRuleContext (ruleContext );
861855
@@ -878,7 +872,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_intDict() throws Ex
878872
879873 @ Test
880874 public void testCreateStarlarkActionArgumentsWithResourceSet_notDict () throws Exception {
881- setBuildLanguageOptions ("--experimental_action_resource_set" );
882875 StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
883876 setRuleContext (ruleContext );
884877
@@ -904,7 +897,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_notDict() throws Ex
904897
905898 @ Test
906899 public void testCreateStarlarkActionArgumentsWithResourceSet_wrongDict () throws Exception {
907- setBuildLanguageOptions ("--experimental_action_resource_set" );
908900 StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
909901 setRuleContext (ruleContext );
910902
@@ -931,7 +923,6 @@ public void testCreateStarlarkActionArgumentsWithResourceSet_wrongDict() throws
931923 @ Test
932924 public void testCreateStarlarkActionArgumentsWithResourceSet_incorrectSignature ()
933925 throws Exception {
934- setBuildLanguageOptions ("--experimental_action_resource_set" );
935926 StarlarkRuleContext ruleContext = createRuleContext ("//foo:foo" );
936927 setRuleContext (ruleContext );
937928
@@ -1159,7 +1150,6 @@ public void testDeriveTreeArtifactNextToSibling() throws Exception {
11591150 assertThat (artifact .isTreeArtifact ()).isTrue ();
11601151 }
11611152
1162-
11631153 @ Test
11641154 public void testParamFileSuffix () throws Exception {
11651155 setRuleContext (createRuleContext ("//foo:foo" ));
@@ -1750,7 +1740,7 @@ def _impl(ctx):
17501740 "MODULE.bazel" , "bazel_dep(name='r')" , "local_path_override(module_name='r', path='/r')" );
17511741
17521742 invalidatePackages (
1753- /*alsoConfigs=*/ false ); // Repository shuffling messes with toolchain labels.
1743+ /* alsoConfigs= */ false ); // Repository shuffling messes with toolchain labels.
17541744 setRuleContext (createRuleContext ("@@r+//a:r" ));
17551745 Label depLabel = (Label ) ev .eval ("ruleContext.attr.internal_dep.label" );
17561746 assertThat (depLabel ).isEqualTo (Label .parseCanonical ("//:dep" ));
@@ -1761,7 +1751,7 @@ public void testExternalWorkspaceLoad() throws Exception {
17611751 // RepositoryDelegatorFunction deletes and creates symlink for the repository and as such is not
17621752 // safe to execute in parallel. Disable checks with package loader to avoid parallel
17631753 // evaluations.
1764- initializeSkyframeExecutor (/*doPackageLoadingChecks=*/ false );
1754+ initializeSkyframeExecutor (/* doPackageLoadingChecks= */ false );
17651755 setBuildLanguageOptions ("--enable_workspace" );
17661756 scratch .file (
17671757 "/r1/BUILD" ,
@@ -1802,7 +1792,7 @@ def other_macro(name, path):
18021792 .build ());
18031793
18041794 invalidatePackages (
1805- /*alsoConfigs=*/ false ); // Repository shuffling messes with toolchain labels.
1795+ /* alsoConfigs= */ false ); // Repository shuffling messes with toolchain labels.
18061796 assertThat (getConfiguredTarget ("@r1//:test" )).isNotNull ();
18071797 }
18081798
@@ -1825,7 +1815,7 @@ public void testLoadBlockRepositoryRedefinition() throws Exception {
18251815 .build ());
18261816
18271817 invalidatePackages (
1828- /*alsoConfigs=*/ false ); // Repository shuffling messes with toolchain labels.
1818+ /* alsoConfigs= */ false ); // Repository shuffling messes with toolchain labels.
18291819 assertThat (
18301820 (List )
18311821 getConfiguredTargetAndData ("@foo//:baz" )
@@ -1846,7 +1836,7 @@ public void testLoadBlockRepositoryRedefinition() throws Exception {
18461836 .add ("local_repository(name = 'foo', path = '/baz')" )
18471837 .build ());
18481838
1849- invalidatePackages (/*alsoConfigs=*/ false ); // Repository shuffling messes with toolchains.
1839+ invalidatePackages (/* alsoConfigs= */ false ); // Repository shuffling messes with toolchains.
18501840 assertThrows (Exception .class , () -> createRuleContext ("@foo//:baz" ));
18511841 assertContainsEvent (
18521842 "Cannot redefine repository after any load statement in the WORKSPACE file "
0 commit comments