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

Fix exclusive spawn mechanism for relative paths and working directories. (cherrypick of #14812) #14816

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

stuhood
Copy link
Member

@stuhood stuhood commented Mar 16, 2022

The exclusive_spawn facility to avoid/retry for ExecutableFileBusy / "Text file busy" is triggered by having materialized arg[0] of a process into the process sandbox. But in the presence of a Process::working_directory and a relative path as arg[0], the facility was not being triggered (since validation of arg[0] as a RelativePath would fail due to it escaping its root).

This relates to #13424 (which would remove the need for the exclusive_spawn facility), but does not fix it: only ensure that we handle an existing known case.

[ci skip-build-wheels]

…ies. (pantsbuild#14812)

The `exclusive_spawn` facility to avoid/retry for `ExecutableFileBusy` / "Text file busy" is triggered by having materialized `arg[0]` of a process into the process sandbox. But in the presence of a `Process::working_directory` and a relative path as `arg[0]`, the facility was not being triggered (since validation of `arg[0]` as a `RelativePath` would fail due to it escaping its root).

This relates to pantsbuild#13424 (which would remove the need for the `exclusive_spawn` facility), but does not fix it: only ensure that we handle an existing known case.

[ci skip-build-wheels]
@stuhood stuhood merged commit 3baf5a1 into pantsbuild:2.10.x Mar 16, 2022
@stuhood stuhood deleted the stuhood/pick-14812-for-2.10.x branch March 16, 2022 23:57
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.

2 participants