Repository navigation
Select tests that reach changed code through helpers and module objects (0.261.530) - #2019
Merged
Paul Lizer (paullizer) merged 2 commits intoDec 2, 2026
Conversation
…and same-module uses (0.261.530) The pull request for 0.261.524 changed the orchestration planner's prompt and discover_result_aliases, and passed CI without running six test files it broke. select_tests.py did not select them, for three reasons: - The five golden tests call planner.plan_request() on a module from import_module. A changed name counted only when no dot stood before it. - The alias test reaches functions_orchestration_services through HarnessEnvironment in test_support and never names the module. Only a test's own text was read. - A changed name was not followed into the definitions of its own module that use it, so a prompt-only edit selected 3 files and none of the goldens. The selector now follows all three, and the same two forms between application modules (import x as y; from x import name as other). Helper code is followed by definition, and a name counts there only when Python resolves it, so a version bump does not select the files that only check a version floor. Every file selected before is still selected. Over the last 24 pull requests the median selection goes from 300 to 454 files and the mean from 416 to 766. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The composer's Send button gained startModePending in 0.261.520, and this source check still pinned the whole condition. It fails on Development; the full run on this pull request showed it. The test now pins the part it is about: that Send reads uploadsBlocked. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Paul Lizer (paullizer)
merged commit Dec 2, 2026
deeb1c6
into
microsoft:Development
25 checks passed
Paul Lizer (paullizer)
added a commit
to paullizer/simplechat
that referenced
this pull request
Dec 2, 2026
…lts are now 0.261.531 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Lizer (paullizer)
added a commit
to paullizer/simplechat
that referenced
this pull request
Dec 2, 2026
… replies stays 0.261.531 Takes Development's version of the agreement gate test fix, which supersedes this branch's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What happened
The pull request for 0.261.524 changed the orchestration planner's prompt,
plan_request,discover_result_aliases, the plan schema and the relational calculation code.scripts/select_tests.pychose 363 of 2,043 test files, and none of six files the change broke: five golden tests that pin the planner's prompt and payload byte for byte, andtest_orchestration_workflow_results_aliases.py. CI passed without running them.Why they were missed
import_moduleand callplanner.plan_request(...)HarnessEnvironmentfromtest_support, which loadsfunctions_orchestration_services, and callsenv.service_bindings.discover_result_aliases(...). It never names the moduleplan_requestreachesPLANNER_PROMPT_SECTIONSthrough two other planner functionsThe third did not cause the miss on that pull request, because
plan_requestitself changed. It is the path a prompt-only edit takes: the selector chose 3 files for one and none of the golden tests.What changes
import x as ytheny.name, andfrom x import name as other, count as uses ofname.test_support: those definitions, what they use in their own file, what they import in turn, and the module-level code on the way. Helper code is followed by definition, so importing one fixture from a large test file does not pull in the file.Every file selected before is still selected.
Cost
Over the 25 pull requests merged up to 0.261.525 (one ran everything): the median of the other 24 goes from 300 to 454 files and the mean from 416 to 766. Thirteen small ones go from 251–312 to 407–454, four from 272–450 to 500–648, and seven that changed widely used code from 349–1,278 to 1,229–1,726.
A typical planner change runs five jobs of about 100 files instead of three. CI time itself was not measured.
Two things account for the growth: the version bump is now followed into the functions that write the version into what they produce and their callers (about 155 files on every pull request), and a change to anything
log_eventorget_settingsreads now reaches nearly every module.How many tests depend on the application in these ways
Of 2,043 test files, 769 use at least one name of a module only as
object.name, and 1,006 reach at least one application module only through helper code (751 without the version helper). 1,258 do one or the other.For the reviewer
test_support/versioning.pyreadsVERSIONwith a regular expression, which is not a name the helper resolves, so a bump does not select the roughly 830 files that only callassert_app_version_at_least. Following it would add them to every pull request.test_selector_does_not_follow_the_version_floor_helper_on_a_version_bumpfails if the helper starts importingconfig.VERSIONout of propagation would be a rule about one name; this change does not add one.FUNCTIONAL_TEST_SELECTION.md.Tests
functional_tests/test_functional_suite_ci_runner.pyhas four new tests. Three run the selector on a small application and test suite written to a temporary folder, one path each; the selector before this change selects none of the expected files there. The fourth checks that a change toPLANNER_PROMPT_SECTIONSand todiscover_result_aliasesselects the six files in this repository.Run locally: the 15 tests in that file and the three docs integrity files pass (21 passed, 2 skipped). This pull request changes
scripts/select_tests.py, so its own CI runs every test file.Documents:
docs/explanation/fixes/FUNCTIONAL_TEST_SELECTION_INDIRECT_DEPENDENCIES_FIX.md,docs/explanation/features/FUNCTIONAL_TEST_SELECTION.md,docs/contributing/testing.md, release notes for 0.261.530.🤖 Generated with Claude Code