-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix --build_event_publish_all_actions with --remote_download_minimal
The ActionExecutedEvent references the primaryOutput of the executed action (see ActionExecutedEvent::referencedLocalFiles). ByteStreamBuildEventArtifactUploader::upload will try to ensure that this referenced file is present on the remote cache. It calls file.isDirectory(), which will eventually go to RemoteActionFileSystem::getRemoteInputMetadata. However, RemoteActionFileSystem::inputArtifactData only contains metadata about the input files, not action outputs. This change proposes a fix, where we make RemoteActionFileSystem implement MetadataInjector, and inject information about output files from ActionMetadataHandler::injectRemoteFile. The implementation is likely not correct for all cases, but demonstrates the issue and a possible approach to fix it.
- Loading branch information
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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