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

[compiler] Filter out spec blocks of filtered module members #13741

Closed
wants to merge 1 commit into from

Conversation

wrwg
Copy link
Contributor

@wrwg wrwg commented Jun 18, 2024

Description

Closes #13696. 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.

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Performance improvement
  • Refactoring
  • Dependency update
  • Documentation update
  • Tests

Which Components or Systems Does This Change Impact?

  • Validator Node
  • Full Node (API, Indexer, etc.)
  • Move/Aptos Virtual Machine
  • Aptos Framework
  • Aptos CLI/SDK
  • Developer Infrastructure
  • Other (specify)

How Has This Been Tested?

Test TBD

Closes #13696. 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.
Copy link

trunk-io bot commented Jun 18, 2024

⏱️ 1h 40m total CI duration on this PR
Job Cumulative Duration Recent Runs
test-fuzzers 35m 🟩
rust-targeted-unit-tests 22m 🟥
rust-move-tests 16m 🟩
rust-move-unit-coverage 11m 🟩
rust-lints 6m 🟩
run-tests-main-branch 5m 🟩
general-lints 2m 🟩
check-dynamic-deps 1m 🟩
semgrep/ci 23s 🟩
file_change_determinator 13s 🟩
file_change_determinator 10s 🟩
permission-check 3s 🟩
permission-check 3s 🟩
permission-check 2s 🟩
permission-check 2s 🟩

🚨 1 job on the last run was significantly faster/slower than expected

Job Duration vs 7d avg Delta
rust-move-tests 16m 9m +80%

settingsfeedbackdocs ⋅ learn more about trunk.io

Copy link

codecov bot commented Jun 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.9%. Comparing base (c2b3482) to head (60070be).
Report is 6 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main   #13741       +/-   ##
===========================================
- Coverage    70.7%    58.9%    -11.9%     
===========================================
  Files        2298      817     -1481     
  Lines      451858   195849   -256009     
===========================================
- Hits       319816   115399   -204417     
+ Misses     132042    80450    -51592     

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

@wrwg wrwg closed this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant