Skip to content

MNT: Fail the wheel cleanup loudly and skip test-package in the stale check - #198

Merged
larsoner merged 1 commit into
scientific-python:mainfrom
larsoner:fix-silent-cleanup
Nov 30, 2026
Merged

larsoner merged 1 commit into
scientific-python:mainfrom
larsoner:fix-silent-cleanup

Conversation

@larsoner

Copy link
Copy Markdown
Contributor

Follow-up to #195, #196 and #197.

Silent cleanup failures. remove-wheels.yml runs under bash -l {0} without -e, so a failed anaconda remove inside 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 to bash -el {0} (the shell setup-micromamba recommends) so a bad token fails the run, and report-failure.yml then opens an issue. The one command that can exit non-zero on a normal run, the grep -vf that 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-package is uploaded and removed again by ci.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 in check_stale_wheels.py, since ci.yml already reports its own failures. A test checks that the skipped name matches tests/test_package/pyproject.toml. I did not add it to packages-ignore-from-cleanup.txt, because that would also stop remove-wheels.yml from 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

… 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>
@larsoner

Copy link
Copy Markdown
Contributor Author

Thanks for the quick review @matthewfeickert , I'll merge and dispatch to see if things work better 🤞 !

@larsoner
larsoner merged commit 94c0f16 into scientific-python:main Nov 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants