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

feat[tool]: validate AST nodes early in the pipeline #3809

Merged

Conversation

charles-cooper
Copy link
Member

validate Vyper AST nodes as early as possible in the compilation pipeline, during parse_to_ast(). this will make compilation fail earlier in the pipeline for integrators which use the result of -f ast but don't grab -f annotated_ast.

What I did

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

validate Vyper AST nodes as early as possible in the compilation
pipeline, during `parse_to_ast()`. this will make compilation fail
earlier in the pipeline for integrators which use the result of `-f ast`
but don't grab `-f annotated_ast`.
@charles-cooper charles-cooper marked this pull request as ready for review February 25, 2024 14:51
@codecov-commenter
Copy link

codecov-commenter commented Feb 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.03%. Comparing base (9bab114) to head (9e7d7af).
Report is 2 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #3809    +/-   ##
========================================
  Coverage   85.02%   85.03%            
========================================
  Files          92       92            
  Lines       13767    13871   +104     
  Branches     3082     3112    +30     
========================================
+ Hits        11706    11795    +89     
- Misses       1572     1581     +9     
- Partials      489      495     +6     

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

tests/unit/semantics/types/test_pure_types.py Outdated Show resolved Hide resolved
@charles-cooper charles-cooper changed the title refactor: validate AST nodes early in the pipeline feat[tool]: validate AST nodes early in the pipeline Feb 26, 2024
@charles-cooper charles-cooper enabled auto-merge (squash) February 27, 2024 23:03
@charles-cooper charles-cooper merged commit 391f3cc into vyperlang:master Feb 27, 2024
83 of 84 checks passed
@charles-cooper charles-cooper deleted the refactor/validate-nodes-early branch February 27, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants