Skip to content

Tests: ten seeded defects in the PostgreSQL satellite that the suite does not catch #83

Closed

Description

@CaffeinatedCoder

Problem

The PostgreSQL analysis for 5.5.0 seeded defects into the satellite; the full suite (372 tests) passed with each of these applied, so nothing guards them:

Seed What it would break
EndStatement(builder, suppressTransaction: false) in the parts path CREATE INDEX CONCURRENTLY runs inside the transaction and fails at apply
ExclusionDescriptor.Equals without Deferrable/InitiallyDeferred switching IsDeferrable() on an existing constraint produces no migration (silent)
ExclusionDescriptor.Equals without Method changing UseMethod produces no migration (silent)
exclusion return [.. operations, .. drops, …] the drop ordering CLAUDE.md calls load-bearing is untested for exclusion constraints
nested complex property ignores HasJsonPropertyName index never used, filter checks the wrong key (silent)
TrimStart renders rtrim wrong index expression (silent)
"interval" removed from StableTextInputTypes TimeSpan JSON members get a non-IMMUTABLE cast
null != x.P rendered IS NULL negation lost (silent)
no '' doubling in typed string literals, in the JSON ARRAY[...] form, or " in Quote no test has a quote in a typed literal, a JSON key or an identifier
char.IsAsciiLetter instead of IsAsciiLetterOrDigit in BuildJsonPath JSON keys with digits take the ARRAY form and stop matching EF's '{addr2,City}' (silent)

The current code is right in every case; the gap is the guard. (#72 now pins TrimStart. #68 pins a null on the right, but not null != x.P: that seed still passed the suite on 2026-10-20, so it needs its own guard. A seed that removes Deferrable or Method from Equals alone, not from GetHashCode, is silent only through the rename detection: a rename plus that change became a bare RENAME CONSTRAINT.)

Change

One assertion per row, on rendered SQL or on the operation list; for Deferrable and Method, a source/target pair differing only in that facet, asserting a drop/add pair. Each proven with verify-the-guard against its seed.

Activity

  1. added this to the 5.5.1 milestone on Oct 19, 2026
  2. added
    tests
    package/postgresql
    area/indexes
    area/constraints
    on Oct 19, 2026
  3. modified the milestones: 5.5.1, 5.5.0 on Oct 20, 2026
  4. added 2 commits that reference this issue on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/constraintsarea/indexespackage/postgresqltests

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions