-
Notifications
You must be signed in to change notification settings - Fork 840
Replace assert!
with debug_assert!
and add a new profile release-debug
#310
Replace assert!
with debug_assert!
and add a new profile release-debug
#310
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Nevertheless, since now we have debug_asserts, we need to make sure that we never test with release (otherwise we are testing ignoring the asserts). So I think we need to change all the places where we are testing with release and switch to --target release-debug
.
That would be:
Makefile
->test
.github/workflows/ci.yml
->test
integration-tests/run.sh
-> line 100
I think it would be better to simply overwrite the [profile.release]
opt-level = 3
debug = false
debug-assertions = true
overflow-checks = false
rpath = false
lto = "thin"
incremental = false |
I think it would be very good to run our tests with Notice that right now we are testing with release, which means no overflow checks, and I think that's not ideal. |
SGTM. |
Thanks for applying the requested changes! Good work :) |
…#310) * fix sig verify challenge api * enable all checks * add phase 2 flex gate config * fix bug * works now * clean up * minor optimization: remove 1 phase 2 column * optimization: use one less column * fix * pass make tx_bench * lint --------- Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
Close #288
Summary
assert!
withdebug_assert!
in no-test code.release-debug
inherited fromrelease
profile.Reference comment #288 (comment), we set
debug = true
for debug symbols. Andoverflow-checks = true
for enabling integer overflow checks,incremental = true
for incremental compilation.It seems that the profile name
debug
is reserved. An error occurred when adding a custom profile nameddebug
as below.