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

Run processes via /usr/bin/env bash #10557

Closed
wants to merge 1 commit into from

Conversation

benjyw
Copy link
Contributor

@benjyw benjyw commented Aug 5, 2020

Ensures executables are fsynced to avoid
the "Text file busy" error.

[ci skip-build-wheels]

@benjyw benjyw force-pushed the repro_text_file_busy branch from 6e95927 to 23fa889 Compare August 6, 2020 03:16
Ensures executables are fsynced to avoid
the "Text file busy" error.

[ci skip-build-wheels]
@benjyw benjyw force-pushed the repro_text_file_busy branch from e11ea6d to 94bba2a Compare August 6, 2020 18:37
@benjyw benjyw changed the title Try to repro the "text file busy" error. Run processes via /usr/bin/env bash Aug 6, 2020
stuhood added a commit to stuhood/pants that referenced this pull request Aug 7, 2020
# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
stuhood added a commit to stuhood/pants that referenced this pull request Aug 7, 2020
# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]
stuhood added a commit to stuhood/pants that referenced this pull request Aug 7, 2020
[ci skip-build-wheels]

[ci skip-rust]
stuhood added a commit that referenced this pull request Aug 7, 2020
### Problem

As described in #10507 we suspect that use of docker and AUFS results in a need for heavier handed measures for syncing files to the filesystem before executing them. Various other strategies were tried and ruled out in #10557.

### Solution

If we detect that we are probably running in docker or an LXC container, spawn a `sync` process before executing.

### Result

Fixes #10507.

[ci skip-build-wheels]
@benjyw benjyw closed this Aug 7, 2020
@benjyw benjyw deleted the repro_text_file_busy branch August 7, 2020 20:34
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