From f98d43210d58d39aaecb7babdd72823b595be182 Mon Sep 17 00:00:00 2001 From: Thomas Sibley Date: Tue, 19 Sep 2023 10:55:15 -0700 Subject: [PATCH] dev: Test against the SingularityCE 3.x series in CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The release of SingularityCE 4.0.0 a few hours ago¹ caused a failure during CI for the release of Nextstrain CLI 7.3.0.² We got unlucky as that release's CI was the first to encounter the issue due to timing. We can test the compatibility of SingularityCE 4.x with both our CI setup process and Singularity runtime at some later point. ¹ ² --- .github/actions/setup-integration-tests/action.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/actions/setup-integration-tests/action.yaml b/.github/actions/setup-integration-tests/action.yaml index 0b4cdaab..ff9ebbf7 100644 --- a/.github/actions/setup-integration-tests/action.yaml +++ b/.github/actions/setup-integration-tests/action.yaml @@ -84,11 +84,14 @@ runs: pushd "$(mktemp -d)" export "$(grep UBUNTU_CODENAME /etc/os-release)" - # Download latest SingularityCE .deb for this version of Ubuntu + # Download latest SingularityCE 3.x series .deb for this version of Ubuntu + # + # XXX TODO: Start testing the SingularityCE 4.x series. + # -trs, 19 Sept 2023 url="$( curl -fsSL --proto '=https' -H "Authorization: Bearer $GITHUB_TOKEN" \ - https://api.github.com/repos/sylabs/singularity/releases/latest \ - | jq -r '.assets | map(select(.name | endswith("\(env.UBUNTU_CODENAME)_amd64.deb"))) | .[0].browser_download_url')" + "https://api.github.com/repos/sylabs/singularity/releases?per_page=100" \ + | jq -r 'map(select(.tag_name | startswith("v3."))) | .[0].assets | map(select(.name | endswith("\(env.UBUNTU_CODENAME)_amd64.deb"))) | .[0].browser_download_url')" curl -fsSL --proto '=https' "$url" > singularity.deb