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

need a way to affect the default timeout of repository_ctx.execute() #23586

Closed
dws opened this issue Sep 10, 2024 · 1 comment
Closed

need a way to affect the default timeout of repository_ctx.execute() #23586

dws opened this issue Sep 10, 2024 · 1 comment
Assignees
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: feature request untriaged

Comments

@dws
Copy link
Contributor

dws commented Sep 10, 2024

Description of the feature request:

It would be helpful if there were a way to affect the default timeout of repository_ctx.execute() without needing to patch Bazel itself. While repository_ctx.execute() does accept a timeout parameter, the git_repository() and http_archive() rules provided with Bazel currently provide no way to specify an alternate timeout. Even if they did, it could be quite cumbersome to provide a new parameter to all the calls to these rules in a given repo. So, it would be helpful to have a way to adjust the default value, perhaps via a command line argument to Bazel.

If this is acceptable, then I'll be happy to provide a patch.

Which category does this issue belong to?

Core

What underlying problem are you trying to solve with this feature?

In order to cope with slow infrastructure, we need to be able to boost the timeout of all uses of repository_ctx.execute().

Which operating system are you running Bazel on?

Ubuntu 20.04 LTS

What is the output of bazel info release?

release 7.2.1

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

Have you found anything relevant by searching the web?

No

Any other information, logs, or outputs that you want to share?

No response

@github-actions github-actions bot added the team-Core Skyframe, bazel query, BEP, options parsing, bazelrc label Sep 10, 2024
@Wyverald
Copy link
Member

You can use --experimental_scale_timeouts for this exact use case, I believe.

@Wyverald Wyverald closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2024
@Wyverald Wyverald added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. and removed team-Core Skyframe, bazel query, BEP, options parsing, bazelrc labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: feature request untriaged
Projects
None yet
Development

No branches or pull requests

5 participants