Repository navigation
Description
Question
Should the hub's own tests/requirements.txt be tracked by a Dependabot pip entry, or should the hub record that the dependabot.ecosystems check's finding on it is accepted?
Why It Comes Up Now
#2286 item 2 extends spec/audit.py's dependabot.ecosystems check to Python, by the rule that issue sets: a requirements*.txt implies pip for its own directory. Group G of the 2026-11-25 away run carries that change on branch burndown/audit-python-dependabot. Under that rule the hub's self-audit reports one new DRIFT: pip is not declared for directory /tests though tests/requirements.txt is present.
That file was added on 2026-10-23, after the sweep #2286 records, so the sweep did not judge it. It is a mirror rather than a source. PinTests in tests/test_backlog_metrics.py holds each line equal to the exact pins in the scripts' PEP 723 inline blocks. No Dependabot ecosystem reads an inline block.
Nothing gates on the DRIFT. No workflow runs spec/audit.py, and a DRIFT does not change its exit status. So the branch above proceeds, and this question blocks no pull request. Until it is answered, each hub audit report carries the finding.
Options
- Recommended: accept the finding through a suppression. Give
dependabot.ecosystemsasuppressionentry inspec/checks.json, have the check honor a registry driftNote naming(dependabot.ecosystems)for the directories it names, and record that note on the hub's entry with the reason. This follows thepython.directories.declaredprecedent. The reason is that the file cannot be bumped alone:PinTestsfails any Dependabot bump of it until a hand edit moves every matching inline pin too. So an entry there would open a pull request each day that cannot merge as opened. Effect on group G's work: none, it merges as is, and the suppression lands as its own change. - Declare
pipfor/tests, bothmainanddevelop. The bump pull requests then serve as a freshness signal for the inline pins, which nothing else updates. Each one failsPinTestsand needs a hand edit of the inline blocks before it can merge, or is closed. Effect on group G's work: none. The hub's.github/dependabot.ymlgains two entries in a separate change. - Narrow the rule so a requirements file under a test directory implies nothing. This changes the rule Audit Cross-Checks No Python Dependabot Ecosystem, and KiCadLibrary's requirements-dev.txt Is Untracked #2286 set, and it would also hide a real test manifest in a repository whose tests are not a mirror. Effect on group G's work: a follow-up change to
spec/audit_dependabot.py,AUDIT.mdsection 4, and thesetup.dependabot.ecosystemsassert.
Raised from #2286. The pull request carrying the check cites this issue.
Activity
Cross-Check Python Directories Against Dependabot's pip and uv Entries (