Skip to content

Repo checker: with no input at the root, the page checks a subfolder file it picked itself (transformers: benchmark_v2/requirements.txt) where wheelgap DIR asks #238

Done

Description

@patrickballard

When a repo has no input at its root, the page checks the shallowest lockfile or requirements.txt it finds in a subfolder, on its own, with no word about the others. wheelgap DIR (wheelgap/wheelgap#656 and wheelgap/wheelgap#662, after 0.13.0) does that only when there is exactly one such file and nothing says it's the wrong one. With several, or with one whose name says it's for benchmarks, docs, tests or examples, it lists them and asks.

The two now give different answers for the same repo. From the 300-repo corpus (wheelgap main at 7983f7e, trees rebuilt from git to depth 3), take the 48 repos where wheelgap DIR lists files to choose from. Running the page's plan() and autoPick() on the same trees, with the step from an unreadable root pyproject.toml to the next file, the page checks a file it picked itself in 39 of them. For example:

repo the page checks wheelgap DIR
huggingface/transformers benchmark_v2/requirements.txt lists it, and says its only inputs are named for development, tests, docs or benchmarks
vllm-project/vllm benchmarks/kernels/requirements.txt lists 12 requirements files to choose from
huggingface/diffusers benchmarks/requirements.txt lists 35, all named for development, tests, docs or benchmarks
python/cpython Doc/pylock.toml lists it: a docs file
langchain-ai/langchain libs/core/uv.lock lists 21 subfolder inputs
Shubhamsaboo/awesome-llm-apps one example agent's uv.lock lists 131
Significant-Gravitas/AutoGPT classic/poetry.lock lists 4

A green verdict for transformers that comes from its benchmark requirements is the answer wheelgap's own rules were written to avoid. (The corpus's estimate counted these 46 repos as dead ends. They aren't: the page guesses.)

Where

  • autoPick() and pickLockfile() in site/check/check-logic.mjs: any exactly-named file wins, shallowest first. isSideFile() (the copy of wheelgap's _SIDE_WORDS) is applied only to requirements files under other names.
  • plan() and _lockfile_sort_key() in site/check/driver.py list the files.
  • withoutUnreadable() and onResult() in site/check/check.mjs: the step to the next file after an unreadable root pyproject.toml.
  • The rules to match are load_directory() and _nested_inputs() in wheelgap's src/wheelgap/sources.py on main. The checker pins 0.13.0 (Bump the wheelgap pins after 0.14.0: the checker's (0.13.0) and the nightly scan's (0.9.0) #208), so for now they have to be mirrored in JavaScript, as isSideFile() is, with a comment naming the functions.

What to do

  • A file in the root, or in the folder a link names: as today.
  • Otherwise take one candidate per subfolder, up to 3 folders down, as wheelgap FOLDER would read it: its first lockfile name, else a pyproject.toml. Leave out the folders plan() already skips.
  • Exactly one candidate, not side-named, and the root isn't a project of its own (no setup.py, setup.cfg, or pyproject.toml with [project], [build-system] or Poetry dependencies): check it, and say so in the verdict detail: No input at the root: checked backend/uv.lock, the only one in a subfolder.
  • Several, or only side-named ones, or the root is a project: no pick. Show them with chooseFile(), as feat(check): discover and prioritize additional requirements*.txt files in plan() #229 does for requirements files under other names, with the reason in the same words wheelgap DIR uses.
  • The step from an unreadable root pyproject.toml follows the same rule. It never lands on benchmark_v2/requirements.txt by itself.
  • A link to a file, or a file picked under "Lockfile", is checked as today.

Done when:

  • tests/site/check-logic.test.mjs: autoPick() on path lists shaped like MiroFish (only backend/uv.lock: picked), transformers (a root pyproject.toml with no dependencies and benchmark_v2/requirements.txt: choose), langchain (many libs/*/uv.lock: choose), cpython (Doc/pylock.toml: choose) and a repo with a root setup.py and one tools/requirements.txt (choose).
  • tests/site/check-page.test.mjs: after the root pyproject.toml fallback, a repo shaped like transformers shows the chooser, not a result.
  • Repos with a root input get the same pick as before: the existing autoPick() and pickLockfile() tests pass unchanged.
  • In the PR: huggingface/transformers and langchain-ai/langchain before and after, as screenshots.

Activity

  1. added
    bug
    help wanted
    high impact
    on Nov 23, 2026
  2. added a commit that references this issue on Nov 23, 2026
    d7a762f
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

    bughelp wantedhigh impact

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions