Skip to content

Conversation

@fmeum
Copy link
Collaborator

@fmeum fmeum commented Apr 20, 2023

This allows StarlarkCustomCommandLine to recognize the argument as an Artifact and map its path according to --experimental_output_paths.

Work towards #6526

This allows `StarlarkCustomCommandLine` to recognize the argument as an
`Artifact` and map its path according to `--experimental_output_paths`.

Work towards bazelbuild#6526
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Rules-Java Issues for Java rules labels Apr 20, 2023
@fmeum
Copy link
Collaborator Author

fmeum commented Apr 20, 2023

@cushon Could you review this PR? I had a similar one a while back that was partially reverted, this just restores that behavior. Tests that prevent such "regressions" will be coming soon, they just happened to be delayed.

@fmeum fmeum requested a review from cushon April 20, 2023 15:03
@cushon cushon added the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Apr 20, 2023
@fmeum
Copy link
Collaborator Author

fmeum commented Apr 20, 2023

@cushon Since it's related to my work on path mapping: Is support for multiplexed sandboxing something that has been considered for the Javac worker? I would potentially look into implementing it.

@cushon
Copy link
Contributor

cushon commented Apr 20, 2023

@cushon Since it's related to my work on path mapping: Is support for multiplexed sandboxing something that has been considered for the Javac worker? I would potentially look into implementing it.

I do not know. @larsrc-google do you know if that's something that has been considered?

@larsrc-google
Copy link
Contributor

It's not just considered, it's mostly there. Unfortunately I hit some absolute path problems in plugins and then got derailed.

@fmeum
Copy link
Collaborator Author

fmeum commented Apr 20, 2023

That's great to hear. I can use sandboxed singleplex workers in the meantime, but sandboxed multiplex Javac would likely help reduce the overhead of path stripping for local builds.

@fmeum fmeum deleted the bootstrap-path-mapping branch April 21, 2023 19:02
@sgowroji sgowroji removed awaiting-review PR is awaiting review from an assigned reviewer awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally labels Apr 24, 2023
fweikert pushed a commit to fweikert/bazel that referenced this pull request May 25, 2023
This allows `StarlarkCustomCommandLine` to recognize the argument as an `Artifact` and map its path according to `--experimental_output_paths`.

Work towards bazelbuild#6526

Closes bazelbuild#18159.

PiperOrigin-RevId: 526060134
Change-Id: I18fb9c12317a5089908821b52ce019720aa03ae3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Rules-Java Issues for Java rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants