Skip to content
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

Run invariant checks after every bot trade #1651

Merged

Conversation

slundqui
Copy link
Contributor

@slundqui slundqui commented Aug 16, 2024

This fixes fuzz testing to only run invariance tests after trades have been made. This also adds an optional pending_pool_state to be passed into invariance tests for local fuzz testing.

@slundqui slundqui enabled auto-merge (squash) August 16, 2024 19:37
@slundqui slundqui merged commit 0c4d26d into delvtech:main Aug 16, 2024
4 checks passed
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 55.26316% with 17 lines in your changes missing coverage. Please review.

Project coverage is 82.24%. Comparing base (b56387d) to head (bec606e).
Report is 1 commits behind head on main.

Files Patch % Lines
src/agent0/hyperfuzz/system_fuzz/run_fuzz_bots.py 55.17% 13 Missing ⚠️
...c/agent0/hyperfuzz/system_fuzz/invariant_checks.py 55.55% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1651      +/-   ##
==========================================
+ Coverage   81.48%   82.24%   +0.76%     
==========================================
  Files          98       98              
  Lines        7415     7419       +4     
==========================================
+ Hits         6042     6102      +60     
+ Misses       1373     1317      -56     
Flag Coverage Δ
unittests 82.24% <55.26%> (+0.76%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@slundqui slundqui deleted the run-invariance-check-after-every-trade branch August 16, 2024 20:18
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.

2 participants