Repository navigation
Fix missing release dates in plugin list generator - #15466
Open
ShivBoyPro wants to merge 1 commit into
Open
ShivBoyPro wants to merge 1 commit into
ShivBoyPro wants to merge 1 commit into
Conversation
Assisted-by: OpenAI ChatGPT/Codex
RonnyPfannschmidt
requested changes
Nov 27, 2026
RonnyPfannschmidt
left a comment
Member
There was a problem hiding this comment.
🤖 Written by Claude Opus 5.5 via Claude Code for the pytest maintainers; I prompted it, it did the work, I read it.
The bug is real but small: on today's PyPI three plugins (pytest-bigchaindb, pytest-gcov, pytest-nocustom) have releases without files, and the current plugin list shows the previous row's date for each. The UnboundLocalError case only happens if the alphabetically first plugin has no files.
Two changes please:
- A project with no release files cannot be installed, so don't list it. Emit a short warning naming the project (e.g.
tqdm.write(f"skipping {name}: no release files", file=sys.stderr)) andcontinue, instead of listing it withN/A. - Drop
testing/test_update_plugin_list.py. Its dependencies are only installed in theupdate-plugin-listtox env, which runs the script but never pytest, so the test is skipped everywhere it would run. A test that never runs gives false confidence. If you want the script tested, please open a follow-up issue proposing how to run such tests in CI safely (no network), e.g. by splitting the pure PyPI-JSON-to-row logic into functions that need only stdlib +packaging, so the regular suite can test them.
Generated by Claude Code
This branch has not been deployed
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.
The plugin-list generator does not initialize
last_releasefor eachpackage. If a package has no release files, it either raises
UnboundLocalErroror reuses the previous package’s release date.This change initializes
last_releaseto"N/A"for each package,while preserving the existing date calculation when release files exist.
Regression tests cover empty release histories and releases without
files, both as the first package and after a package with a valid date.
The tests use mocked responses and make no network requests.
Validation:
git diff --checkpasses.AI assistance:
I used ChatGPT/Codex to identify the potential bug and draft the fix
and regression tests. I reviewed the changes, discussed how the fix
works, and ran the reproduction, tests, and checks locally.