Skip to content

Small big step confluence test #1633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft

Conversation

7h3kk1d
Copy link
Contributor

@7h3kk1d 7h3kk1d commented Apr 25, 2025

Adds a qcheck test that says if the small steps from the stepper evaluate to a value that should be equivalent to the evaluator. Always chooses the first available step.

It's currently real slow and doesn't find issues every time. I'm also not calling EvaluatorStep.refresh_step which might be important.

Example failure:

FAIL Small step reduction and big step reduction are equal

   Expected: `fun x: (?) -> fun (()): (()) -> x'
   Received: `fun x: (?) -> fun (()): (()) -> x''

`
on `fun x -> fun (()) -> x (after 2 shrink steps)`

- Test is quite slow
- Also added a couple stepper tests
@7h3kk1d 7h3kk1d changed the base branch from dev to cat-resiliency April 25, 2025 14:36
Copy link

codecov bot commented Apr 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.35%. Comparing base (a8bb437) to head (39a1a38).

Additional details and impacted files
@@                Coverage Diff                 @@
##           cat-resiliency    #1633      +/-   ##
==================================================
+ Coverage           50.32%   50.35%   +0.03%     
==================================================
  Files                 126      130       +4     
  Lines               14048    14621     +573     
==================================================
+ Hits                 7070     7363     +293     
- Misses               6978     7258     +280     
Files with missing lines Coverage Δ
src/haz3lcore/dynamics/Evaluator.re 92.98% <ø> (-3.32%) ⬇️
src/haz3lcore/dynamics/stepper/EvaluatorStep.re 60.43% <ø> (ø)

... and 23 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Base automatically changed from cat-resiliency to dev April 29, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant