Skip to content

Conversation

gregmagolan
Copy link
Collaborator

@gregmagolan gregmagolan commented Oct 9, 2023

There are use cases where copy rules should run sandboxed or on remote executors. In these cases users should set force_local_execution to False so the rules are not opinionated. Users can set custom execution requirements in their bazelrc via mnemonics if desired. Forcing local execution still seems like the best default for best performance by default when #466 is not an issue.

Related issues & threads,

#466
https://bazelbuild.slack.com/archives/CEZUUKQ6P/p1694892563112649


Type of change

  • New feature or functionality (change which adds functionality)

Test plan

  • Covered by existing test cases
  • New test cases added
  • Manual testing; please provide instructions so we can reproduce:

@gregmagolan gregmagolan force-pushed the opt_out_of_execution_requirements branch 2 times, most recently from 16eec19 to e448753 Compare October 9, 2023 18:50
@gregmagolan gregmagolan requested a review from alexeagle October 9, 2023 18:51
@gregmagolan gregmagolan force-pushed the opt_out_of_execution_requirements branch from e448753 to 43932b1 Compare October 9, 2023 18:52
Copy link
Collaborator

@alexeagle alexeagle left a comment

Choose a reason for hiding this comment

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

There's not a use case for setting this differently on different targets, rather you need execution requirements to be based on how you're executing Bazel.
I think it needs to be a config setting with a custom flag, so you can opt-out of our execution requirements for the entire build?

@gregmagolan gregmagolan force-pushed the opt_out_of_execution_requirements branch 2 times, most recently from dd6686a to ae898fb Compare October 9, 2023 19:02
@alexeagle
Copy link
Collaborator

replaced with #606

@alexeagle alexeagle closed this Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants