Repository navigation
Conversation
rbe_autoconfig has an attribute 'exec_properties' of type string_dict [1]. As do all repository rules if --experimental_repo_remote_exec is set. Bazel reports an error if both are used together. This change fixes this so if a repository_rule declares an attribute 'exec_properties' of type string_dict Bazel no longer tries to add its own. [1] https://github.com/bazelbuild/bazel-toolchains/blob/b5928f980c79cbdbfd0b5c5a924aeb2cd61eb4f9/rules/rbe_repo.bzl#L758
Contributor
Author
|
FYI @GMNGeoffrey |
Contributor
|
Yay, thank you! |
buchgr
added a commit
to buchgr/iree
that referenced
this pull request
Mar 26, 2020
This is a workaround to use rbe_autoconfig with --experimental_repo_remote_exec. It had to be disabled before due to a naming conflict [1]. More information at [2]. [1] iree-org@b5331d2 [2] bazelbuild/bazel#11029
buchgr
added a commit
to buchgr/iree
that referenced
this pull request
Mar 26, 2020
This is a workaround to use rbe_autoconfig with --experimental_repo_remote_exec. It had to be disabled before due to a naming conflict [1]. More information at [2]. [1] iree-org@b5331d2 [2] bazelbuild/bazel#11029
buchgr
added a commit
to buchgr/iree
that referenced
this pull request
Mar 26, 2020
This is a workaround to use rbe_autoconfig with --experimental_repo_remote_exec. It had to be disabled before due to a naming conflict [1]. More information at [2]. [1] iree-org@b5331d2 [2] bazelbuild/bazel#11029
buchgr
added a commit
to buchgr/iree
that referenced
this pull request
Mar 26, 2020
This is a workaround to use rbe_autoconfig with --experimental_repo_remote_exec. It had to be disabled before due to a naming conflict [1]. More information at [2]. [1] iree-org@b5331d2 [2] bazelbuild/bazel#11029
copybara-service Bot
pushed a commit
to iree-org/iree
that referenced
this pull request
Mar 30, 2020
This is a workaround to use rbe_autoconfig with --experimental_repo_remote_exec. It had to be disabled before due to a naming conflict [1]. More information at [2]. [1] b5331d2 [2] bazelbuild/bazel#11029 Closes #1275 COPYBARA_INTEGRATE_REVIEW=#1275 from buchgr:fix-rbe b4a7d3a PiperOrigin-RevId: 303836625
meteorcloudy
reviewed
Apr 6, 2020
| attr(RuleClass.EXEC_PROPERTIES, STRING_DICT).defaultValue(ImmutableMap.of())); | ||
| Builder<Map<String, String>> attr = | ||
| attr(RuleClass.EXEC_PROPERTIES, STRING_DICT).defaultValue(ImmutableMap.of()); | ||
| if (builder.contains(RuleClass.EXEC_PROPERTIES)) { |
Member
There was a problem hiding this comment.
What if the existing EXEC_PROPERTIES doesn't have the type string_dict? Should we throw an error here? Otherwise, it could be confusing to user.
Contributor
|
Any progress on getting this merged? We're still using a hacky local patch and I would love to fix that and close that out. |
Contributor
|
Ping on this? I'm in the process of updating our bazel version and am going to have to update our hacky patch as well |
Member
|
@buchgr Can you resolve the comment and conflict of this PR? |
Contributor
Author
|
Forgot about it. I ll look into this today. Thanks for the ping. |
Contributor
|
Fixed by bazelbuild/bazel-toolchains#912 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rbe_autoconfig has an attribute 'exec_properties' of type string_dict [1].
As do all repository rules if --experimental_repo_remote_exec is set.
Bazel reports an error if both are used together. This change fixes this
so if a repository_rule declares an attribute 'exec_properties' of type
string_dict Bazel no longer tries to add its own.
[1] https://github.com/bazelbuild/bazel-toolchains/blob/b5928f980c79cbdbfd0b5c5a924aeb2cd61eb4f9/rules/rbe_repo.bzl#L758