From 38dfd35b0fb5df58d92bd4940ae7302e01e93e2f Mon Sep 17 00:00:00 2001 From: Alex Bradbury Date: Sun, 10 Nov 2024 13:00:53 +0000 Subject: [PATCH] [GHA] Use pip and venv to install buildbot for lit tests Installing a specific version of buildbot is more robust to future changes vs using whatever is packaged for Debian. --- .github/workflows/lit-tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lit-tests.yml b/.github/workflows/lit-tests.yml index 0b55407a7..6af0fa417 100644 --- a/.github/workflows/lit-tests.yml +++ b/.github/workflows/lit-tests.yml @@ -15,8 +15,12 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install -y llvm-18-tools buildbot + sudo apt-get install -y llvm-18-tools sudo ln -s /usr/lib/llvm-18/build/utils/lit/lit.py /usr/bin/lit sudo ln -s /usr/bin/FileCheck-18 /usr/bin/FileCheck + python3 -m venv venv + source venv/bin/activate + pip install buildbot==3.11.7 + echo "PATH=$PATH" >> "$GITHUB_ENV" - name: Run lit tests run: /usr/lib/llvm-18/build/utils/lit/lit.py -v --xfail jenkins/test_build.py test