aptos-labs / aptos-core

Aptos is a layer 1 blockchain built to support the widespread use of blockchain through better technology and user experience.
https://aptosfoundation.org
Other
5.86k stars 3.54k forks source link

[Compiler-v2] fix timeout in third_party prover test #13270

Closed rahxephon89 closed 2 weeks ago

rahxephon89 commented 2 weeks ago

Description

This PR resolves the timeout issue in the third_party prover test by exchanging between source_dep and dep when creating the move model.

Also close #13251, close #13252

Type of Change

Which Components or Systems Does This Change Impact?

How Has This Been Tested?

Removed pragma verify=false from the spec of round in third_party/move/move-stdlib/sources/fixed_point32.move and the prover test still passes.

Key Areas to Review

When calling the prover in third_party and aptos, we need to make sure the same arguments passed to the move model builder, especially for source_deps and deps.

Checklist

trunk-io[bot] commented 2 weeks ago
⏱️ 11h 27m total CI duration on this PR | Job | Cumulative Duration | Recent Runs | |---|---|---| | [forge-framework-upgrade-test / forge](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974385156) | 2h 21m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197364/job/24968404707) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974385156)  | | [execution-performance / single-node-performance](https://github.com/aptos-labs/aptos-core/actions/runs/9087051899/job/24974151725) | 1h 46m | [🟥](https://github.com/aptos-labs/aptos-core/actions/runs/9085197272/job/24968047224) [🟥](https://github.com/aptos-labs/aptos-core/actions/runs/9085197272/job/24969434115) [🟥](https://github.com/aptos-labs/aptos-core/actions/runs/9085197272/job/24973051732) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051899/job/24974151725)  | | [windows-build](https://github.com/aptos-labs/aptos-core/actions/runs/9087051884/job/24974037005) | 1h 7m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197328/job/24967922755) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051884/job/24974037005)  | | [rust-targeted-unit-tests](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974047222) | 1h 5m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554101/job/24922588729) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197269/job/24967936779) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974047222)  | | [rust-smoke-tests](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974046553) | 1h 4m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197269/job/24967936172) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974046553)  | | [rust-move-unit-coverage](https://github.com/aptos-labs/aptos-core/actions/runs/9087051882/job/24974037869) | 38m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554123/job/24922578259) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051882/job/24974037869)  | | [rust-move-tests](https://github.com/aptos-labs/aptos-core/actions/runs/9087051891/job/24974037381) | 36m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554099/job/24922578140) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197268/job/24967923153) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051891/job/24974037381)  | | [forge-e2e-test / forge](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974384630) | 30m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197364/job/24968404463) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974384630)  | | [forge-compat-test / forge](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974384896) | 26m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197364/job/24968404261) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974384896)  | | [rust-images / rust-all](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974052918) | 26m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197364/job/24967938196) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974052918)  | | [rust-lints](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974046304) | 17m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554101/job/24922588292) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197269/job/24967935609) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974046304)  | | [cli-e2e-tests / run-cli-tests](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974384499) | 15m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197364/job/24968403427) [🟥](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974384499)  | | [run-tests-main-branch](https://github.com/aptos-labs/aptos-core/actions/runs/9087051880/job/24974052023) | 12m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554096/job/24922592800) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197298/job/24967941525) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051880/job/24974052023)  | | [rust-build-cached-packages](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974047437) | 8m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197269/job/24967937483) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974047437)  | | [check](https://github.com/aptos-labs/aptos-core/actions/runs/9087051876/job/24974037676) | 8m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197274/job/24967923581) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051876/job/24974037676)  | | [test-target-determinator](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974044543) | 7m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197364/job/24967929945) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974044543)  | | [execution-performance / test-target-determinator](https://github.com/aptos-labs/aptos-core/actions/runs/9087051899/job/24974037586) | 7m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197272/job/24967923378) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051899/job/24974037586)  | | [general-lints](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974046781) | 5m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554101/job/24922588509) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197269/job/24967935867) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974046781)  | | [check-dynamic-deps](https://github.com/aptos-labs/aptos-core/actions/runs/9087051878/job/24974036850) | 4m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554107/job/24922577827) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197300/job/24967922436) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051878/job/24974036850)  | | [node-api-compatibility-tests / node-api-compatibility-tests](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974385027) | 2m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197364/job/24968403700) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974385027)  | | [semgrep/ci](https://github.com/aptos-labs/aptos-core/actions/runs/9087051877/job/24974036791) | 1m | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554109/job/24922577498) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197287/job/24967922418) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051877/job/24974036791)  | | [file_change_determinator](https://github.com/aptos-labs/aptos-core/actions/runs/9087051880/job/24974042933) | 34s | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554096/job/24922582382) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197298/job/24967928792) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051880/job/24974042933)  | | [file_change_determinator](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974037735) | 34s | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554101/job/24922578333) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197269/job/24967923396) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051887/job/24974037735)  | | [file_change_determinator](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974044183) | 26s | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197364/job/24967929740) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974044183)  | | [permission-check](https://github.com/aptos-labs/aptos-core/actions/runs/9087051881/job/24974037048) | 9s | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554102/job/24922577751) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197280/job/24967922729) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051881/job/24974037048)  | | [determine-docker-build-metadata](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974044350) | 9s | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197364/job/24967929497) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974044350)  | | [permission-check](https://github.com/aptos-labs/aptos-core/actions/runs/9087051886/job/24974037052) | 9s | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554094/job/24922577540) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197278/job/24967922455) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051886/job/24974037052)  | | [permission-check](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974038062) | 6s | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197364/job/24967923853) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051909/job/24974038062)  | | [permission-check](https://github.com/aptos-labs/aptos-core/actions/runs/9087051880/job/24974037978) | 6s | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554096/job/24922578141) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197298/job/24967923645) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051880/job/24974037978)  | | [permission-check](https://github.com/aptos-labs/aptos-core/actions/runs/9087051879/job/24974037383) | 6s | [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9070554090/job/24922578008) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9085197271/job/24967923158) [🟩](https://github.com/aptos-labs/aptos-core/actions/runs/9087051879/job/24974037383)  |

🚨 2 jobs on the last run were significantly faster/slower than expected

Job Duration vs 7d avg Delta
cli-e2e-tests / run-cli-tests 9m 7m +27%
windows-build 26m 39m -34%

settingsfeedbackdocs ⋅ learn more about trunk.io

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 57.6%. Comparing base (7719765) to head (498ba8f). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #13270 +/- ## ========================================= - Coverage 57.6% 57.6% -0.1% ========================================= Files 834 834 Lines 198396 198396 ========================================= - Hits 114325 114318 -7 - Misses 84071 84078 +7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 2 weeks ago

Forge is running suite compat on 01b24e7e3548382dd25440b39a0438a993387f12 ==> 4c32c4d6550d5c3f9d1b9db49e4462af0887136e

github-actions[bot] commented 2 weeks ago

Forge is running suite realistic_env_max_load on 4c32c4d6550d5c3f9d1b9db49e4462af0887136e

github-actions[bot] commented 2 weeks ago

Forge is running suite framework_upgrade on 01b24e7e3548382dd25440b39a0438a993387f12 ==> 4c32c4d6550d5c3f9d1b9db49e4462af0887136e

github-actions[bot] commented 2 weeks ago

:white_check_mark: Forge suite compat success on 01b24e7e3548382dd25440b39a0438a993387f12 ==> 4c32c4d6550d5c3f9d1b9db49e4462af0887136e

Compatibility test results for 01b24e7e3548382dd25440b39a0438a993387f12 ==> 4c32c4d6550d5c3f9d1b9db49e4462af0887136e (PR)
1. Check liveness of validators at old version: 01b24e7e3548382dd25440b39a0438a993387f12
compatibility::simple-validator-upgrade::liveness-check : committed: 5430.038539147109 txn/s, latency: 5776.347198783359 ms, (p50: 5100 ms, p90: 9600 ms, p99: 14400 ms), latency samples: 203840
2. Upgrading first Validator to new version: 4c32c4d6550d5c3f9d1b9db49e4462af0887136e
compatibility::simple-validator-upgrade::single-validator-upgrade : committed: 1525.8210258771746 txn/s, latency: 17775.39031482291 ms, (p50: 18600 ms, p90: 29800 ms, p99: 30300 ms), latency samples: 91480
3. Upgrading rest of first batch to new version: 4c32c4d6550d5c3f9d1b9db49e4462af0887136e
compatibility::simple-validator-upgrade::half-validator-upgrade : committed: 1818.54723006301 txn/s, latency: 15886.506049355754 ms, (p50: 19000 ms, p90: 22300 ms, p99: 22600 ms), latency samples: 91580
4. upgrading second batch to new version: 4c32c4d6550d5c3f9d1b9db49e4462af0887136e
compatibility::simple-validator-upgrade::rest-validator-upgrade : committed: 3514.6736642668197 txn/s, latency: 8934.8927276473 ms, (p50: 9600 ms, p90: 12700 ms, p99: 12900 ms), latency samples: 145620
5. check swarm health
Compatibility test for 01b24e7e3548382dd25440b39a0438a993387f12 ==> 4c32c4d6550d5c3f9d1b9db49e4462af0887136e passed
Test Ok
github-actions[bot] commented 2 weeks ago

:white_check_mark: Forge suite realistic_env_max_load success on 4c32c4d6550d5c3f9d1b9db49e4462af0887136e

two traffics test: inner traffic : committed: 8018.699323900655 txn/s, latency: 4883.463792596775 ms, (p50: 4800 ms, p90: 5700 ms, p99: 10500 ms), latency samples: 3470920
two traffics test : committed: 100.0452460077581 txn/s, latency: 1847.341304347826 ms, (p50: 1800 ms, p90: 2000 ms, p99: 2400 ms), latency samples: 1840
Latency breakdown for phase 0: ["QsBatchToPos: max: 0.208, avg: 0.201", "QsPosToProposal: max: 0.245, avg: 0.226", "ConsensusProposalToOrdered: max: 0.469, avg: 0.431", "ConsensusOrderedToCommit: max: 0.358, avg: 0.342", "ConsensusProposalToCommit: max: 0.784, avg: 0.773"]
Max round gap was 1 [limit 4] at version 1679945. Max no progress secs was 4.728154 [limit 15] at version 1679945.
Test Ok
github-actions[bot] commented 2 weeks ago

:white_check_mark: Forge suite framework_upgrade success on 01b24e7e3548382dd25440b39a0438a993387f12 ==> 4c32c4d6550d5c3f9d1b9db49e4462af0887136e

Compatibility test results for 01b24e7e3548382dd25440b39a0438a993387f12 ==> 4c32c4d6550d5c3f9d1b9db49e4462af0887136e (PR)
Upgrade the nodes to version: 4c32c4d6550d5c3f9d1b9db49e4462af0887136e
framework_upgrade::framework-upgrade::full-framework-upgrade : committed: 1299.9010331037077 txn/s, submitted: 1303.0814970085403 txn/s, failed submission: 3.1804639048325596 txn/s, expired: 3.1804639048325596 txn/s, latency: 2357.6473610625653 ms, (p50: 2100 ms, p90: 3600 ms, p99: 4500 ms), latency samples: 114440
framework_upgrade::framework-upgrade::full-framework-upgrade : committed: 1164.3543500884361 txn/s, submitted: 1167.6646827744344 txn/s, failed submission: 3.310332685998207 txn/s, expired: 3.310332685998207 txn/s, latency: 2576.574952615618 ms, (p50: 2100 ms, p90: 4500 ms, p99: 6800 ms), latency samples: 105520
5. check swarm health
Compatibility test for 01b24e7e3548382dd25440b39a0438a993387f12 ==> 4c32c4d6550d5c3f9d1b9db49e4462af0887136e passed
Upgrade the remaining nodes to version: 4c32c4d6550d5c3f9d1b9db49e4462af0887136e
framework_upgrade::framework-upgrade::full-framework-upgrade : committed: 1244.1021865493997 txn/s, submitted: 1247.4051127083803 txn/s, failed submission: 3.302926158980707 txn/s, expired: 3.302926158980707 txn/s, latency: 2370.5520973451326 ms, (p50: 1800 ms, p90: 4200 ms, p99: 6300 ms), latency samples: 113000
Test Ok
github-actions[bot] commented 2 weeks ago

Forge is running suite realistic_env_max_load on 498ba8f2ee56c83665db385b806d64ba2aafd949

github-actions[bot] commented 2 weeks ago

Forge is running suite framework_upgrade on 01b24e7e3548382dd25440b39a0438a993387f12 ==> 498ba8f2ee56c83665db385b806d64ba2aafd949

github-actions[bot] commented 2 weeks ago

Forge is running suite compat on 01b24e7e3548382dd25440b39a0438a993387f12 ==> 498ba8f2ee56c83665db385b806d64ba2aafd949

github-actions[bot] commented 2 weeks ago

:white_check_mark: Forge suite compat success on 01b24e7e3548382dd25440b39a0438a993387f12 ==> 498ba8f2ee56c83665db385b806d64ba2aafd949

Compatibility test results for 01b24e7e3548382dd25440b39a0438a993387f12 ==> 498ba8f2ee56c83665db385b806d64ba2aafd949 (PR)
1. Check liveness of validators at old version: 01b24e7e3548382dd25440b39a0438a993387f12
compatibility::simple-validator-upgrade::liveness-check : committed: 6176.590903982719 txn/s, latency: 5023.092610776467 ms, (p50: 4800 ms, p90: 8700 ms, p99: 10600 ms), latency samples: 242380
2. Upgrading first Validator to new version: 498ba8f2ee56c83665db385b806d64ba2aafd949
compatibility::simple-validator-upgrade::single-validator-upgrade : committed: 1616.5200402242888 txn/s, latency: 17265.247471910112 ms, (p50: 19600 ms, p90: 24000 ms, p99: 25000 ms), latency samples: 89000
3. Upgrading rest of first batch to new version: 498ba8f2ee56c83665db385b806d64ba2aafd949
compatibility::simple-validator-upgrade::half-validator-upgrade : committed: 1462.7453213002148 txn/s, latency: 18002.79132928475 ms, (p50: 19600 ms, p90: 29400 ms, p99: 30800 ms), latency samples: 88920
4. upgrading second batch to new version: 498ba8f2ee56c83665db385b806d64ba2aafd949
compatibility::simple-validator-upgrade::rest-validator-upgrade : committed: 3560.902455323979 txn/s, latency: 8812.53654618474 ms, (p50: 9600 ms, p90: 12600 ms, p99: 12900 ms), latency samples: 144420
5. check swarm health
Compatibility test for 01b24e7e3548382dd25440b39a0438a993387f12 ==> 498ba8f2ee56c83665db385b806d64ba2aafd949 passed
Test Ok
github-actions[bot] commented 2 weeks ago

:white_check_mark: Forge suite realistic_env_max_load success on 498ba8f2ee56c83665db385b806d64ba2aafd949

two traffics test: inner traffic : committed: 8266.684870944811 txn/s, latency: 4740.117610886364 ms, (p50: 4500 ms, p90: 5400 ms, p99: 9900 ms), latency samples: 3574380
two traffics test : committed: 100.03284891236171 txn/s, latency: 1837.6662921348316 ms, (p50: 1800 ms, p90: 2100 ms, p99: 3400 ms), latency samples: 1780
Latency breakdown for phase 0: ["QsBatchToPos: max: 0.207, avg: 0.202", "QsPosToProposal: max: 0.225, avg: 0.213", "ConsensusProposalToOrdered: max: 0.441, avg: 0.400", "ConsensusOrderedToCommit: max: 0.399, avg: 0.386", "ConsensusProposalToCommit: max: 0.796, avg: 0.785"]
Max round gap was 1 [limit 4] at version 1126713. Max no progress secs was 4.828643 [limit 15] at version 1126713.
Test Ok
github-actions[bot] commented 2 weeks ago

:white_check_mark: Forge suite framework_upgrade success on 01b24e7e3548382dd25440b39a0438a993387f12 ==> 498ba8f2ee56c83665db385b806d64ba2aafd949

Compatibility test results for 01b24e7e3548382dd25440b39a0438a993387f12 ==> 498ba8f2ee56c83665db385b806d64ba2aafd949 (PR)
Upgrade the nodes to version: 498ba8f2ee56c83665db385b806d64ba2aafd949
framework_upgrade::framework-upgrade::full-framework-upgrade : committed: 1309.75959702479 txn/s, submitted: 1311.9954447493117 txn/s, failed submission: 2.235847724521663 txn/s, expired: 2.235847724521663 txn/s, latency: 2342.684525435302 ms, (p50: 2100 ms, p90: 4000 ms, p99: 5000 ms), latency samples: 117160
framework_upgrade::framework-upgrade::full-framework-upgrade : committed: 1193.7325803247727 txn/s, submitted: 1195.1179566268904 txn/s, failed submission: 1.3853763021177248 txn/s, expired: 1.3853763021177248 txn/s, latency: 2710.4205222437135 ms, (p50: 2200 ms, p90: 4800 ms, p99: 6600 ms), latency samples: 103400
5. check swarm health
Compatibility test for 01b24e7e3548382dd25440b39a0438a993387f12 ==> 498ba8f2ee56c83665db385b806d64ba2aafd949 passed
Upgrade the remaining nodes to version: 498ba8f2ee56c83665db385b806d64ba2aafd949
framework_upgrade::framework-upgrade::full-framework-upgrade : committed: 1271.032108561439 txn/s, submitted: 1273.1119792845395 txn/s, failed submission: 2.0798707231005364 txn/s, expired: 2.0798707231005364 txn/s, latency: 2584.6716818181817 ms, (p50: 2200 ms, p90: 4400 ms, p99: 6000 ms), latency samples: 110000
Test Ok