-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Labels
P1I'll work on this now. (Assignee required)I'll work on this now. (Assignee required)breakageflaky testteam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: bug
Description
Description of the bug:
This test often timeout in Bazel postsubmit: https://buildkite.com/bazel/bazel-bazel/builds/26661#018d837a-6b44-4938-be56-d6bf3c695381
** test_download_failure_message ***********************************************
-- Test timed out at 2024-02-07 12:47:51 UTC --
Terminated
-- Test log: -----------------------------------------------------------
$TEST_TMPDIR defined: output root default is '/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8170/execroot/_main/_tmp/2cb27242228a13b00c5d2dbd63a30e9a' and max_idle_secs default is '15'.
Computing main repo mapping:
Loading:
Loading: 0 packages loaded
Analyzing: target //:it (1 packages loaded, 0 targets configured)
Analyzing: target //:it (1 packages loaded, 0 targets configured)
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
WARNING: Download from http://does.not.exist.example.com/some/file.tar failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Unknown host: does.not.exist.example.com
INFO: Repository this_is_the_root_cause instantiated at:
/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8170/execroot/_main/_tmp/2cb27242228a13b00c5d2dbd63a30e9a/workspace/WORKSPACE:65:11: in <toplevel>
/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8170/execroot/_main/_tmp/2cb27242228a13b00c5d2dbd63a30e9a/workspace/root.bzl:4:15: in root_cause
Repository rule http_archive defined at:
/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8170/execroot/_main/_tmp/2cb27242228a13b00c5d2dbd63a30e9a/root/86e00b674c10623bdea7d66ec785c5ae/external/bazel_tools/tools/build_defs/repo/http.bzl:375:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'this_is_the_root_cause':
Traceback (most recent call last):
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8170/execroot/_main/_tmp/2cb27242228a13b00c5d2dbd63a30e9a/root/86e00b674c10623bdea7d66ec785c5ae/external/bazel_tools/tools/build_defs/repo/http.bzl", line 139, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [http://does.not.exist.example.com/some/file.tar] to /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8170/execroot/_main/_tmp/2cb27242228a13b00c5d2dbd63a30e9a/root/86e00b674c10623bdea7d66ec785c5ae/external/this_is_the_root_cause/temp18096450050676409068/file.tar: Unknown host: does.not.exist.example.com
ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8170/execroot/_main/_tmp/2cb27242228a13b00c5d2dbd63a30e9a/workspace/WORKSPACE:65:11: fetching http_archive rule //external:this_is_the_root_cause: Traceback (most recent call last):
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8170/execroot/_main/_tmp/2cb27242228a13b00c5d2dbd63a30e9a/root/86e00b674c10623bdea7d66ec785c5ae/external/bazel_tools/tools/build_defs/repo/http.bzl", line 139, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [http://does.not.exist.example.com/some/file.tar] to /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8170/execroot/_main/_tmp/2cb27242228a13b00c5d2dbd63a30e9a/root/86e00b674c10623bdea7d66ec785c5ae/external/this_is_the_root_cause/temp18096450050676409068/file.tar: Unknown host: does.not.exist.example.com
Analyzing: target //:it (5 packages loaded, 6 targets configured)
[1 / 1] checking cached actions
Bazel caught terminate signal; cancelling pending invocation.
------------------------------------------------------------------------
test_download_failure_message FAILED: terminated by signal TERM.
/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8170/execroot/_main/bazel-out/k8-fastbuild/bin/src/test/shell/bazel/starlark_repository_test.runfiles/_main/src/test/shell/bazel/starlark_repository_test:2707: in call to main
$TEST_TMPDIR defined: output root default is '/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/8170/execroot/_main/_tmp/2cb27242228a13b00c5d2dbd63a30e9a' and max_idle_secs default is '15'.
Another command (pid=826) is running. Waiting for it to complete on the server (server_pid=432)...
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
This can be easily reproduced within docker image gcr.io/bazel-public/centos7-java11-devtoolset10 by
bazel test //src/test/shell/bazel:starlark_repository_test --test_filter=test_download_failure_message --runs_per_test=20
Increasing the number of --runs_per_test will increase the chance of reproducing this issue.
Which operating system are you running Bazel on?
Linux
What is the output of bazel info release?
7.0.2
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
No response
What's the output of git remote get-url origin; git rev-parse HEAD ?
No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
Metadata
Metadata
Assignees
Labels
P1I'll work on this now. (Assignee required)I'll work on this now. (Assignee required)breakageflaky testteam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: bug