forked from llvm/llvm-zorg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lldb-cmake-matrix] Fix environment leak across runs
Any `export` statement in a pipeline description will leak across different compiler stages or, worse, between two runs of the entire pipeline. This was seen recently in two ways: 1. The Dwarf 2 / 4 runs were using a Clang 13.0 built on a previous pipeline run, and they were failing because some tests require ToT clang. 2. The Dwarf 2 / 4 runs were trying to use Clang 13.0, but the workspace was cleaned after the previous pipeline run, resulting in a "cannot find clang" error. This commit addresses the issue by no longer using environment variables to communicate which Clang to use when building LLDB tests. Instead, we now use parameters to the `test_monorepo_build.py` script. More generally though, there are still a lot of `export` statements in the pipeline, and these should be examined in isolation to determine how to best remove them. Jenkins provides ways to set environment variables more carefully [1]; however, for the purposes of the LLDB test compiler variable, this is dangerous: we don't want such a flag to last any longer than the CMake configure step, so this commit uses the script argument approach. [1]: https://www.jenkins.io/doc/book/pipeline/syntax/#environment Differential Revision: https://reviews.llvm.org/D132035
- Loading branch information
1 parent
da73b75
commit 3175929
Showing
3 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters