exec ${PAGER:-/usr/bin/less} "$0" || exit 1 Executing tests from //src/test/shell/bazel:python_version_test ----------------------------------------------------------------------------- INFO[python_version_test 2022-10-21 14:06:38 (+0000)] bazel binary is at /private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/bazel-out/darwin_arm64-fastbuild/bin/src/test/shell/bazel/python_version_test.runfiles/io_bazel/src/test/shell/bin testenv.sh: Using shared repositories from /Users/buildkite/bazeltest/external. testenv.sh: Using repository cache at /var/tmp/_bazel_buildkite/cache/repos/v1. testenv.sh: Using shared install base at /Users/buildkite/bazeltest/install_base. INFO[python_version_test 2022-10-21 14:06:38 (+0000)] setting up client in /private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7/workspace Tests for how the Python rules handle Python 2 vs Python 3 Fri Oct 21 14:06:39 UTC 2022 ** test_build_python_zip_works_with_workspace_runtime ************************** INFO[python_version_test 2022-10-21 14:06:49 (+0000)] Cleaning up workspace PASSED: test_build_python_zip_works_with_workspace_runtime Fri Oct 21 14:06:49 UTC 2022 ** test_can_access_runfiles **************************************************** $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. Loading: Loading: 0 packages loaded Analyzing: target //test:main (1 packages loaded, 0 targets configured) Analyzing: target //test:main (40 packages loaded, 391 targets configured) INFO: Analyzed target //test:main (41 packages loaded, 476 targets configured). INFO: Found 1 target... [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt Target //test:main up-to-date: bazel-bin/test/main INFO: Elapsed time: 1.929s, Critical Path: 0.02s INFO: 5 processes: 5 internal. INFO: Build completed successfully, 5 total actions $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. INFO[python_version_test 2022-10-21 14:06:52 (+0000)] Cleaning up workspace PASSED: test_can_access_runfiles Fri Oct 21 14:06:52 UTC 2022 ** test_can_build_same_target_for_both_versions_in_one_build ******************* $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. Loading: Loading: 0 packages loaded Analyzing: target //test:shbin (1 packages loaded, 0 targets configured) Analyzing: target //test:shbin (40 packages loaded, 569 targets configured) INFO: Analyzed target //test:shbin (41 packages loaded, 696 targets configured). INFO: Found 1 target... [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt Target //test:shbin up-to-date: bazel-bin/test/shbin INFO: Elapsed time: 2.176s, Critical Path: 0.03s INFO: 12 processes: 12 internal. INFO: Build completed successfully, 12 total actions $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. -- Test log: ----------------------------------------------------------- env: python2: No such file or directory ------------------------------------------------------------------------ test_can_build_same_target_for_both_versions_in_one_build FAILED: terminated because this command returned a non-zero status: /private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/bazel-out/darwin_arm64-fastbuild/bin/src/test/shell/bazel/python_version_test.runfiles/io_bazel/src/test/shell/bazel/python_version_test:416: in call to test_can_build_same_target_for_both_versions_in_one_build Tear down: INFO[python_version_test 2022-10-21 14:06:55 (+0000)] Cleaning up workspace FAILED: test_can_build_same_target_for_both_versions_in_one_build Fri Oct 21 14:06:55 UTC 2022 ** test_can_run_py_binaries **************************************************** -- Test log: ----------------------------------------------------------- $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. Loading: Loading: 0 packages loaded Analyzing: target //test:main2 (1 packages loaded, 0 targets configured) Analyzing: target //test:main2 (39 packages loaded, 388 targets configured) INFO: Analyzed target //test:main2 (40 packages loaded, 473 targets configured). INFO: Found 1 target... [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt Target //test:main2 up-to-date: bazel-bin/test/main2 INFO: Elapsed time: 2.101s, Critical Path: 0.01s INFO: 5 processes: 5 internal. INFO: Build completed successfully, 5 total actions INFO: Running command line: bazel-bin/test/main2 env: python2: No such file or directory ------------------------------------------------------------------------ test_can_run_py_binaries FAILED: bazel run failed. /private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/bazel-out/darwin_arm64-fastbuild/bin/src/test/shell/bazel/python_version_test.runfiles/io_bazel/src/test/shell/bazel/python_version_test:94: in call to test_can_run_py_binaries Tear down: INFO[python_version_test 2022-10-21 14:06:57 (+0000)] Cleaning up workspace FAILED: test_can_run_py_binaries Fri Oct 21 14:06:57 UTC 2022 ** test_default_output_root_is_bazel_bin *************************************** INFO[python_version_test 2022-10-21 14:06:58 (+0000)] Cleaning up workspace PASSED: test_default_output_root_is_bazel_bin Fri Oct 21 14:06:58 UTC 2022 ** test_genrule_can_have_different_version_pybins_as_tools ********************* $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. Loading: Loading: 0 packages loaded Analyzing: target //test:genrule_calling_pybin (1 packages loaded, 0 targets configured) Analyzing: target //test:genrule_calling_pybin (40 packages loaded, 227 targets configured) INFO: Analyzed target //test:genrule_calling_pybin (41 packages loaded, 273 targets configured). INFO: Found 1 target... [0 / 2] [Prepa] BazelWorkspaceStatusAction stable-status.txt ERROR: /private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7/workspace/test/BUILD:5:8: Executing genrule //test:genrule_calling_pybin failed: (Exit 127): bash failed: error executing command (from target //test:genrule_calling_pybin) /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/test/pybin > bazel-out/darwin_arm64-fastbuild/bin/test/out.txt' Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging env: python2: No such file or directory Target //test:genrule_calling_pybin failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 2.172s, Critical Path: 0.07s INFO: 6 processes: 6 internal. FAILED: Build did NOT complete successfully -- Test log: ----------------------------------------------------------- Using --incompatible_py3_is_default=false --incompatible_py2_outputs_are_suffixed=false ------------------------------------------------------------------------ test_genrule_can_have_different_version_pybins_as_tools FAILED: bazel build failed. /private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/bazel-out/darwin_arm64-fastbuild/bin/src/test/shell/bazel/python_version_test.runfiles/io_bazel/src/test/shell/bazel/python_version_test:403: in call to test_genrule_can_have_different_version_pybins_as_tools Tear down: INFO[python_version_test 2022-10-21 14:07:00 (+0000)] Cleaning up workspace FAILED: test_genrule_can_have_different_version_pybins_as_tools Fri Oct 21 14:07:01 UTC 2022 ** test_get_python_zip_file_via_output_group *********************************** INFO[python_version_test 2022-10-21 14:07:03 (+0000)] Cleaning up workspace PASSED: test_get_python_zip_file_via_output_group Fri Oct 21 14:07:03 UTC 2022 ** test_output_roots *********************************************************** INFO[python_version_test 2022-10-21 14:07:04 (+0000)] Cleaning up workspace PASSED: test_output_roots Fri Oct 21 14:07:04 UTC 2022 ** test_py_binary_with_autodetecting_toolchain_usable_as_tool ****************** $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. Loading: Loading: 0 packages loaded Analyzing: target //test:tooluser (1 packages loaded, 0 targets configured) Analyzing: target //test:tooluser (39 packages loaded, 388 targets configured) INFO: Analyzed target //test:tooluser (40 packages loaded, 474 targets configured). INFO: Found 1 target... [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt Target //test:tooluser up-to-date: bazel-bin/test/out.txt INFO: Elapsed time: 2.029s, Critical Path: 0.38s INFO: 6 processes: 5 internal, 1 processwrapper-sandbox. INFO: Build completed successfully, 6 total actions INFO[python_version_test 2022-10-21 14:07:06 (+0000)] Cleaning up workspace PASSED: test_py_binary_with_autodetecting_toolchain_usable_as_tool Fri Oct 21 14:07:07 UTC 2022 ** test_pybin_can_have_different_version_pybin_as_data_dep ********************* $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. Loading: Loading: 0 packages loaded Analyzing: 2 targets (1 packages loaded, 0 targets configured) Analyzing: 2 targets (40 packages loaded, 568 targets configured) INFO: Analyzed 2 targets (41 packages loaded, 696 targets configured). INFO: Found 2 targets... WARNING: cleared convenience symlink(s) bazel-bin, bazel-testlogs, bazel-genfiles because their destinations would be ambiguous [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt INFO: Elapsed time: 1.951s, Critical Path: 0.02s INFO: 15 processes: 15 internal. INFO: Build completed successfully, 15 total actions $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. -- Test log: ----------------------------------------------------------- env: python2: No such file or directory ------------------------------------------------------------------------ test_pybin_can_have_different_version_pybin_as_data_dep FAILED: terminated because this command returned a non-zero status: /private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/bazel-out/darwin_arm64-fastbuild/bin/src/test/shell/bazel/python_version_test.runfiles/io_bazel/src/test/shell/bazel/python_version_test:217: in call to test_pybin_can_have_different_version_pybin_as_data_dep Tear down: INFO[python_version_test 2022-10-21 14:07:09 (+0000)] Cleaning up workspace FAILED: test_pybin_can_have_different_version_pybin_as_data_dep Fri Oct 21 14:07:10 UTC 2022 ** test_shbin_can_have_different_version_pybins_as_data_deps ******************* $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. Loading: Loading: 0 packages loaded Analyzing: target //test:shbin_calling_py23bins (1 packages loaded, 0 targets configured) Analyzing: target //test:shbin_calling_py23bins (40 packages loaded, 566 targets configured) INFO: Analyzed target //test:shbin_calling_py23bins (41 packages loaded, 693 targets configured). INFO: Found 1 target... [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt Target //test:shbin_calling_py23bins up-to-date: bazel-bin/test/shbin_calling_py23bins INFO: Elapsed time: 2.060s, Critical Path: 0.02s INFO: 12 processes: 12 internal. INFO: Build completed successfully, 12 total actions $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'. -- Test log: ----------------------------------------------------------- env: python2: No such file or directory ------------------------------------------------------------------------ test_shbin_can_have_different_version_pybins_as_data_deps FAILED: terminated because this command returned a non-zero status: /private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/bazel-out/darwin_arm64-fastbuild/bin/src/test/shell/bazel/python_version_test.runfiles/io_bazel/src/test/shell/bazel/python_version_test:291: in call to test_shbin_can_have_different_version_pybins_as_data_deps Tear down: INFO[python_version_test 2022-10-21 14:07:12 (+0000)] Cleaning up workspace FAILED: test_shbin_can_have_different_version_pybins_as_data_deps Fri Oct 21 14:07:12 UTC 2022 ** test_source_file_does_not_override_standard_library ************************* INFO[python_version_test 2022-10-21 14:07:14 (+0000)] Cleaning up workspace PASSED: test_source_file_does_not_override_standard_library ** 7 / 12 tests passed. ******************************************************** ** There were errors. ********************************************************** $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_buildkite/64cb08d1f00f19cf1a7f15abc6bf814d/sandbox/darwin-sandbox/5714/execroot/io_bazel/_tmp/5ab09d8a7dd3f8dec545de61c577fbf7' and max_idle_secs default is '15'.