Skip to content

[Bug]: fetches from gitlab.arm.com are not reliable #4320

Open
@alexeagle

Description

@alexeagle

What happened?

Some modules point their source to GitLab, such as https://github.com/bazelbuild/bazel-central-registry/blob/main/modules/ape/1.0.1/source.json#L2

I have some customers reporting their developers complain about the availability, getting Read timed out errors (below)

(15:06:36) WARNING: Download from https://gitlab.arm.com/bazel/ape/-/releases/v1.0.1/downloads/src.tar.gz failed: class java.io.IOException Read timed out02:23
(15:06:36) INFO: Repository ape~ instantiated at:02:23
  <builtin>: in <toplevel>02:23
Repository rule http_archive defined at:02:23
  /home/semaphore/.cache/bazel/_bazel_semaphore/40affbd12709619c4a92f431bf6ac55a/external/bazel_tools/tools/build_defs/repo/http.bzl:387:31: in <toplevel>02:23
(15:06:36) ERROR: /home/semaphore/.cache/bazel/_bazel_semaphore/40affbd12709619c4a92f431bf6ac55a/external/bazel_tools/tools/build_defs/repo/http.bzl:136:45: An error occurred during the fetch of repository 'ape~':02:23
   Traceback (most recent call last):02:23
	File "/home/semaphore/.cache/bazel/_bazel_semaphore/40affbd12709619c4a92f431bf6ac55a/external/bazel_tools/tools/build_defs/repo/http.bzl", line 136, column 45, in _http_archive_impl02:23
		download_info = ctx.download_and_extract(02:23
Error in download_and_extract: java.io.IOException: Error downloading [https://gitlab.arm.com/bazel/ape/-/releases/v1.0.1/downloads/src.tar.gz] to /home/semaphore/.cache/bazel/_bazel_semaphore/40affbd12709619c4a92f431bf6ac55a/external/ape~/temp11647312340057587529/src.tar.gz: Read timed out02:23
(15:06:36) ERROR: Analysis of target '//:format.check' failed; build aborted: java.io.IOException: Error downloading [https://gitlab.arm.com/bazel/ape/-/releases/v1.0.1/downloads/src.tar.gz] to /home/semaphore/.cache/bazel/_bazel_semaphore/40affbd12709619c4a92f431bf6ac55a/external/ape~/temp11647312340057587529/src.tar.gz: Read timed out

Version

HEAD

How to reproduce

depend on the ape module and try to build during a GitLab CDN outage

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions