[llvm] [lit] Add --per-process-output-dir to isolate test_exec_root across concurrent runs (PR #206826)
David Young via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 1 04:45:07 PDT 2026
youngd007 wrote:
> I think more generally useful to me would be to add an option to specify the test output directory for an invocation of lit. This means it's not tied to the process ID specifically and people can use it for other reasons (e.g. CI job IDs etc). Another advantage with that approach is that it could allow reusing of the build directory between runs, meaning you don't completely lose the benefit of things like test run ordering based on previous test runs, because you could reuse the test directories between runs of the script.
That's a good idea. Meta's own infrastructure sets env vars we could read to use or just get the process id on command line if needed. I assume other setups like bazel can provide an id as well. Second commit should have this change ready
https://github.com/llvm/llvm-project/pull/206826
More information about the llvm-commits
mailing list