From 39b1070fa1254c2f220ed520fd6bcfe53ab68c6c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 30 Jul 2026 17:41:53 -0400 Subject: [PATCH] ci: Pin tmt version (to older release) instead of always installing latest Agentic investigation points at https://github.com/teemtee/tmt/issues/5068 as a recent source of flakes. Roll back to an earlier version, and pin to it which can be bumped via renovate. Signed-off-by: Colin Walters --- .github/actions/install-tmt/action.yml | 15 +++++++++++++++ .github/workflows/ci.yml | 8 ++++---- 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .github/actions/install-tmt/action.yml diff --git a/.github/actions/install-tmt/action.yml b/.github/actions/install-tmt/action.yml new file mode 100644 index 0000000000..8fea40d585 --- /dev/null +++ b/.github/actions/install-tmt/action.yml @@ -0,0 +1,15 @@ +name: 'Install tmt' +description: 'Install a pinned version of tmt (Test Management Tool)' +runs: + using: 'composite' + steps: + - name: Install tmt + shell: bash + run: | + set -xeuo pipefail + # Pinned because tmt releases have repeatedly regressed reboot + # handling for the `connect` provisioner we use here (e.g. + # https://github.com/teemtee/tmt/issues/5068); bump deliberately. + # renovate: datasource=pypi depName=tmt + export VERSION=1.74.0 + pip install --user "tmt[provision-virtual]==${VERSION}" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b05af3f3b1..9fa42e5f8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -285,7 +285,7 @@ jobs: with: libvirt: true - name: Install tmt - run: pip install --user "tmt[provision-virtual]" + uses: ./.github/actions/install-tmt - name: Setup env run: | @@ -380,7 +380,7 @@ jobs: with: libvirt: true - name: Install tmt - run: pip install --user "tmt[provision-virtual]" + uses: ./.github/actions/install-tmt - name: Setup env run: | @@ -442,7 +442,7 @@ jobs: with: libvirt: true - name: Install tmt - run: pip install --user "tmt[provision-virtual]" + uses: ./.github/actions/install-tmt - name: Setup env run: | @@ -508,7 +508,7 @@ jobs: with: libvirt: true - name: Install tmt - run: pip install --user "tmt[provision-virtual]" + uses: ./.github/actions/install-tmt - name: Setup env run: |