Skip to content

[ci] Give the prose doctest step a real tag and an honest label - #65333

Merged
dstrodtman merged 1 commit into
ray-project:masterfrom
dstrodtman:doc-1425-orphaned-doc-tests-step
Aug 10, 2026
Merged

dstrodtman merged 1 commit into
ray-project:masterfrom
dstrodtman:doc-1425-orphaned-doc-tests-step

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

Why this change

.buildkite/others.rayci.yml has a step labeled doc tests, tagged python.

python is declared in no .rules.txt file and emitted by no rule. It isn't in the tag-declaration block of test.rules.txt or always.rules.txt, and no rule emits it. In raycicmd/step_filter.go, acceptTagHit returns early only when runAll is set; the noTagMeansAlways escape doesn't apply because the step does carry a tag, so it falls through to step.hasTagInMap(f.tags) and misses. On non-pull-request builds needRunAllTags returns ["*"], runAll is set, and the step runs.

So the step is postmerge-only, but by accident rather than by intent. Nothing in the file says so, and the behavior rests on a tag that reads like it means something.

Confirmed against real builds:

  • Premerge 71703 — 231 jobs, the broadest recent build, with all five per-library docs example steps present. A job named doc tests is absent.
  • Postmerge 19099 — 923 jobs. doc tests [g14_s1] is present and passed.

It's also the last step in the repo still called doc tests, after #64775 renamed the per-library steps to <library>: docs example tests. git grep 'label:.*doc test' returned exactly this one line. That's a naming collision with five steps that do something else: those execute a library's documentation examples, while this one runs //doc:doctest, the catch-all doctest target for documentation prose that no library owns (tagged team:none). The per-library steps each filter on their own team:<lib>, so this is the only step that reaches it.

What this changes

Tags and label only. No behavior change — the step runs exactly where it ran before.

  • skip-on-premerge states the existing postmerge-only behavior explicitly, instead of leaving it to an unmatched tag. Matches doc: build and doc: linkcheck in doc.rayci.yml, and the postmerge-only minimal-tests step in core.rayci.yml, which uses the same pattern with a comment.
  • doc is the build-and-validation tag, which is what this step is. It does not re-enable the step on premerge: skip tags are rejected in the filter's first pass (hit = !reject(step) && accept(step)) before tag selection runs. That's why doc: build carries doc, a rule-emitted tag, and is still postmerge-only.
  • oss matches the sibling doc steps.
  • python is dropped. It stays on core_minimal_tests_postmerge in core.rayci.yml, where it's harmless because that step also carries real tags and an explicit skip-on-premerge.
  • The label becomes doc: doctest, after the target it runs, matching the doc: prefix the other doc steps use.

Renaming is safe for microcheck step-id selection because ids are positional (g<group>_s<step>) and the step keeps its position in its group. Reordering would be the risky operation; this isn't one.

Testing

Emitted-pipeline differential using the pinned rayci binary (v0.46.0, from the repo's own .rayciversion), rather than inferring from tags. Probe path .readthedocs.yaml, chosen because it emits doc — the tag being added — so this is the case most likely to expose an accidental premerge trigger.

Both runs report selected tags: always doc lint and emit the same 6 steps:

wanda: forge
:test_tube: test-rules [g5_s0]
:lint-roller: lint: {{matrix}} [g11_s0]
:lint-roller: lint: {{matrix}} [g11_s1]
:lint-roller: pre-commit pydoclint [g11_s2]
:lint-roller: lint: validate docs-go scope [g11_s3]

Diffing the two full pipeline YAMLs, the only differences are the probe commit SHAs in BUILDKITE_ARTIFACT_UPLOAD_DESTINATION, which are an artifact of how the probe commit is generated. Everything else is byte-identical, and doc: doctest appears in neither pipeline. So with doc emitted, the step stays off premerge before and after.

Postmerge preservation. doc: build [g9_s2] and doc: linkcheck [g9_s5] both carry skip-on-premerge and both appear on postmerge build 19099, so the added skip tag doesn't remove a step from postmerge.

Filter simulation across four scenarios (prose-only premerge, broad code premerge, docs-infra premerge, and postmerge run-all): identical selection before and after in all four.

Lint. pre-commit run --files .buildkite/others.rayci.yml passes. YAML parses, and the step's depends_on, instance_type, and commands are untouched.

Not a duplicate

gh pr list --repo ray-project/ray --state open searched for others.rayci.yml, "doc tests", and doctest in title and body — no open PR touches this step or this file.

Follow-ups deliberately not in this PR

While measuring this step I found two things that are about the target, not its routing, so they need different reviewers and their own change:

  • //doc:doctest currently collects zero doctests. Of the 204 files in its glob, the 131 .md files contain no >>> prompt, which is the only form pytest collects. The one file in the glob that has a doctest is ray-references/glossary.rst, and the pytest arg is --doctest-glob=*.md, so .rst isn't collected. The three other prose files in the tree carrying >>> are all in the target's own exclude list. Its measured cost is ~8m wall clock for 57.9s of bazel work.
  • bazel/pytest_wrapper.py maps NO_TESTS_COLLECTED to OK, so a target that collects nothing passes green. That applies to every doctest() target in the repo, so any of them could silently stop collecting and stay green.

Happy to open those separately, or to fold the size correction bazel already suggests (Test execution time (57.9s ...) outside of range for LONG tests) into whichever change resolves the collection question, since the right size depends on what the target ends up collecting.

AI assistance

AI assistance (Claude Code) was used to research and draft this change. I reviewed every changed line and ran the verification commands above locally.

The step in others.rayci.yml labeled "doc tests" was tagged `python`, a tag
that no .rules.txt file declares and no rule emits. Premerge tag selection
therefore dropped it on every pull request, and it ran only via the non-pull-
request run-all path. That made it postmerge-only by accident rather than by
intent, and left it as the last step in the repo named "doc tests" after the
per-library steps were renamed to "<library>: docs example tests".

No behavior change. The step keeps running exactly where it ran before:

- `skip-on-premerge` states the existing postmerge-only behavior explicitly,
  matching `doc: build` and `doc: linkcheck` in doc.rayci.yml and the
  postmerge-only minimal-tests step in core.rayci.yml.
- `doc` is the build-and-validation tag, which is what this step is. It does
  not re-enable the step on premerge: skip tags are rejected in the filter's
  first pass, before tag selection runs, which is why `doc: build` carries
  `doc` and is still postmerge-only.
- `oss` matches the sibling doc steps.
- The label becomes "doc: doctest", after the target it runs.

Renaming a step is safe for microcheck step-id selection because ids are
positional (`g<group>_s<step>`); the step keeps its position in the group.

Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman requested a review from a team as a code owner August 10, 2026 16:52

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Buildkite configuration in .buildkite/others.rayci.yml by renaming the doc tests step to doc: doctest and updating its tags to oss, doc, and skip-on-premerge. This change explicitly configures the step to run postmerge-only, correcting a previous configuration where it was implicitly postmerge-only due to an unused tag. Detailed comments have been added to document this behavior. There are no review comments, and I have no additional feedback to provide.

@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Aug 10, 2026
@dstrodtman
dstrodtman enabled auto-merge (squash) August 10, 2026 17:57
@dstrodtman
dstrodtman merged commit 2a78f6a into ray-project:master Aug 10, 2026
7 checks passed
Artimislyy pushed a commit to Artimislyy/ray that referenced this pull request Aug 11, 2026
…project#65333)

## Why this change

`.buildkite/others.rayci.yml` has a step labeled `doc tests`, tagged
`python`.

**`python` is declared in no `.rules.txt` file and emitted by no rule.**
It isn't in the tag-declaration block of `test.rules.txt` or
`always.rules.txt`, and no rule emits it. In `raycicmd/step_filter.go`,
`acceptTagHit` returns early only when `runAll` is set; the
`noTagMeansAlways` escape doesn't apply because the step *does* carry a
tag, so it falls through to `step.hasTagInMap(f.tags)` and misses. On
non-pull-request builds `needRunAllTags` returns `["*"]`, `runAll` is
set, and the step runs.

So the step is postmerge-only, but by accident rather than by intent.
Nothing in the file says so, and the behavior rests on a tag that reads
like it means something.

Confirmed against real builds:

- Premerge
[71703](https://buildkite.com/ray-project/premerge/builds/71703) — 231
jobs, the broadest recent build, with all five per-library docs example
steps present. A job named `doc tests` is **absent**.
- Postmerge
[19099](https://buildkite.com/ray-project/postmerge/builds/19099) — 923
jobs. `doc tests [g14_s1]` is **present** and passed.

It's also the last step in the repo still called `doc tests`, after
ray-project#64775 renamed the per-library steps to `<library>: docs example tests`.
`git grep 'label:.*doc test'` returned exactly this one line. That's a
naming collision with five steps that do something else: those execute a
library's documentation examples, while this one runs `//doc:doctest`,
the catch-all doctest target for documentation prose that no library
owns (tagged `team:none`). The per-library steps each filter on their
own `team:<lib>`, so this is the only step that reaches it.

## What this changes

Tags and label only. **No behavior change** — the step runs exactly
where it ran before.

- **`skip-on-premerge`** states the existing postmerge-only behavior
explicitly, instead of leaving it to an unmatched tag. Matches `doc:
build` and `doc: linkcheck` in `doc.rayci.yml`, and the postmerge-only
minimal-tests step in `core.rayci.yml`, which uses the same pattern with
a comment.
- **`doc`** is the build-and-validation tag, which is what this step is.
It does **not** re-enable the step on premerge: skip tags are rejected
in the filter's first pass (`hit = !reject(step) && accept(step)`)
before tag selection runs. That's why `doc: build` carries `doc`, a
rule-emitted tag, and is still postmerge-only.
- **`oss`** matches the sibling doc steps.
- **`python`** is dropped. It stays on `core_minimal_tests_postmerge` in
`core.rayci.yml`, where it's harmless because that step also carries
real tags and an explicit `skip-on-premerge`.
- The label becomes **`doc: doctest`**, after the target it runs,
matching the `doc:` prefix the other doc steps use.

Renaming is safe for microcheck step-id selection because ids are
positional (`g<group>_s<step>`) and the step keeps its position in its
group. Reordering would be the risky operation; this isn't one.

## Testing

**Emitted-pipeline differential using the pinned rayci binary**
(`v0.46.0`, from the repo's own `.rayciversion`), rather than inferring
from tags. Probe path `.readthedocs.yaml`, chosen because it emits `doc`
— the tag being added — so this is the case most likely to expose an
accidental premerge trigger.

Both runs report `selected tags: always doc lint` and emit the same 6
steps:

```
wanda: forge
:test_tube: test-rules [g5_s0]
:lint-roller: lint: {{matrix}} [g11_s0]
:lint-roller: lint: {{matrix}} [g11_s1]
:lint-roller: pre-commit pydoclint [g11_s2]
:lint-roller: lint: validate docs-go scope [g11_s3]
```

Diffing the two full pipeline YAMLs, the only differences are the probe
commit SHAs in `BUILDKITE_ARTIFACT_UPLOAD_DESTINATION`, which are an
artifact of how the probe commit is generated. Everything else is
byte-identical, and `doc: doctest` appears in neither pipeline. So with
`doc` emitted, the step stays off premerge before and after.

**Postmerge preservation.** `doc: build [g9_s2]` and `doc: linkcheck
[g9_s5]` both carry `skip-on-premerge` and both appear on postmerge
build 19099, so the added skip tag doesn't remove a step from postmerge.

**Filter simulation** across four scenarios (prose-only premerge, broad
code premerge, docs-infra premerge, and postmerge run-all): identical
selection before and after in all four.

**Lint.** `pre-commit run --files .buildkite/others.rayci.yml` passes.
YAML parses, and the step's `depends_on`, `instance_type`, and commands
are untouched.

## Not a duplicate

`gh pr list --repo ray-project/ray --state open` searched for
`others.rayci.yml`, `"doc tests"`, and `doctest` in title and body — no
open PR touches this step or this file.

## Follow-ups deliberately not in this PR

While measuring this step I found two things that are about the
*target*, not its routing, so they need different reviewers and their
own change:

- **`//doc:doctest` currently collects zero doctests.** Of the 204 files
in its glob, the 131 `.md` files contain no `>>>` prompt, which is the
only form pytest collects. The one file in the glob that has a doctest
is `ray-references/glossary.rst`, and the pytest arg is
`--doctest-glob=*.md`, so `.rst` isn't collected. The three other prose
files in the tree carrying `>>>` are all in the target's own exclude
list. Its measured cost is ~8m wall clock for 57.9s of bazel work.
- **`bazel/pytest_wrapper.py` maps `NO_TESTS_COLLECTED` to `OK`**, so a
target that collects nothing passes green. That applies to every
`doctest()` target in the repo, so any of them could silently stop
collecting and stay green.

Happy to open those separately, or to fold the size correction bazel
already suggests (`Test execution time (57.9s ...) outside of range for
LONG tests`) into whichever change resolves the collection question,
since the right size depends on what the target ends up collecting.

## AI assistance

AI assistance (Claude Code) was used to research and draft this change.
I reviewed every changed line and ran the verification commands above
locally.

Signed-off-by: Douglas Strodtman <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…project#65333)

## Why this change

`.buildkite/others.rayci.yml` has a step labeled `doc tests`, tagged
`python`.

**`python` is declared in no `.rules.txt` file and emitted by no rule.**
It isn't in the tag-declaration block of `test.rules.txt` or
`always.rules.txt`, and no rule emits it. In `raycicmd/step_filter.go`,
`acceptTagHit` returns early only when `runAll` is set; the
`noTagMeansAlways` escape doesn't apply because the step *does* carry a
tag, so it falls through to `step.hasTagInMap(f.tags)` and misses. On
non-pull-request builds `needRunAllTags` returns `["*"]`, `runAll` is
set, and the step runs.

So the step is postmerge-only, but by accident rather than by intent.
Nothing in the file says so, and the behavior rests on a tag that reads
like it means something.

Confirmed against real builds:

- Premerge
[71703](https://buildkite.com/ray-project/premerge/builds/71703) — 231
jobs, the broadest recent build, with all five per-library docs example
steps present. A job named `doc tests` is **absent**.
- Postmerge
[19099](https://buildkite.com/ray-project/postmerge/builds/19099) — 923
jobs. `doc tests [g14_s1]` is **present** and passed.

It's also the last step in the repo still called `doc tests`, after
ray-project#64775 renamed the per-library steps to `<library>: docs example tests`.
`git grep 'label:.*doc test'` returned exactly this one line. That's a
naming collision with five steps that do something else: those execute a
library's documentation examples, while this one runs `//doc:doctest`,
the catch-all doctest target for documentation prose that no library
owns (tagged `team:none`). The per-library steps each filter on their
own `team:<lib>`, so this is the only step that reaches it.

## What this changes

Tags and label only. **No behavior change** — the step runs exactly
where it ran before.

- **`skip-on-premerge`** states the existing postmerge-only behavior
explicitly, instead of leaving it to an unmatched tag. Matches `doc:
build` and `doc: linkcheck` in `doc.rayci.yml`, and the postmerge-only
minimal-tests step in `core.rayci.yml`, which uses the same pattern with
a comment.
- **`doc`** is the build-and-validation tag, which is what this step is.
It does **not** re-enable the step on premerge: skip tags are rejected
in the filter's first pass (`hit = !reject(step) && accept(step)`)
before tag selection runs. That's why `doc: build` carries `doc`, a
rule-emitted tag, and is still postmerge-only.
- **`oss`** matches the sibling doc steps.
- **`python`** is dropped. It stays on `core_minimal_tests_postmerge` in
`core.rayci.yml`, where it's harmless because that step also carries
real tags and an explicit `skip-on-premerge`.
- The label becomes **`doc: doctest`**, after the target it runs,
matching the `doc:` prefix the other doc steps use.

Renaming is safe for microcheck step-id selection because ids are
positional (`g<group>_s<step>`) and the step keeps its position in its
group. Reordering would be the risky operation; this isn't one.

## Testing

**Emitted-pipeline differential using the pinned rayci binary**
(`v0.46.0`, from the repo's own `.rayciversion`), rather than inferring
from tags. Probe path `.readthedocs.yaml`, chosen because it emits `doc`
— the tag being added — so this is the case most likely to expose an
accidental premerge trigger.

Both runs report `selected tags: always doc lint` and emit the same 6
steps:

```
wanda: forge
:test_tube: test-rules [g5_s0]
:lint-roller: lint: {{matrix}} [g11_s0]
:lint-roller: lint: {{matrix}} [g11_s1]
:lint-roller: pre-commit pydoclint [g11_s2]
:lint-roller: lint: validate docs-go scope [g11_s3]
```

Diffing the two full pipeline YAMLs, the only differences are the probe
commit SHAs in `BUILDKITE_ARTIFACT_UPLOAD_DESTINATION`, which are an
artifact of how the probe commit is generated. Everything else is
byte-identical, and `doc: doctest` appears in neither pipeline. So with
`doc` emitted, the step stays off premerge before and after.

**Postmerge preservation.** `doc: build [g9_s2]` and `doc: linkcheck
[g9_s5]` both carry `skip-on-premerge` and both appear on postmerge
build 19099, so the added skip tag doesn't remove a step from postmerge.

**Filter simulation** across four scenarios (prose-only premerge, broad
code premerge, docs-infra premerge, and postmerge run-all): identical
selection before and after in all four.

**Lint.** `pre-commit run --files .buildkite/others.rayci.yml` passes.
YAML parses, and the step's `depends_on`, `instance_type`, and commands
are untouched.

## Not a duplicate

`gh pr list --repo ray-project/ray --state open` searched for
`others.rayci.yml`, `"doc tests"`, and `doctest` in title and body — no
open PR touches this step or this file.

## Follow-ups deliberately not in this PR

While measuring this step I found two things that are about the
*target*, not its routing, so they need different reviewers and their
own change:

- **`//doc:doctest` currently collects zero doctests.** Of the 204 files
in its glob, the 131 `.md` files contain no `>>>` prompt, which is the
only form pytest collects. The one file in the glob that has a doctest
is `ray-references/glossary.rst`, and the pytest arg is
`--doctest-glob=*.md`, so `.rst` isn't collected. The three other prose
files in the tree carrying `>>>` are all in the target's own exclude
list. Its measured cost is ~8m wall clock for 57.9s of bazel work.
- **`bazel/pytest_wrapper.py` maps `NO_TESTS_COLLECTED` to `OK`**, so a
target that collects nothing passes green. That applies to every
`doctest()` target in the repo, so any of them could silently stop
collecting and stay green.

Happy to open those separately, or to fold the size correction bazel
already suggests (`Test execution time (57.9s ...) outside of range for
LONG tests`) into whichever change resolves the collection question,
since the right size depends on what the target ends up collecting.

## AI assistance

AI assistance (Claude Code) was used to research and draft this change.
I reviewed every changed line and ran the verification commands above
locally.

Signed-off-by: Douglas Strodtman <[email protected]>
Signed-off-by: 400Ping <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…project#65333)

## Why this change

`.buildkite/others.rayci.yml` has a step labeled `doc tests`, tagged
`python`.

**`python` is declared in no `.rules.txt` file and emitted by no rule.**
It isn't in the tag-declaration block of `test.rules.txt` or
`always.rules.txt`, and no rule emits it. In `raycicmd/step_filter.go`,
`acceptTagHit` returns early only when `runAll` is set; the
`noTagMeansAlways` escape doesn't apply because the step *does* carry a
tag, so it falls through to `step.hasTagInMap(f.tags)` and misses. On
non-pull-request builds `needRunAllTags` returns `["*"]`, `runAll` is
set, and the step runs.

So the step is postmerge-only, but by accident rather than by intent.
Nothing in the file says so, and the behavior rests on a tag that reads
like it means something.

Confirmed against real builds:

- Premerge
[71703](https://buildkite.com/ray-project/premerge/builds/71703) — 231
jobs, the broadest recent build, with all five per-library docs example
steps present. A job named `doc tests` is **absent**.
- Postmerge
[19099](https://buildkite.com/ray-project/postmerge/builds/19099) — 923
jobs. `doc tests [g14_s1]` is **present** and passed.

It's also the last step in the repo still called `doc tests`, after
ray-project#64775 renamed the per-library steps to `<library>: docs example tests`.
`git grep 'label:.*doc test'` returned exactly this one line. That's a
naming collision with five steps that do something else: those execute a
library's documentation examples, while this one runs `//doc:doctest`,
the catch-all doctest target for documentation prose that no library
owns (tagged `team:none`). The per-library steps each filter on their
own `team:<lib>`, so this is the only step that reaches it.

## What this changes

Tags and label only. **No behavior change** — the step runs exactly
where it ran before.

- **`skip-on-premerge`** states the existing postmerge-only behavior
explicitly, instead of leaving it to an unmatched tag. Matches `doc:
build` and `doc: linkcheck` in `doc.rayci.yml`, and the postmerge-only
minimal-tests step in `core.rayci.yml`, which uses the same pattern with
a comment.
- **`doc`** is the build-and-validation tag, which is what this step is.
It does **not** re-enable the step on premerge: skip tags are rejected
in the filter's first pass (`hit = !reject(step) && accept(step)`)
before tag selection runs. That's why `doc: build` carries `doc`, a
rule-emitted tag, and is still postmerge-only.
- **`oss`** matches the sibling doc steps.
- **`python`** is dropped. It stays on `core_minimal_tests_postmerge` in
`core.rayci.yml`, where it's harmless because that step also carries
real tags and an explicit `skip-on-premerge`.
- The label becomes **`doc: doctest`**, after the target it runs,
matching the `doc:` prefix the other doc steps use.

Renaming is safe for microcheck step-id selection because ids are
positional (`g<group>_s<step>`) and the step keeps its position in its
group. Reordering would be the risky operation; this isn't one.

## Testing

**Emitted-pipeline differential using the pinned rayci binary**
(`v0.46.0`, from the repo's own `.rayciversion`), rather than inferring
from tags. Probe path `.readthedocs.yaml`, chosen because it emits `doc`
— the tag being added — so this is the case most likely to expose an
accidental premerge trigger.

Both runs report `selected tags: always doc lint` and emit the same 6
steps:

```
wanda: forge
:test_tube: test-rules [g5_s0]
:lint-roller: lint: {{matrix}} [g11_s0]
:lint-roller: lint: {{matrix}} [g11_s1]
:lint-roller: pre-commit pydoclint [g11_s2]
:lint-roller: lint: validate docs-go scope [g11_s3]
```

Diffing the two full pipeline YAMLs, the only differences are the probe
commit SHAs in `BUILDKITE_ARTIFACT_UPLOAD_DESTINATION`, which are an
artifact of how the probe commit is generated. Everything else is
byte-identical, and `doc: doctest` appears in neither pipeline. So with
`doc` emitted, the step stays off premerge before and after.

**Postmerge preservation.** `doc: build [g9_s2]` and `doc: linkcheck
[g9_s5]` both carry `skip-on-premerge` and both appear on postmerge
build 19099, so the added skip tag doesn't remove a step from postmerge.

**Filter simulation** across four scenarios (prose-only premerge, broad
code premerge, docs-infra premerge, and postmerge run-all): identical
selection before and after in all four.

**Lint.** `pre-commit run --files .buildkite/others.rayci.yml` passes.
YAML parses, and the step's `depends_on`, `instance_type`, and commands
are untouched.

## Not a duplicate

`gh pr list --repo ray-project/ray --state open` searched for
`others.rayci.yml`, `"doc tests"`, and `doctest` in title and body — no
open PR touches this step or this file.

## Follow-ups deliberately not in this PR

While measuring this step I found two things that are about the
*target*, not its routing, so they need different reviewers and their
own change:

- **`//doc:doctest` currently collects zero doctests.** Of the 204 files
in its glob, the 131 `.md` files contain no `>>>` prompt, which is the
only form pytest collects. The one file in the glob that has a doctest
is `ray-references/glossary.rst`, and the pytest arg is
`--doctest-glob=*.md`, so `.rst` isn't collected. The three other prose
files in the tree carrying `>>>` are all in the target's own exclude
list. Its measured cost is ~8m wall clock for 57.9s of bazel work.
- **`bazel/pytest_wrapper.py` maps `NO_TESTS_COLLECTED` to `OK`**, so a
target that collects nothing passes green. That applies to every
`doctest()` target in the repo, so any of them could silently stop
collecting and stay green.

Happy to open those separately, or to fold the size correction bazel
already suggests (`Test execution time (57.9s ...) outside of range for
LONG tests`) into whichever change resolves the collection question,
since the right size depends on what the target ends up collecting.

## AI assistance

AI assistance (Claude Code) was used to research and draft this change.
I reviewed every changed line and ran the verification commands above
locally.

Signed-off-by: Douglas Strodtman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants