Repository navigation
test: translation-support inventory on 10.x, every public query member classified and probed (port of #384, #430) - #431
Merged
CaffeinatedCoder merged 3 commits intoOct 25, 2026
Conversation
…ified and probed against EF Core (#384) The public API's query members are discovered (QueryMembers: every public method and instance property whose receiver, a parameter or the result is a range, a multirange or a value set; one key per overload, generic families kept generic; converters, constants and span/out overloads out by rule) and each is classified in test/oracles/translation-support.json as server, client (with the reason) or planned (with the issue). - TranslationSupportInventoryTests (conventions): every key classified, no stale entry, every entry with what its support needs. - TranslationSupportProbeTests (integration): 811 keys over 2,254 member/type cells, each with a column operand, first where the server must evaluate it (filter, null test, ordering for a non-nullable value, HAVING for an aggregate), then in a final projection, against memory over the loaded rows. The first run found #385: EF Core rewrites any Compare(a, b) to the natural order, so RangeLowerBoundComparer.Compare runs as SQL in the range order. Seeded by merge-translation-dropped.patch. (cherry picked from commit a1263b7) Ported to release/10.x for #430. The Composition helpers the probe uses (Projected, CompositionRunner.IsNull and FirstLine, and the NullRule they rely on) come unchanged from 30a0e24 (#383), whose sweeps are not on this line. The #385 cells are registered against #396, the 10.x issue. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…an the calendar factories under #191 (#384) The reasons quoted docs/efcore.md#what-runs-where as it stood before #399 listed every public query member and #402 rewrote the in-memory reasons. Each now follows its row. The calendar factories over a column are planned with #191, not client. No classification of a server or client member changes. (cherry picked from commit 14179de) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…pport reason (#430) On release/10.x, docs/efcore.md#known-differences-in-1020 names RangeLowerBoundComparer in a query, with #396 as the fix. The reason now says so and names the 10.x issue. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closed
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.
Closes #430
Port of #384 (PR #386, merged into
mainas c6a7b5f) torelease/10.x, for 10.3.0 (#408). Fixed only on this branch, so #430 is closed by hand after the merge.Problem
The 10.3.0 additions (#405, #406, #191) are done only when
test/oracles/translation-support.jsonclassifies themserverand the translation-support probe passes. Neither the inventory nor the probe was on this line. So no 10.3.0 cherry-pick could meet its "done when", and a 10.x public member whose translation appears or disappears was noticed only if a hand-written test called it.Change
e8b8fed: cherry-pick of a1263b7 (-x):QueryMembers,TranslationSupport.cs,translation-support.json,TranslationSupportInventoryTests,TranslationSupportProbeTests, the oracle entry, the seed, the E30/E31heldByand thedocs/oracles.mdsection. The conflicts were all context from the composition sweeps (test: composition sweeps — outer joins, nullable operand pairs, quantifiers, repeated execution, filtered aggregates, declared nullability (#375–#380) #383), which aren't on this line. I kept 10.x's side and added only the inventory's own lines: itsoracles.jsonentry, itscandidates.jsonrow and itsAGENTS.mdsentence.Projected,CompositionRunner.IsNullandCompositionRunner.FirstLine, andIsNullrelies onNullRule. The fourComposition/files come unchanged from 30a0e24 (test: composition sweeps — outer joins, nullable operand pairs, quantifiers, repeated execution, filtered aggregates, declared nullability (#375–#380) #383). Trimming them would have left copies on the two lines that differ, and a later port of the composition sweeps can now add only the sweep classes.candidate fixedwhen 10.x: RangeLowerBoundComparer.Compare in a query runs in the range order (port of #385) #396 lands.fc14ce4: cherry-pick of 14179de (-x). The reasons follow docs: what-runs-where omits Equals, RangeSet.Count, the indexers, Values, Parse/ToString and the NodaTime conversions (found by #384) #399 and docs: the in-memory reasons overstate what PostgreSQL lacks, and the Shift/Expand one is stale since #224 #402, both already ported here (docs: list every public query member in what-runs-where (10.x, #399) #401, docs: give each in-memory operation its real reason (10.x, #402) #404). The tables indocs/efcore.md#what-runs-whereare identical on both lines. The calendar factories areplannedwith Translate the calendar factories when they read a column #191.03ff600, 10.x only: on this line,docs/efcore.md#known-differences-in-1020namesRangeLowerBoundComparerin a query. Its reason now says so and names 10.x: RangeLowerBoundComparer.Compare in a query runs in the range order (port of #385) #396.No package change, no changelog row, and no changed answer.
Tests
Run on
release/10.xwith SDK 10.0.402:TranslationSupportInventoryTests(every 10.x query member classified, no stale entry) and the oracle tests.TranslationSupportProbeTestspasses on all four 10.x integration legs: PostgreSQL 16 and 18, each on the EF floor and on EF Core 10.0.13 with Npgsql EF 10.0.3 (deps.json checked). Only the 10.x: RangeLowerBoundComparer.Compare in a query runs in the range order (port of #385) #396 candidate cells disagree.merge-translation-dropped.patchapplied: the probe fails with "classified server, but refused" forMergeon every range type. Reverted.🤖 Generated with Claude Code