Skip to content

Use an in-memory filesystem to track injected remote files#16477

Closed
coeuvre wants to merge 3 commits intobazelbuild:masterfrom
coeuvre:inmemory-remote-fs
Closed

Use an in-memory filesystem to track injected remote files#16477
coeuvre wants to merge 3 commits intobazelbuild:masterfrom
coeuvre:inmemory-remote-fs

Conversation

@coeuvre
Copy link
Copy Markdown
Member

@coeuvre coeuvre commented Oct 14, 2022

instead of using Map. This allows implementing more fs operations later.

instead of using Map. This allows implementing more fs operations later.
@coeuvre coeuvre requested a review from a team as a code owner October 14, 2022 15:58
@sgowroji sgowroji added team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Oct 14, 2022
}
}

static class RemoteFileInfo extends FileInfo {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Will it be possible to reuse InMemoryFileInfo once we get rid of actionId (as we discussed elsewhere)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No:

  1. we have to override getFastDigest() to return the digest of remote file.
  2. we want to block operations that don't make sense to remote files e.g. getOutputStream.

@coeuvre coeuvre force-pushed the inmemory-remote-fs branch from 53045c6 to 45aa131 Compare October 17, 2022 09:57
@coeuvre coeuvre deleted the inmemory-remote-fs branch October 17, 2022 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants