-
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
[Compiler-v2] run move_pr.sh -2
in CI
#15200
Conversation
⏱️ 2h 51m total CI duration on this PR
|
47ae154
to
60d6d51
Compare
move_pr.sh -i2
in CI
2179d26
to
2da6849
Compare
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 have some slight concerns that using both -i
and -2
in the same run leads to more limited exercise of framework compilation with MOVE_COMPILER_V2
enabled, since we don't do a cargo clean
between the two runs. Just FYI.
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.
Something is better than nothing.
Any suggestion on how to set the flag, e.g, just using |
If I really want clean results, I use 2 runs, one with |
- name: Run Aptos Move tests with compiler V2 | ||
run: cargo x targeted-compiler-v2-tests -vv --release --profile ci --locked --no-fail-fast | ||
# Run move_pr.sh -i2 | ||
- name: Run move_pr.sh with V2 flag |
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.
- name: Run move_pr.sh with V2 flag | |
- name: Run move_pr.sh using both compiler v1 and v2 for integration tests |
2da6849
to
5f90b18
Compare
move_pr.sh -i2
in CImove_pr.sh
in CI
@@ -12,7 +12,7 @@ module aptos_framework::aggregator_tests { | |||
let aggregator = aggregator_factory::create_aggregator_for_test(); | |||
|
|||
aggregator::add(&mut aggregator, 12); | |||
assert!(aggregator::read(&aggregator) == 12, 0); | |||
assert!(aggregator::read(&aggregator) != 12, 0); |
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.
This assertion appears to be testing the wrong condition. After adding 12
to the aggregator, reading its value should yield 12
. The current assertion using !=
will fail the correct behavior and pass the incorrect one. The assertion should be:
assert!(aggregator::read(&aggregator) == 12, 0);
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
c9ea32d
to
11abca6
Compare
move_pr.sh
in CImove_pr.sh -2
in CI
- name: Run move_pr.sh for integration tests with v2 compiler | ||
shell: bash | ||
run: third_party/move/scripts/move_pr.sh -2 |
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.
The PR description indicates that both move_pr.sh -i
and move_pr.sh -2
should be run in CI, but this change only implements the -2
variant. If running both variants is still desired, consider adding a separate step for move_pr.sh -i
. Otherwise, please update the PR description to match the intended implementation.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
@vineethk @brmataptos I removed the flag |
Assuming that we're testing move-compiler-v2 in some other script, sounds fine. |
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
|
Description
This PR adds execution of the script
move_pr.sh -2
to CI.close #13750
How Has This Been Tested?
Key Areas to Review
Type of Change
Which Components or Systems Does This Change Impact?
Checklist