-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Remote: Fix a bug that outputs of actions tagged with no-remote are u… #15212
Conversation
…ploaded to remote cache when remote execution is enabled.
} | ||
|
||
/** Returns the {@link Type} of the context. */ | ||
Type getType(); | ||
private final Spawn spawn; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mark as @Nullable
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
private Step step; | ||
|
||
public RemoteActionExecutionContext( | ||
Spawn spawn, RequestMetadata requestMetadata, NetworkTime networkTime) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also - should we make the ctor private to enforce construction through one of the create()
methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -258,7 +259,7 @@ static Command buildCommand( | |||
public static class RemoteAction { | |||
private final Spawn spawn; | |||
private final SpawnExecutionContext spawnExecutionContext; | |||
private final RemoteActionExecutionContext remoteActionExecutionContext; | |||
private final RemoteActionExecutionContext context; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a good idea to rename this, given that there are two different context objects?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Revert the rename. Extracted RemoteAction to an upper level.
...ploaded to remote cache when remote execution is enabled. Fixes bazelbuild#14900. Also fixes an issue that action result from just remotely executed action is not saved to disk cache. The root cause is the action result is inlined in the execution response hence not downloaded through remote cache, hence not saved to disk cache. This results in the second build misses the disk cache, but it can still hit the remote cache and fill the disk cache. The third build can hit disk cache. Closes bazelbuild#15212. PiperOrigin-RevId: 441426469
…ploaded to remote cache when remote execution is enabled. Fixes bazelbuild#14900. Also fixes an issue that action result from just remotely executed action is not saved to disk cache. The root cause is the action result is inlined in the execution response hence not downloaded through remote cache, hence not saved to disk cache. This results in the second build misses the disk cache, but it can still hit the remote cache and fill the disk cache. The third build can hit disk cache. Closes bazelbuild#15212. PiperOrigin-RevId: 441426469
… are u... (#15453) * Remote: Fix a bug that outputs of actions tagged with no-remote are u… …ploaded to remote cache when remote execution is enabled. Fixes #14900. Also fixes an issue that action result from just remotely executed action is not saved to disk cache. The root cause is the action result is inlined in the execution response hence not downloaded through remote cache, hence not saved to disk cache. This results in the second build misses the disk cache, but it can still hit the remote cache and fill the disk cache. The third build can hit disk cache. Closes #15212. PiperOrigin-RevId: 441426469 * Fix test Co-authored-by: Chenchu K <ckolli@google.com>
…ploaded to remote cache when remote execution is enabled.
Fixes #14900.
Also fixes an issue that action result from just remotely executed action is not saved to disk cache. The root cause is the action result is inlined in the execution response hence not downloaded through remote cache, hence not saved to disk cache. This results in the second build misses the disk cache, but it can still hit the remote cache and fill the disk cache. The third build can hit disk cache.