-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Honor #[verify_only]
in move-compiler-v2. Add relevant tests from v1. Also add tests of #[deprecated]
.
#13732
Conversation
⏱️ 6h 2m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13732 +/- ##
=======================================
Coverage 59.0% 59.0%
=======================================
Files 820 820
Lines 197375 197445 +70
=======================================
+ Hits 116553 116598 +45
- Misses 80822 80847 +25 ☔ View full report in Codecov by Sentry. |
|
||
/// Whether to compile #[verify_only] code | ||
#[clap(skip)] | ||
pub compile_verify_code: bool, |
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.
Could you point to where this flag is used apart from unit tests?
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.
run_move_prover_v2()
, in third_party/move/move-prover/src/lib.rs
.
@@ -25,29 +31,36 @@ pub struct Options { | |||
num_args = 0.. | |||
)] | |||
pub dependencies: Vec<String>, | |||
|
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.
Has this been done by the auto formatter? Please note that there is no agreement in general what is the better style, it actually pretty much depends on the IDE and font you are using. Its not necessarily better now. I would leave such decisions of formatting at the author and not enforce my private style tastes.
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.
I just can't read it the other way. Call it an accessibility issue for the partially-blind.
|
||
#[clap(long = cli::MOVE_COMPILER_WARN_OF_DEPRECATION_USE_FLAG, | ||
default_value=bool_to_str(move_compiler_warn_of_deprecation_use_env_var()))] | ||
pub warn_deprecated: bool, |
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.
Just wondering how this relates to the title of the PR. Should you update the title?
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.
Fixed it. Though it's the final commit message that really matters.
#[verify_only]
in move-compiler-v2. Add relevant tests from v1.#[verify_only]
in move-compiler-v2. Add relevant tests from v1. Also add tests of #[deprecated]
.
9d6955a
to
518a991
Compare
…ing and tests that it is set when appropriate
…tion and keep_testing_functions
…verification and keep_testing_functions" This reverts commit 355e14e.
Closes #13737. This removes, in the generic parser AST filter, spec blocks for members which are filtered out. For example, for a `#[test_only]` function which is filtered out, also an associated spec block will be removed. This works equally for other attributes like `#[verify_only]` thanks to the generic filter logic.
518a991
to
f6d29c7
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Cleanup of the the move_pr.sh script to allow use in CI: - relocate v2 doc test outputs, use v2 to build for v2 integration tests - env var `MVC_DOCGEN_OUTPUT_DIR` is set by V2 tests to relocate doc outputs for V2 - use nextest -profile smoke-test by default to tolerate rare Heisenbugs by replaying 3x - env var `MOVE_PR_NEXTEST_PROFILE` allows `smoke-test` to be overridden. - a few cleanups - paying attention to env var `MOVE_PR_PROFILE` if set - Add a few compiler-v2 verification tests and update to v1.matched that were left over from #13732
Description
Add options and plumbing for compile_verify_code, warn_deprecated, etc. to move-compiler-v2, and test add relevant tests from v1. Requires disabling verify by default in compiler path in move-model.
Fixes #13696.
Merged in a commit from Wolfgang to fix #13737.
How Has This Been Tested?
Added relevant tests from V1 under tests/more-v1/. Also ran
move_pr.sh
, which uncovers issue #13737, which is now also fixed here, thanks to Wolfgang. Added new tests to illustrate #13737: function_with_spec.move to test#[verify_only]
and#[test_only]
with associatedspec
blocks for verify and testing on and off.Key Areas to Review
Is plumbing correct?
Type of Change
Which Components or Systems Does This Change Impact?
Checklist