Skip to content

Remove row value regression test's global mapper dependency - #3959

Merged
roji merged 1 commit into
mainfrom
roji-row-value-test-data-source-fix
Oct 14, 2026
Merged

roji merged 1 commit into
mainfrom
roji-row-value-test-data-source-fix

Conversation

@roji

@roji roji commented Oct 14, 2026

Copy link
Copy Markdown
Member

Follow-up to #3953, related to #3933.

Configure record-to-tuple mapping on the data source used by Row_value_projection_over_filtered_navigation, instead of updating NpgsqlConnection.GlobalTypeMapper after a shared data source may already have been initialized. This keeps the configuration local to the regression test and removes its test-order dependency.

The isolated AdHocQueryFiltersQueryNpgsqlTest class in Release on PostgreSQL 18.4 reproduced both sync/async failures before the change (29 passed, 2 failed) and passes all 31 tests after the change. No product code changes.

Keep record-to-tuple mapping local to the regression test so it does not depend on global mapper initialization order.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d9e678d6-bbc7-403a-926d-dda2b087f5a7
Copilot AI balanced review requested due to automatic review settings October 14, 2026 19:40
@roji
roji enabled auto-merge (squash) October 14, 2026 19:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused test-only change removes the global configuration dependency without altering regression coverage.

0 open findings

What changed in this PR

Makes the row-value regression test independent of shared data-source initialization order, preserving coverage for #3933 without changing product code.

Changes:

  • Removes global record-to-tuple mapping configuration.
  • Enables record-to-tuple mapping on the test’s data source.
File Description
test/​EFCore.PG.FunctionalTests/​Query/​AdHocQueryFiltersQueryNpgsqlTest.cs Localizes tuple mapping configuration while preserving regression assertions.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@roji
roji disabled auto-merge October 14, 2026 20:07
@roji
roji merged commit ec8f711 into main Oct 14, 2026
14 checks passed
@roji
roji deleted the roji-row-value-test-data-source-fix branch October 14, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NullReferenceException in shaper for tuple query when a query-filtered entity is reached via both a scalar and collection navigation

2 participants