Repository navigation
tests: guard the ten defects seeded into the PostgreSQL satellite (#83) - #114
Merged
Merged
Conversation
The 5.5.0 analysis seeded defects into the PostgreSQL satellite that the full suite let through. NpgsqlSatelliteGuardTests adds one guard per row of #83, each proven by applying its seed against the whole unit suite: every seed fails its own guard and nothing else. Row 6 (TrimStart as rtrim) was already caught by #72's rendering test. Row 8 (null != x.P as IS NULL) was not: #68 pins a null on the right, and the null-on-the-left branch passed with the seed, so it gets a guard here. The Deferrable and Method rows have two guards each, since Equals alone is used by the rename detection and a seed removing the facet from Equals but not GetHashCode is caught only there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
CaffeinatedCoder
force-pushed
the
tests/83-satellite-guards
branch
from
October 20, 2026 06:27
6c6aecf to
49420ce
Compare
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 #83
Problem
The 5.5.0 analysis seeded defects into the PostgreSQL satellite, and the full suite passed with each one applied. Most of them are silent: the migration scaffolds and applies, and the database differs from the model.
Change
test/…/NpgsqlSatelliteGuardTests.csis new and holds one guard per row. It is a single new class rather than additions to the feature test files, because streams A and C are editing the typed-filter, translator and harness tests in parallel. Every test names its seed. No library code changes, so there is no changelog line.EndStatement(…, suppressTransaction: false)in the parts pathConcurrent_parts_index_suppresses_the_transactionMigrationCommand.TransactionSuppressedExclusionDescriptor.EqualswithoutDeferrable/InitiallyDeferredDeferrable_change_…,Initially_deferred_change_…,Rename_with_deferrable_change_…RENAME CONSTRAINTExclusionDescriptor.EqualswithoutMethodMethod_change_…,Rename_with_method_change_…EXCLUDE USING spgistreturn [.. operations, .. drops, …]Exclusion_drop_precedes_base_operationsCreateIndexOperationof a native index taking its name; in the other order that index fails with 42P07HasJsonPropertyNameNested_complex_property_honors_its_json_name"profile" #>> '{addr,City}'TrimStartrendersrtrim"interval"removed fromStableTextInputTypesTimeSpan_member_is_not_cast_to_interval"profile" ->> 'Duration'; the cast fails with 42P17, checked on PostgreSQL 18null != x.PrenderedIS NULLNull_on_the_left_keeps_the_negation"revoked_at" IS NOT NULL''doubling in typed string literalsTyped_filter_literal_doubles_quotes"code" <> 'O''Brien'''doubling in the JSONARRAY[...]formJson_key_with_quote_is_escapedARRAY['Quoted','o''clock']::text[]"doubling inQuoteQuote_doubles_double_quotes"ex_""room"""and"room""id"in the EXCLUDE DDLchar.IsAsciiLetterinBuildJsonPathJson_key_with_digit_keeps_the_literal_path_form'{Address2,City}'Two corrections to the issue's note:
x.P != null, and a captured null). Withnull != x.Pseeded toIS NULL, the left-hand branch still passed the whole suite, so it gets a guard here.EqualsandGetHashCodetogether is caught by the same-name pair. Removing it fromEqualsalone is not, because the hash set still tells the two sides apart. That variant is silent only through the rename detection, which callsEqualsdirectly, so a rename plus a deferrability or method change became a bareRENAME CONSTRAINT. The rename tests cover it.Tests
TestCategory!=Integration). Each failed exactly its own guard, with 400 or 401 other tests passing. The Equals-only variants of rows 2 and 3 fail only the rename guard.🤖 Generated with Claude Code