Repository navigation
docs: name shared/steps/ in the lists of suites root pytest collects - #1065
Conversation
tend-agent
left a comment
There was a problem hiding this comment.
The claim checks out: shared/steps/ really is part of the root pytest run — pyproject.toml's own workspace comment names it two sentences later ("proxy/, shared/steps/ and the install-tend scripts dir aren't packages, so pytest's prepend import mode names their test modules by basename alone"). The edit itself is right.
The same stale list is in three other live files, and the description says it isn't.
The PR body asserts that .github/workflows/ci.yaml "already names shared/steps/ in the comment above its uv run --python 3.12 pytest, so CLAUDE.md is the one place left describing the pre-port set." ci.yaml does mention shared/steps/, but in the interpreter-pinning comment ("the step bodies under shared/steps/ execute on the runner's own /usr/bin/python3") — a different claim about a different thing. Its enumeration is the comment introducing the test: job, and it reads "Every Python test in the repo — pytest collects generator/, proxy/, and the install-tend scripts from the root": stale in exactly the way CLAUDE.md's was.
Two more:
pyproject.toml, the workspace-root comment — "collecting from the root reaches generator/, proxy/, and the install-tend scripts". The next sentence namesshared/steps/, so the comment contradicts itself two lines apart..config/wt.toml, thewt testcomment — "one pytest from the repo root covers every Python test (generator/, proxy/, the install-tend scripts)".
(CHANGELOG.md's #977 entry carries the same list, but it's a historical record of what was true then — leave it.)
The PR's own argument is that a reader of the list comes away thinking the step bodies — the security preflight, the rate-limit gate, the agent supervisor, the outage tracker — are tested elsewhere or not at all. That argument covers all four sites equally; pyproject.toml's is arguably the worst of them, since it's the file that actually configures the collection. Fixing one of four while asserting the rest are already correct leaves the drift in place under a stronger claim. Worth folding the three into this PR — and the "one place left" sentence needs correcting either way.
Where each one is
.github/workflows/ci.yaml— comment abovetest:pyproject.toml— workspace-root header comment.config/wt.toml— comment above[[aliases.test]]
The same enumeration of what a root `uv run pytest` collects appears in `.github/workflows/ci.yaml` (the comment above `test:`), `pyproject.toml` (the workspace-root header), and `.config/wt.toml` (the `wt test` comment). All three predate the bash to Python port of the composite-action step bodies and still omit `shared/steps/`. `pyproject.toml`'s contradicted itself two lines apart, naming `shared/steps/` in the sentence after the list that excluded it. Also reflows the CLAUDE.md paragraph the previous commit pushed to 91 columns, and leaves CHANGELOG.md's copy alone: it records what was true at that release.
|
Right on all three, and the "one place left" claim was wrong in the way you describe:
One gap worth naming: |
Problem
Four live files enumerate the suites a root
uv run pytestcollects, and all four still describe the pre-port set — "generator/, proxy/, and the install-tend scripts". The bash→Python port of the composite-action step bodies (9a330b8,374f1b1) added a fifth directory,shared/steps/, whosetest_*.pyfiles contribute 164 of the 717 tests the root run now collects, about 23% of the Python suite.Those lists are the repo's own statement of what one
pytestcovers, and a session reading any of them comes away thinking the step bodies — the security preflight, the rate-limit gate, the agent supervisor, the outage tracker — are tested somewhere else, or not at all.pyproject.toml's is the sharpest case: it's the file that configures the collection, and its comment contradicts itself two lines apart, namingshared/steps/in the sentence right after the list that omits it.Fix
Add
shared/steps/to all four, and reflow the paragraphs that the added words pushed past their files' wrap width.CLAUDE.md— the Commands sectionpyproject.toml— the workspace-root header comment.github/workflows/ci.yaml— the comment above thetest:job.config/wt.toml— the comment above[[aliases.test]]CHANGELOG.md's #977 entry carries the same list and is left alone — it records what was true at that release.Verification
That run was from the first commit's session;
uvisn't on the PATH in this repo's agent sandbox, so the follow-up commit's verification is CI's owntestjob. Every change in it is a comment or prose line — no Python, no YAML key, nowtstep body — and nothing undergenerator/testsorshared/stepsasserts on these strings (grep -rn 'install-tend scripts\|Every Python test' --include='*.py'is empty).No regression test: the change is a noun in four documentation lists. A test tying those sentences to the set of directories pytest actually collects is the kind of machinery
CLAUDE.mditself rules out — complexity earns its place by preventing a wrong outward action, and a stale doc sentence is not one.