Skip to content

test: a claim's holder must be compiled; record ComplexIndexesCrossTests' gap until #333 - #336

Merged
CaffeinatedCoder merged 2 commits into
mainfrom
test/321-heldby-compiled
Oct 19, 2026
Merged

CaffeinatedCoder merged 2 commits into
mainfrom
test/321-heldby-compiled

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #321

Problem

OracleCatalogueTests.EveryClaim_NamesTestClassesThatExist found test classes by reading the source under test/. A file a project takes out of compilation still counted. On the 11 line ComplexIndexesCrossTests is compiled only on net10.0, so nine claims looked held while no compiled test held them: E40, E42, E43, E48–E53. tools/oracles.cs status didn't list them on the worklist.

Change

  • OracleCatalogue evaluates each test project's <Compile Remove> items against its TargetFramework. It handles the shapes this repository uses: a plain file name, and a '$(TargetFramework)' ==/!= condition on the item or its ItemGroup. Anything else throws instead of guessing. TestClasses is now the compiled classes; CompiledOutTestClasses holds the rest.
  • New test/oracles/compiled-out.json records the gap: ComplexIndexesCrossTests, its project, issue main: re-enable the ComplexIndexes cross-tests and the joint smoke consumer against CodoMetis.EFCore.SchemaKit.PostgreSQL #333, and why. claims.json and oracles.json keep naming the class, so main: re-enable the ComplexIndexes cross-tests and the joint smoke consumer against CodoMetis.EFCore.SchemaKit.PostgreSQL #333 only drops the record.
  • EveryClaim_NamesTestClassesThatExist: a holder must be compiled, or compiled out with a record.
  • New EveryCompiledOutRecord_NamesAClassItsProjectCompilesOut: a record whose class is compiled again (or is in another project, or has no issue or reason) fails as stale.
  • OracleSeedTests.EveryOracle_IsATestClassInItsProject accepts a recorded compiled-out oracle.
  • tools/oracles.cs: status counts only compiled holders and prints the issue on each unheld line; seeds skips the pairs whose oracle is compiled out (SKIPPED … until #333).
  • docs/oracles.md, test/oracles/README.md and AGENTS.md describe the record.

status on this branch:

claims: 220, held by a compiled test: 209, unheld (the worklist): 11
  UNHELD  A02-aot-default-options-throw    docs/serialization.md#native-aot
  UNHELD  A03-generic-converters-self-registered docs/serialization.md#native-aot
  UNHELD  E40-complexindexes-accepts-mapped-range-columns docs/efcore.md#reject-overlapping-rows-with-an-exclusion-constraint  (ComplexIndexesCrossTests compiled out until #333)
  UNHELD  E42-ensurecreated-skips-exclusion-constraints …  (ComplexIndexesCrossTests compiled out until #333)
  UNHELD  E43-gist-index-serves-range-operators …  (ComplexIndexesCrossTests compiled out until #333)
  UNHELD  E48 … E53  (ComplexIndexesCrossTests compiled out until #333)
oracles: 49, seeds: 81, oracles without a seed: 0
  COMPILED OUT ComplexIndexesCrossTests until #333: its seeds are skipped on this line

E12 and E41 stay held by ExclusionConstraintTests.

Tests

Conventions project: 405 passed. Seeded, each with only the named change:

  1. The gap unrecorded (compiled-out.json set to []): EveryClaim_NamesTestClassesThatExist fails, naming E12, E40, E41, … → ComplexIndexesCrossTests (compiled out of CodoMetis.ValueRanges.EFCore.PostgreSQL.IntegrationTests: record it in compiled-out.json …). EveryOracle_IsATestClassInItsProject fails too.
  2. A sole holder compiled out (<Compile Remove="NativeTemporalKeyTests.cs" /> added to the integration project): EveryClaim_NamesTestClassesThatExist fails on E64–E69 → NativeTemporalKeyTests (compiled out …), and EveryOracle_IsATestClassInItsProject fails. The same seed against main's discovery passes all 13 tests, which is the defect.
  3. Class compiled again, record left (the Compile Remove dropped): EveryCompiledOutRecord_NamesAClassItsProjectCompilesOut fails with ComplexIndexesCrossTests is compiled again (in …IntegrationTests): drop its record.

Test-only, so there's no changelog entry.

🤖 Generated with Claude Code

…sts' gap until #333

OracleCatalogue discovered test classes from the source under test/, so a file a
project removes from compilation still counted. On the 11 line ComplexIndexesCrossTests
is compiled only on net10.0, and E40, E42, E43 and E48-E53 looked held while no compiled
test held them.

Discovery now evaluates each test project's <Compile Remove> items against its
TargetFramework (plain file names and $(TargetFramework) ==/!= conditions; anything
else throws rather than guess). A heldBy or oracles.json class that is compiled out is
allowed only with a record in test/oracles/compiled-out.json naming the issue that
compiles it back, and a record whose class is compiled again fails as stale.
tools/oracles.cs status lists the claims it held alone as unheld with the issue, and
seeds skips its seeds.

Closes #321

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 11.0.0 milestone Oct 19, 2026
@CaffeinatedCoder CaffeinatedCoder added tests Adds or changes tests only (oracles, harnesses); no library code package/efcore Affects CodoMetis.ValueRanges.EFCore.PostgreSQL labels Oct 19, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit e707454 into main Oct 19, 2026
@CaffeinatedCoder
CaffeinatedCoder deleted the test/321-heldby-compiled branch October 19, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package/efcore Affects CodoMetis.ValueRanges.EFCore.PostgreSQL tests Adds or changes tests only (oracles, harnesses); no library code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main: claims.json names ComplexIndexesCrossTests as holding 11 claims, but the test is compiled out on net11

1 participant