Skip to content

Tests: seeded defects in the core and SQL Server differs that the suite does not catch, and the model-less SQL Server rendering #96

Closed

Description

@CaffeinatedCoder

Problem

The core and SQL Server analysis for 5.5.0 seeded defects; the whole suite (363 tests) passed with each applied:

  • removing Descending from ResolvedIndexPart.Equals/GetHashCode: changing x.A to DbOrder.Desc(x.A) produces no migration (silent)
  • removing FillFactor, or Clustered and SortInTempDb, from the SQL Server satellite's whitelist: property-level declarations silently lose them. Every SQL Server differ test is entity-level, and BuilderApiParityTests checks that every whitelisted key is reachable from a builder, not that every builder option is whitelisted
  • skipping TransformIndexAnnotation on the property-level path: INCLUDE paths stay unresolved and the clustered-slot check is skipped
  • CanRenameIndexes => false on SQL Server
  • the native-clustered-index branch of ValidateClusteredSlotIsFree
  • weak coverage: a provider-annotation-only change, a uniqueness-only change and a filter-only change are each caught by one incidental test
  • no SQL Server snapshot round trip (the analysis wrote one covering all six options, property- and entity-level, a DESC part and a placeholder filter; it passes)

And one harness trap: MigrationHarness.SqlServerSql renders with model: null, which makes EF's SQL Server generator add its pre-2.0 "legacy" IS NOT NULL filter to every unique index (UseLegacyIndexFilters). That hid #88; SQL Server rendering tests should pass the target model, as database update does.

Change

One assertion per seed, each proven with verify-the-guard; a SQL Server snapshot round-trip test; the harness renders SQL Server SQL with the target model.

Activity

  1. added this to the 5.5.1 milestone on Oct 19, 2026
  2. added
    tests
    package/core
    package/sqlserver
    area/indexes
    on Oct 19, 2026
  3. modified the milestones: 5.5.1, 5.5.0 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/indexespackage/corepackage/sqlservertests

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions