The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(ci): a listed corpus consumer may land in a sibling PR
Teknium38345d0eae38
diff --git a/tests/ci/test_update_ci_routing.py b/tests/ci/test_update_ci_routing.pyindex 418bc2f01dc..7f5a576b928 100644--- a/tests/ci/test_update_ci_routing.py+++ b/tests/ci/test_update_ci_routing.py@@ -305,9 +305,10 @@ def test_every_test_that_reads_a_shared_fixture_is_routed_by_it():for fixture, listed in cc._SHARED_FIXTURE_CONSUMERS.items():readers = {p for p in _tracked_mentions(Path(fixture).name) if _TEST_FILE.search(p)}assert readers <= set(listed), f"{fixture}: unlisted consumer(s) {sorted(readers - set(listed))}"- if (_REPO / fixture).is_file(): # the fixture's own PRs land it with its consumers- missing = [c for c in listed if not (_REPO / c).is_file()]- assert not missing, f"{fixture}: listed consumer(s) left the tree: {missing}"+ # No "listed consumer left the tree" check: a batch lands the fixture and its+ # readers in separate PRs (a branch stacked on one of them has the corpus but not+ # the Electron / hand-off readers), and routing a path that is not there yet costs+ # nothing. The direction that loses coverage — a reader missing here — is above.on = cc.classify([fixture])for consumer in listed:own = cc.classify([consumer])