Repository navigation
MNT: Fail the wheel cleanup loudly and skip test-package in the stale check - #198
Merged
Merged
Conversation
… check remove-wheels.yml ran under "bash -l" without -e, so a failed "anaconda remove" inside the loop was ignored. After Anaconda revoked every token on November 24, the job kept passing while removing nothing. Run it under "bash -el" (setup-micromamba's recommended shell) and tolerate the one expected non-zero exit, grep -v filtering out every package. test-package is uploaded and removed again by ci.yml. When that cleanup failed, the stale check found it on the channel, had nowhere to report it, and opened scientific-python#197. Skip it there; ci.yml already reports its own failures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
matthewfeickert
approved these changes
Nov 30, 2026
Contributor
Author
|
Thanks for the quick review @matthewfeickert , I'll merge and dispatch to see if things work better 🤞 ! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #195, #196 and #197.
Silent cleanup failures.
remove-wheels.ymlruns underbash -l {0}without-e, so a failedanaconda removeinside the loop is ignored and the job still passes. That is what happened after Anaconda revoked every token on November 24: the daily runs stayed green, but on November 30, 7 of the 44 checked packages (Cython, boost-histogram, shap, pydata-sphinx-theme, blis, scikit-image, ipython) still had versions older than the 30-day limit, the oldest from October 25. This switches tobash -el {0}(the shell setup-micromamba recommends) so a bad token fails the run, andreport-failure.ymlthen opens an issue. The one command that can exit non-zero on a normal run, thegrep -vfthat drops ignored packages (exit 1 when it filters out everything), is guarded so only that case is tolerated. A missing ignore file still fails.#197.
test-packageis uploaded and removed again byci.yml. When that cleanup failed (#196), the daily stale check found it on the channel, couldn't find a GitHub repository for it, and opened #197. This skips it incheck_stale_wheels.py, sinceci.ymlalready reports its own failures. A test checks that the skipped name matchestests/test_package/pyproject.toml. I did not add it topackages-ignore-from-cleanup.txt, because that would also stopremove-wheels.ymlfrom deleting it, and that is the backstop if the CI cleanup breaks again.After merging, I plan to dispatch "Remove old wheels" by hand to clear the overdue versions listed above.
🤖 Generated with Claude Code