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

Ensure nested working directory from command proto are created #678

Conversation

adam-singer
Copy link
Contributor

@adam-singer adam-singer commented Feb 23, 2024

The command protocol spec allows for clients to send Command.working_directory that could be nested and not downloaded from other digests. This behavior has been seen with reclient implementations. This change will now create all directories from Command.working_directory at the root of RunningActionImpl.work_directory.

Description

Please include a summary of the changes and the related issue. Please also
include relevant motivation and context.

Fixes # (issue)

Type of change

Please delete options that aren't relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Unit tested.
Reclient setup with chromium on macosx.

Checklist

  • Updated documentation if needed
  • Tests added/amended
  • bazel test //... passes locally
  • PR is contained in a single commit, using git amend see some docs

This change is Reviewable

The command protocol spec allows for clients to send `Command.working_directory`
that could be nested and not downloaded from other digests. This
behavior has been seen with reclient implementations. This change
will now create all directories from `Command.working_directory`
at the root of `RunningActionImpl.work_directory`.
Copy link

vercel bot commented Feb 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nativelink-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2024 6:04am

@adam-singer adam-singer requested a review from allada February 23, 2024 06:06
@adam-singer adam-singer marked this pull request as ready for review February 23, 2024 06:15
@adam-singer
Copy link
Contributor Author

Closing for now due to misconfiguration with reclient made this look like a bug

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.

1 participant