Skip to content

bazel: fetch GNU downloads through ftpmirror.gnu.org - #12104

Merged
vvbandeira merged 3 commits into
The-OpenROAD-Project:masterfrom
oharboe:bazel-gnu-mirror
Nov 4, 2026
Merged

vvbandeira merged 3 commits into
The-OpenROAD-Project:masterfrom
oharboe:bazel-gnu-mirror

Conversation

@oharboe

@oharboe oharboe commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

rules_m4 fetches m4 from mirrors.kernel.org, then ftp.gnu.org. When
both time out, analysis of //:openroad fails: the master Docker build
failed that way on 2026-11-03 ("Connect timed out" for
m4-1.4.18.tar.xz).

Rewrite both to GNU's redirector to a nearby mirror, then a second
mirror, keeping each original URL as the last fallback. Every download
is still verified against its pinned hash.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Signed-off-by: Øyvind Harboe oyvind.harboe@zylin.com

rules_m4 fetches m4 from mirrors.kernel.org, then ftp.gnu.org. When
both time out, analysis of //:openroad fails: the master Docker build
failed that way on 2026-11-03 ("Connect timed out" for
m4-1.4.18.tar.xz).

Rewrite both to GNU's redirector to a nearby mirror, then a second
mirror, keeping each original URL as the last fallback. Every download
is still verified against its pinned hash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@github-actions github-actions Bot added the size/S label Nov 3, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Bazel downloader configuration in bazel/downloader.cfg by adding rewrite rules for GNU downloads from mirrors.kernel.org and ftp.gnu.org to use ftpmirror.gnu.org and ftp.fau.de as mirrors, preventing build timeouts. The feedback suggests adding the ftp.fau.de mirror fallback to the ftp.gnu.org rewrite rules as well to ensure consistency and redundancy, matching the strategy used for mirrors.kernel.org.

Comment thread bazel/downloader.cfg Resolved
@oharboe
oharboe marked this pull request as ready for review November 3, 2026 10:15
@oharboe
oharboe requested review from a team as code owners November 3, 2026 10:15
The BCR's m4 and bison modules list ftp.gnu.org among their mirror
URLs; give them the same second mirror as mirrors.kernel.org.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>

@maliberty maliberty left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builds run in the US so German mirrors should be a last resort. Please reorder.

Builds run in the US, so the German mirror goes after the original
mirrors.kernel.org and ftp.gnu.org URLs rather than before them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe
oharboe requested a review from maliberty November 4, 2026 05:51
@oharboe

oharboe commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Builds run in the US so German mirrors should be a last resort. Please reorder.

Fixed.

@vvbandeira
vvbandeira merged commit 218f4ce into The-OpenROAD-Project:master Nov 4, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants