Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return ListLoad Call AttributeLoad Str attr keyword NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Dict Str Dict Str ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Num ListLoad Str Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Num ListLoad Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Dict Str Dict Str ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Num ListLoad Str Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Num ListLoad Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A os N/A time pants.backend.jvm.tasks.jvm_compile.zinc.zinc_compile ZincCompile pants.util.contextutil temporary_dir pants.util.dirutil safe_mkdir touch pants_test.pants_run_integration_test PantsRunIntegrationTest CacheCleanupIntegrationTest N/A PantsRunIntegrationTest N/A create_platform_args N/A N/A self version N/A N/A N/A N/A N/A N/A --jvm-platform-platforms={{'default': {{'target': '{version}'}}}} format version version --jvm-platform-default-platform=default N/A test_buildcache_leave_one N/A N/A self N/A N/A N/A Ensure that max-old of 1 removes all but one files N/A N/A temporary_dir cache_dir N/A N/A artifact_dir N/A N/A N/A os path join cache_dir N/A N/A ZincCompile stable_name testprojects.src.java.org.pantsbuild.testproject.unicode.main.main N/A N/A touch N/A N/A N/A os path join artifact_dir old_cache_test1 N/A N/A touch N/A N/A N/A os path join artifact_dir old_cache_test2 N/A N/A touch N/A N/A N/A os path join artifact_dir old_cache_test3 N/A N/A touch N/A N/A N/A os path join artifact_dir old_cache_test4 N/A N/A touch N/A N/A N/A os path join artifact_dir old_cache_test5 N/A config N/A cache.compile.zinc N/A write_to N/A cache_dir N/A pants_run N/A N/A self run_pants N/A N/A N/A self create_platform_args 6 N/A compile.zinc testprojects/src/java/org/pantsbuild/testproject/unicode/main --cache-max-entries-per-target=1 config config N/A N/A N/A self assert_success pants_run N/A N/A N/A self assertEqual N/A len N/A N/A os listdir artifact_dir 1 N/A pants_run N/A N/A self run_pants N/A N/A N/A self create_platform_args 7 N/A compile.zinc testprojects/src/java/org/pantsbuild/testproject/unicode/main --cache-max-entries-per-target=1 config N/A N/A N/A self assert_success pants_run N/A N/A N/A self assertEqual N/A len N/A N/A os listdir artifact_dir 1 N/A test_buildcache_leave_none N/A N/A self N/A N/A N/A Ensure that max-old of zero removes all files

    This test should ensure that conditional doesn't change to the simpler test of if max_old since
    we need to handle zero as well.
     N/A N/A temporary_dir cache_dir N/A N/A artifact_dir N/A N/A N/A os path join cache_dir N/A N/A ZincCompile stable_name testprojects.src.java.org.pantsbuild.testproject.unicode.main.main N/A N/A touch N/A N/A N/A os path join artifact_dir old_cache_test1 N/A N/A touch N/A N/A N/A os path join artifact_dir old_cache_test2 N/A N/A touch N/A N/A N/A os path join artifact_dir old_cache_test3 N/A N/A touch N/A N/A N/A os path join artifact_dir old_cache_test4 N/A N/A touch N/A N/A N/A os path join artifact_dir old_cache_test5 N/A config N/A cache.compile.zinc N/A write_to N/A cache_dir N/A pants_run N/A N/A self run_pants N/A N/A N/A self create_platform_args 6 N/A compile.zinc testprojects/src/java/org/pantsbuild/testproject/unicode/main --cache-max-entries-per-target=0 config config N/A N/A N/A self assert_success pants_run N/A N/A N/A self assertEqual N/A len N/A N/A os listdir artifact_dir 6 N/A pants_run N/A N/A self run_pants N/A N/A N/A self create_platform_args 7 N/A compile.zinc testprojects/src/java/org/pantsbuild/testproject/unicode/main --cache-max-entries-per-target=0 config N/A N/A N/A self assert_success pants_run N/A N/A N/A self assertEqual N/A len N/A N/A os listdir artifact_dir 7 N/A test_workdir_stale_builds_cleanup N/A N/A self N/A N/A N/A Ensure that current and previous build result_dirs and the newest `--workdir-max-build-entries` number of dirs
    will be kept, and the rest will be purged.
     N/A N/A temporary_dir tmp_dir N/A N/A workdir N/A N/A N/A os path join tmp_dir .pants.d N/A pants_run N/A N/A self run_pants_with_workdir N/A compile export-classpath testprojects/src/java/org/pantsbuild/testproject/unicode/main workdir N/A N/A N/A self assert_success pants_run N/A classpath dist/export-classpath/testprojects.src.java.org.pantsbuild.testproject.unicode.main.main-0.jar N/A jar_path_in_pantsd N/A N/A N/A os path realpath classpath N/A target_dir_in_pantsd N/A N/A N/A os path dirname N/A N/A N/A os path dirname jar_path_in_pantsd N/A N/A safe_mkdir N/A N/A N/A os path join target_dir_in_pantsd old_cache_test1_dir N/A N/A safe_mkdir N/A N/A N/A os path join target_dir_in_pantsd old_cache_test2_dir N/A N/A safe_mkdir N/A N/A N/A os path join target_dir_in_pantsd old_cache_test3_dir N/A N/A N/A time sleep 1.1 N/A N/A safe_mkdir N/A N/A N/A os path join target_dir_in_pantsd old_cache_test4_dir N/A N/A safe_mkdir N/A N/A N/A os path join target_dir_in_pantsd old_cache_test5_dir N/A N/A N/A self assertTrue N/A N/A N/A os path exists N/A N/A N/A os path join target_dir_in_pantsd current N/A N/A N/A self assertEqual N/A len N/A N/A os listdir target_dir_in_pantsd 7 N/A max_entries_per_target 2 N/A pants_run_2 N/A N/A self run_pants_with_workdir N/A compile export-classpath testprojects/src/java/org/pantsbuild/testproject/unicode/main --compile-zinc-debug-symbols N/A N/A --workdir-max-build-entries={} format max_entries_per_target workdir N/A N/A N/A self assert_success pants_run_2 N/A N/A N/A self assertEqual N/A len N/A N/A os listdir target_dir_in_pantsd 5 N/A N/A N/A self assertTrue N/A N/A N/A os path exists N/A N/A N/A os path join target_dir_in_pantsd current N/A N/A N/A self assertTrue N/A N/A N/A os path exists N/A N/A N/A os path join target_dir_in_pantsd old_cache_test4_dir N/A N/A N/A self assertTrue N/A N/A N/A os path exists N/A N/A N/A os path join target_dir_in_pantsd old_cache_test5_dir N/A N/A N/A self assertFalse N/A N/A N/A os path exists N/A N/A N/A os path join target_dir_in_pantsd old_cache_test1_dir N/A N/A N/A self assertFalse N/A N/A N/A os path exists N/A N/A N/A os path join target_dir_in_pantsd old_cache_test2_dir N/A N/A N/A self assertFalse N/A N/A N/A os path exists N/A N/A N/A os path join target_dir_in_pantsd old_cache_test3_dir N/A N/A