Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bazel CI] Flaky error __main__.FirstTimeUseTest testNoBashRequiredForSimpleBazelRun #23807

Open
sgowroji opened this issue Sep 30, 2024 · 0 comments
Labels
breakage flaky test team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug untriaged

Comments

@sgowroji
Copy link
Member

sgowroji commented Sep 30, 2024

CI: https://buildkite.com/organizations/bazel/analytics/suites/bazel-bazel/tests/59f6c844-2624-8f54-8fe2-d33664dc0e77?branch=master

Platform: Ubuntu

Tests. & Logs:


BAZELCI_TASK=ubuntu2004
TEST_TARGET=//src/test/py/bazel:first_time_use_test
TEST_NAME=testNoBashRequiredForSimpleBazelRun

bazel test //src/test/py/bazel:first_time_use_test --test_filter=testNoBashRequiredForSimpleBazelRun


Traceback (most recent call last):
  File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8510/execroot/_main/bazel-out/k8-fastbuild/bin/src/test/py/bazel/first_time_use_test.runfiles/_main/src/test/py/bazel/first_time_use_test.py", line 93, in testNoBashRequiredForSimpleBazelRun
    self._FailWithOutput(stdout + stderr)
  File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8510/execroot/_main/bazel-out/k8-fastbuild/bin/src/test/py/bazel/first_time_use_test.runfiles/_main/src/test/py/bazel/first_time_use_test.py", line 22, in _FailWithOutput
    self.fail('FAIL:\n | %s\n---' % '\n | '.join(output))
AssertionError: FAIL:
 | $TEST_TMPDIR defined: output root default is '/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8510/execroot/_main/_tmp/bb6326bacceea7fa9c0d8e20a33df045' and max_idle_secs default is '15'.
 | Starting local Bazel server and connecting to it...
 | Computing main repo mapping:
 | Loading:
 | Loading: 0 packages loaded
 | Loading: 0 packages loaded
 | Analyzing: target //foo:x (1 packages loaded, 0 targets configured)
 | Analyzing: target //foo:x (1 packages loaded, 0 targets configured)
 | 
 | Analyzing: target //foo:x (34 packages loaded, 10 targets configured)
 | 
 | Analyzing: target //foo:x (49 packages loaded, 294 targets configured)
 | 
 | WARNING: Download from https://github.com/indygreg/python-build-standalone/releases/download/20240726/cpython-3.11.9+20240726-x86_64-unknown-linux-gnu-install_only.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Unknown host: github.com
 | INFO: Repository rules_python++python+python_3_11_x86_64-unknown-linux-gnu instantiated at:
 | <builtin>: in <toplevel>
 | Repository rule python_repository defined at:
 | /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8510/execroot/_main/_tmp/bb6326bacceea7fa9c0d8e20a33df045/_bazel_buildkite-agent/272bfd4f12e16417b3c3e95b3520cbff/external/rules_python+/python/private/python_repository.bzl:296:36: in <toplevel>
 | ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8510/execroot/_main/_tmp/bb6326bacceea7fa9c0d8e20a33df045/_bazel_buildkite-agent/272bfd4f12e16417b3c3e95b3520cbff/external/rules_python+/python/private/python_repository.bzl:117:34: An error occurred during the fetch of repository 'rules_python++python+python_3_11_x86_64-unknown-linux-gnu':
 | Traceback (most recent call last):
 | File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8510/execroot/_main/_tmp/bb6326bacceea7fa9c0d8e20a33df045/_bazel_buildkite-agent/272bfd4f12e16417b3c3e95b3520cbff/external/rules_python+/python/private/python_repository.bzl", line 117, column 34, in _python_repository_impl
 | rctx.download_and_extract(
 | Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/indygreg/python-build-standalone/releases/download/20240726/cpython-3.11.9+20240726-x86_64-unknown-linux-gnu-install_only.tar.gz] to /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8510/execroot/_main/_tmp/bb6326bacceea7fa9c0d8e20a33df045/_bazel_buildkite-agent/272bfd4f12e16417b3c3e95b3520cbff/external/rules_python++python+python_3_11_x86_64-unknown-linux-gnu/temp6683854574257608171/cpython-3.11.9+20240726-x86_64-unknown-linux-gnu-install_only.tar.gz: Unknown host: github.com
 | ERROR: no such package '@@rules_python++python+python_3_11_x86_64-unknown-linux-gnu//': java.io.IOException: Error downloading [https://github.com/indygreg/python-build-standalone/releases/download/20240726/cpython-3.11.9+20240726-x86_64-unknown-linux-gnu-install_only.tar.gz] to /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8510/execroot/_main/_tmp/bb6326bacceea7fa9c0d8e20a33df045/_bazel_buildkite-agent/272bfd4f12e16417b3c3e95b3520cbff/external/rules_python++python+python_3_11_x86_64-unknown-linux-gnu/temp6683854574257608171/cpython-3.11.9+20240726-x86_64-unknown-linux-gnu-install_only.tar.gz: Unknown host: github.com
 | ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8510/execroot/_main/_tmp/bb6326bacceea7fa9c0d8e20a33df045/tests_root/tmpg7sazw1g/foo/BUILD:1:10: //foo:x depends on @@rules_python++python+python_3_11_x86_64-unknown-linux-gnu//:python_runtimes in repository @@rules_python++python+python_3_11_x86_64-unknown-linux-gnu which failed to fetch. no such package '@@rules_python++python+python_3_11_x86_64-unknown-linux-gnu//': java.io.IOException: Error downloading [https://github.com/indygreg/python-build-standalone/releases/download/20240726/cpython-3.11.9+20240726-x86_64-unknown-linux-gnu-install_only.tar.gz] to /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8510/execroot/_main/_tmp/bb6326bacceea7fa9c0d8e20a33df045/_bazel_buildkite-agent/272bfd4f12e16417b3c3e95b3520cbff/external/rules_python++python+python_3_11_x86_64-unknown-linux-gnu/temp6683854574257608171/cpython-3.11.9+20240726-x86_64-unknown-linux-gnu-install_only.tar.gz: Unknown host: github.com
 | ERROR: Analysis of target '//foo:x' failed; build aborted: Analysis failed
 | INFO: Elapsed time: 8.453s, Critical Path: 0.10s
 | INFO: 1 process: 1 internal.
 | ERROR: Build did NOT complete successfully
 | FAILED:
 | ERROR: Build failed. Not running target

CC Greenteam @mai93

@sgowroji sgowroji added type: bug breakage untriaged team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website flaky test labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breakage flaky test team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug untriaged
Projects
None yet
Development

No branches or pull requests

1 participant