Skip to content

Commit

Permalink
Move no-op flag experimental_skyframe_prepare_analysis to graveyard.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 545655302
Change-Id: I1f549708a532465ce2e89940ecfe3a57530a1974
  • Loading branch information
meisterT authored and copybara-github committed Jul 5, 2023
1 parent 2bba03b commit 24a0325
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,6 @@ public class AnalysisOptions extends OptionsBase {
)
public long versionWindowForDirtyNodeGc;

@Option(
name = "experimental_skyframe_prepare_analysis",
deprecationWarning = "This flag is a no-op and will be deleted in a future release.",
defaultValue = "false",
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
effectTags = {OptionEffectTag.BAZEL_INTERNAL_CONFIGURATION},
help = "Deprecated. No-op.")
public boolean skyframePrepareAnalysis;

@Option(
name = "experimental_skyframe_cpu_heavy_skykeys_thread_pool_size",
defaultValue = "HOST_CPUS",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ public final class BazelRulesModule extends BlazeModule {
*/
@SuppressWarnings("deprecation") // These fields have no JavaDoc by design
public static class BuildGraveyardOptions extends OptionsBase {
@Option(
name = "experimental_skyframe_prepare_analysis",
deprecationWarning = "This flag is a no-op and will be deleted in a future release.",
defaultValue = "false",
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
effectTags = {OptionEffectTag.BAZEL_INTERNAL_CONFIGURATION},
help = "Deprecated. No-op.")
public boolean skyframePrepareAnalysis;

@Option(
name = "incompatible_use_platforms_repo_for_constraints",
defaultValue = "true",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1406,13 +1406,4 @@ public void testExistingRules() throws Exception {
update("//pkg:foo");
assertContainsEvent("DEBUG /workspace/pkg/BUILD:5:6: [\"foo\"]");
}

/** Runs the same test with the Skyframe-based analysis prep. */
@RunWith(JUnit4.class)
public static class WithSkyframePrepareAnalysis extends BuildViewTest {
@Override
protected FlagBuilder defaultFlags() {
return super.defaultFlags().with(Flag.SKYFRAME_PREPARE_ANALYSIS);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ public abstract class AnalysisTestCase extends FoundationTestCase {
public enum Flag {
// The --keep_going flag.
KEEP_GOING,
// The --skyframe_prepare_analysis flag.
SKYFRAME_PREPARE_ANALYSIS,
// Flags for visibility to default to public.
PUBLIC_VISIBILITY,
// Flags for CPU to work (be set to k8) in test mode.
Expand Down Expand Up @@ -418,7 +416,6 @@ protected AnalysisResult update(
// update --keep_going option if test requested it.
boolean keepGoing = flags.contains(Flag.KEEP_GOING);
boolean discardAnalysisCache = viewOptions.discardAnalysisCache;
viewOptions.skyframePrepareAnalysis = flags.contains(Flag.SKYFRAME_PREPARE_ANALYSIS);

PackageOptions packageOptions = optionsParser.getOptions(PackageOptions.class);
PathPackageLocator pathPackageLocator =
Expand Down

0 comments on commit 24a0325

Please sign in to comment.