From b915b86e6d270bdca3ea35718a7f992c04722e69 Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Wed, 18 Nov 2026 18:04:43 +0000 Subject: [PATCH 1/2] CI: Fail the site-packages test step when tests fail The sdist and wheel jobs ran the tests with pushd/popd, so the exit status of the step was that of popd and failed tests did not fail the job. Make the test run the last command of the step. --- ci/azure/azure_template_posix.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/azure/azure_template_posix.yml b/ci/azure/azure_template_posix.yml index 9c252848ac..ee66a5bfb2 100644 --- a/ci/azure/azure_template_posix.yml +++ b/ci/azure/azure_template_posix.yml @@ -204,9 +204,9 @@ jobs: - script: | echo "Testing site packages" mkdir test_run_dir - pushd test_run_dir + cd test_run_dir + # Last command: the step fails with the exit status of the tests python -c "import arch; arch.test(['-n', 'auto', '--junitxml=../junit/test-results.xml'])" - popd displayName: 'Run tests (site-packages)' condition: or(eq(variables['test.wheel'], 'true'), eq(variables['test.sdist'], 'true')) From 8e7f36c5c5a4aaa6bec223eef4abb26326ba19d0 Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Wed, 18 Nov 2026 18:13:46 +0000 Subject: [PATCH 2/2] CI: Run the pip upgrade in the wheel install step A misplaced closing quote made the upgrade of pip and wheel part of the echo, so it was printed and not run. --- ci/azure/azure_template_posix.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/azure/azure_template_posix.yml b/ci/azure/azure_template_posix.yml index ee66a5bfb2..2d2aa020e2 100644 --- a/ci/azure/azure_template_posix.yml +++ b/ci/azure/azure_template_posix.yml @@ -168,8 +168,8 @@ jobs: condition: eq(variables['test.sdist'], 'true') - script: | - echo "Installing to site packages (wheel) - python -m pip install pip wheel --upgrade" + echo "Installing to site packages (wheel)" + python -m pip install pip wheel --upgrade python -m pip wheel . --no-deps --wheel-dir ./dist/ WHL=$(ls -t ./dist/arch-*.whl | head -1) pip install ${WHL} -v