Skip to content

Track the Hub's tests/requirements.txt With Dependabot, or Accept the dependabot.ecosystems Finding on It #4459

Backlog

Description

@ptr727

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

  1. Recommended: accept the finding through a suppression. Give dependabot.ecosystems a suppression entry in spec/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 the python.directories.declared precedent. The reason is that the file cannot be bumped alone: PinTests fails 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.
  2. Declare pip for /tests, both main and develop. The bump pull requests then serve as a freshness signal for the inline pins, which nothing else updates. Each one fails PinTests and 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.yml gains two entries in a separate change.
  3. 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.md section 4, and the setup.dependabot.ecosystems assert.

Raised from #2286. The pull request carrying the check cites this issue.

Activity

  1. added
    decision
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions