acceptable-football-32760
03/15/2022, 10:02 PMexclusive
test (meaning it will be invoked not in parallel with other build targets). So basically I tried my best to delegate stuff exclusively to pants so that no two invocations run.
It works like a charm, yet from time to time (really really rarely so I can't track it down) I get the error in CI:
16:27:43.55 [INFO] Completed: Building build_backend.pex from setuptools_default_lockfile.txt
16:27:43.57 [ERROR] 1 Exception encountered:
Exception: Failed to execute: Process {
argv: [
"../build_backend.pex_pex_shim.sh",
"backend_shim.py",
],
env: {},
working_directory: Some(
RelativePath(
"chroot",
),
),
input_digests: InputDigests {
complete: Digest {
hash: Fingerprint<23502f8ccd2f9a66600309139bc0bcf8fbb26194c30736d49fd8574d916fb665>,
size_bytes: 392,
},
nailgun: Digest {
hash: Fingerprint<e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>,
size_bytes: 0,
},
input_files: Digest {
hash: Fingerprint<23502f8ccd2f9a66600309139bc0bcf8fbb26194c30736d49fd8574d916fb665>,
size_bytes: 392,
},
immutable_inputs: {},
use_nailgun: [],
},
output_files: {},
output_directories: {
RelativePath(
"dist",
),
},
timeout: None,
execution_slot_variable: None,
concurrency_available: 0,
description: "Run setuptools.build_meta:__legacy__ for //:devtools",
level: Debug,
append_only_caches: {
CacheName(
"pex_root",
): RelativePath(
".cache/pex_root",
),
},
jdk_home: None,
platform_constraint: None,
cache_scope: Successful,
}
Error launching process: Os { code: 26, kind: ExecutableFileBusy, message: "Text file busy" }
I saw e.g. this https://github.com/pantsbuild/pants/issues/10507 but it seems closed. I know what I'm doing there (putting one build system as a step of another) is really a hack but that's how we currently live, and I know there are too many unknowns that I didn't provide in this post, -- so I just try my luck here - can it be there are some potential explanations for that?
Thank you, pants is amazing, I wish C++ is there once, too 🙂 And we'll drop bazel alltogetherenough-analyst-54434
03/15/2022, 10:36 PMenough-analyst-54434
03/15/2022, 10:38 PM../build_backend.pex_pex_shim.sh
- That comes from python_distribution
building.acceptable-football-32760
03/15/2022, 10:38 PMenough-analyst-54434
03/15/2022, 10:38 PMenough-analyst-54434
03/15/2022, 10:39 PMenough-analyst-54434
03/15/2022, 10:41 PMacceptable-football-32760
03/15/2022, 10:54 PMhappy-kitchen-89482
03/15/2022, 11:06 PMenough-analyst-54434
03/15/2022, 11:10 PMfast-nail-55400
03/16/2022, 12:06 PMwitty-crayon-22786
03/16/2022, 6:44 PMwitty-crayon-22786
03/16/2022, 6:46 PMenough-analyst-54434
03/16/2022, 6:50 PMwitty-crayon-22786
03/16/2022, 6:50 PMError launching process: Os { code: 26, kind: ExecutableFileBusy, message: "Text file busy" }
means the first argument is the thing experiencing the issue… it’s not able to start.witty-crayon-22786
03/16/2022, 6:51 PMenough-analyst-54434
03/16/2022, 6:53 PMenough-analyst-54434
03/16/2022, 7:03 PMenough-analyst-54434
03/16/2022, 7:03 PMwitty-crayon-22786
03/16/2022, 7:04 PMenough-analyst-54434
03/16/2022, 7:04 PMwitty-crayon-22786
03/16/2022, 7:04 PMenough-analyst-54434
03/16/2022, 7:05 PMwitty-crayon-22786
03/16/2022, 7:10 PMRelative paths that escape the root are not allowed
witty-crayon-22786
03/16/2022, 7:14 PMenough-analyst-54434
03/16/2022, 7:18 PMworking_directory
though (chroot
in this case). So the bug will be interesting since ../foo + chroot working_dir should == "foo".witty-crayon-22786
03/16/2022, 9:11 PMacceptable-football-32760
03/16/2022, 10:21 PMhundreds-father-404
03/16/2022, 10:24 PMacceptable-football-32760
03/23/2022, 3:09 PM