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

Debugging tests should always run locally and not attempt remote execution #7097

Open
BrianXDong opened this issue Dec 2, 2024 · 1 comment
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin type: bug

Comments

@BrianXDong
Copy link

Description of the bug:

We have remote execution set up such that all actions run remotely by default. As a result of this change, whenever we try to debug tests in intelliJ, our remote execution cluster rejects the action with the following error:

Failed Precondition: Action <digest> is invalid: A timeout specified is out of bounds with a configured range.
  Precondition Failure:
    (INVALID) 9999s > 3600s: A timeout specified is out of bounds with a configured range

While the above error is a result of our specific RBE setup, debugging tests should always run locally so that debugging information can be available. Therefore, we feel as if IntelliJ should enforce tests running locally.

Which category does this issue belong to?

Intellij

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

Not sure this is immediately reproducible.
If you have a readily available RBE setup, then setup your bazel invocations to use it by default, then attempt to debug a test from IntelliJ.

Which Intellij IDE are you using? Please provide the specific version.

2024.3

What programming languages and tools are you using? Please provide specific versions.

Scala

What Bazel plugin version are you using?

Custom Fork: https://github.com/lucidsoftware/intellij

Have you found anything relevant by searching the web?

Slack thread from a few years back discussing a similar issue: https://bazelbuild.slack.com/archives/C025SBYFC4E/p1657027692628699

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

We have a fork of IntelliJ that has a patch for this that works for us: lucidsoftware#3
This potentially can be up-streamed here for this issue.

@BrianXDong BrianXDong added awaiting-maintainer Awaiting review from Bazel team on issues type: bug labels Dec 2, 2024
@github-actions github-actions bot added the product: IntelliJ IntelliJ plugin label Dec 2, 2024
@tpasternak
Copy link
Contributor

tpasternak commented Dec 4, 2024

Well, it makes perfect sense, but I'm a bit worried about changing behavior this way unconditionally.

@mai93 mai93 assigned sellophane and unassigned mai93 Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin type: bug
Projects
Status: Untriaged
Development

No branches or pull requests

4 participants