Repository navigation
Bind every oracle calibration to the history it corrupts - #217
Merged
Merged
Conversation
All 33 calibrations across the three oracle files now name their
history (a constructed history, or an enumerated index), so each one runs
on a history that reaches its case instead of the framework's
transitional search, which goes away before its first release. Two
corruptions now target what their names say: the bounce (a hidden
header's step past either end) and the new parent (a step after the
parent changes).
A control binding that the corruption cannot apply to fails ("selected
corruption did not apply"). Gap check (seed 1): 342 of 342 killed.
Chrome: 788 passed, no binding warnings.
Co-authored-by: Isaac <no-reply@databricks.com>
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.
Each calibration in the oracle files now names the history that it corrupts. A calibration is a planted wrong answer that proves a law rejects it. Before, 28 of the 33 calibrations named no history. For those,
@tanstack/oraclessearched the histories for one where the corruption applied. The framework calls that search transitional and will remove it before its first release.A bound calibration runs on one history. That history must pass clean, and the named law must reject the corruption. So each calibration now tests the same case on every run. The calibrations of the package oracle use the index of an enumerated history, for example
{ enumerated: 1 }for the bundler entry.Two corruptions did not test what their names say, so they now target the correct step:
Verification
pnpm testpasses. The oracles run 832 tests.pnpm test:gapswith seed 1: 342 mutants, 342 killed, 0 gaps.pnpm test:oracles:chrome: 788 tests pass, with no warnings about bindings.This pull request and its description were written by Isaac.