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

reapi: favor platform set in Action over Command #7661

Merged
merged 2 commits into from
Oct 7, 2024
Merged

Conversation

vanja-p
Copy link
Contributor

@vanja-p vanja-p commented Oct 4, 2024

In REAPI v2.2, the usage of platform in Command was deprecated over in Action. Although most of the older REAPI clients, such as Bazel, are setting it in both, newer clients such as Buck2 would only set it in Action message.

This change replace most of existing command.GetPlatform() calls with action.GetPlatform() while using the command value as fallback.

This was heavily inspired by #7550, but with a few more changes.

I tried a simpler approach where we overwrite command.platform with action.platform, but because we read the original protos by digest in ExecutionServer.markTaskComplete, this doesn't work.

Closes buildbuddy-io/buildbuddy-internal#3863

In REAPI v2.2, the usage of platform in Command was deprecated over in
Action. Although most of the older REAPI clients, such as Bazel, are
setting it in both, newer clients such as Buck2 would only set it in
Action message.

This change replace most of existing command.GetPlatform() calls with
action.GetPlatform() while using the command value as fallback.

This was heavily inspired by #7550, but with a few more changes.

I tried a simpler approach where we overwrite command.platform with action.platform, but because we read the original protos by digest in ExecutionServer.markTaskComplete, this doesn't work.

Closes buildbuddy-io/buildbuddy-internal#3863
@vanja-p vanja-p merged commit 4394142 into master Oct 7, 2024
15 checks passed
@vanja-p vanja-p deleted the vanja-plat2 branch October 7, 2024 13:30
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