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

"command interrupted while computing main repo mapping" without any indication of progress #16338

Closed
lberki opened this issue Sep 26, 2022 · 5 comments
Labels
area-Bzlmod Bzlmod-specific PRs, issues, and feature requests P2 We'll consider working on this in future. (Assignee optional) team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: bug

Comments

@lberki
Copy link
Contributor

lberki commented Sep 26, 2022

Description of the bug:

When I build a Fuchsia example project, Bazel@HEAD hangs for a few minutes while Bazel 5.3.0 provides reasonable progress reporting.

--profile indicates that it's repository fetching that's happening during the hang.

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Following the instructions here while using a Bazel built from HEAD:

https://fuchsia.googlesource.com/sdk-samples/fortune-teller/

essentially:

git clone https://fuchsia.googlesource.com/sdk-samples/fortune-teller
cd fortune-teller
git submodule update --recursive --init
bazel build @fuchsia_sdk//:fuchsia_toolchain_sdk

Then the console output is:

>> bazel build @fuchsia_sdk//:fuchsia_toolchain_sdk
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
# Hangs for >1 minute
^C
Bazel caught interrupt signal; shutting down.

ERROR: command interrupted while computing main repo mapping

This is in constrast with Bazel 5.3.0, which tells me on the console that it's currently busy fetching repositories.

Which operating system are you running Bazel on?

Linux

What is the output of bazel info release?

No response

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

From commit 8a53266 .

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

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

@lberki lberki added the area-Bzlmod Bzlmod-specific PRs, issues, and feature requests label Sep 26, 2022
@meteorcloudy
Copy link
Member

Why is this area-Bzlmod?

@lberki
Copy link
Contributor Author

lberki commented Oct 19, 2022

AFAIU bzlmod is the only significant user of repo mapping, so mainly by association

@meteorcloudy
Copy link
Member

@meteorcloudy meteorcloudy added team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website untriaged labels Oct 19, 2022
@meteorcloudy
Copy link
Member

/cc @Wyverald

@meteorcloudy meteorcloudy added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. and removed team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website labels Oct 19, 2022
@lberki
Copy link
Contributor Author

lberki commented Oct 19, 2022

I'm glad my crystal ball worked well this time :)

@meteorcloudy meteorcloudy added P2 We'll consider working on this in future. (Assignee optional) and removed untriaged labels Oct 25, 2022
Wyverald added a commit that referenced this issue Feb 21, 2023
This ends up as simple as firing an event and letting UiEventHandler know that the build has started.

Fixes #16927.

Fixes #16338.

PiperOrigin-RevId: 511177491
Change-Id: I479b116cf896731b7238410ce14f7e249da6c390
ShreeM01 pushed a commit that referenced this issue Feb 21, 2023
…ion (#17544)

This ends up as simple as firing an event and letting UiEventHandler know that the build has started.

Fixes #16927.

Fixes #16338.

PiperOrigin-RevId: 511177491
Change-Id: I479b116cf896731b7238410ce14f7e249da6c390
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Bzlmod Bzlmod-specific PRs, issues, and feature requests P2 We'll consider working on this in future. (Assignee optional) team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: bug
Projects
None yet
Development

No branches or pull requests

3 participants