Repository navigation
test: a claim's holder must be compiled; record ComplexIndexesCrossTests' gap until #333 - #336
Merged
Merged
Conversation
…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]>
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 #321
Problem
OracleCatalogueTests.EveryClaim_NamesTestClassesThatExistfound test classes by reading the source undertest/. A file a project takes out of compilation still counted. On the 11 lineComplexIndexesCrossTestsis compiled only onnet10.0, so nine claims looked held while no compiled test held them:E40,E42,E43,E48–E53.tools/oracles.cs statusdidn't list them on the worklist.Change
OracleCatalogueevaluates each test project's<Compile Remove>items against itsTargetFramework. It handles the shapes this repository uses: a plain file name, and a'$(TargetFramework)' ==/!=condition on the item or itsItemGroup. Anything else throws instead of guessing.TestClassesis now the compiled classes;CompiledOutTestClassesholds the rest.test/oracles/compiled-out.jsonrecords 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.jsonandoracles.jsonkeep 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.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_IsATestClassInItsProjectaccepts a recorded compiled-out oracle.tools/oracles.cs:statuscounts only compiled holders and prints the issue on each unheld line;seedsskips the pairs whose oracle is compiled out (SKIPPED … until #333).docs/oracles.md,test/oracles/README.mdandAGENTS.mddescribe the record.statuson this branch:E12andE41stay held byExclusionConstraintTests.Tests
Conventions project: 405 passed. Seeded, each with only the named change:
compiled-out.jsonset to[]):EveryClaim_NamesTestClassesThatExistfails, namingE12,E40,E41, …→ ComplexIndexesCrossTests (compiled out of CodoMetis.ValueRanges.EFCore.PostgreSQL.IntegrationTests: record it in compiled-out.json …).EveryOracle_IsATestClassInItsProjectfails too.<Compile Remove="NativeTemporalKeyTests.cs" />added to the integration project):EveryClaim_NamesTestClassesThatExistfails onE64–E69 → NativeTemporalKeyTests (compiled out …), andEveryOracle_IsATestClassInItsProjectfails. The same seed againstmain's discovery passes all 13 tests, which is the defect.Compile Removedropped):EveryCompiledOutRecord_NamesAClassItsProjectCompilesOutfails withComplexIndexesCrossTests is compiled again (in …IntegrationTests): drop its record.Test-only, so there's no changelog entry.
🤖 Generated with Claude Code