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

avm: preserve line/column for assembler warnings #5796

Merged
merged 2 commits into from Oct 24, 2023

Conversation

dragmz
Copy link
Contributor

@dragmz dragmz commented Oct 22, 2023

Summary

Modified OpStream Warnings from []error to []sourceError to preserve line and column information so it can be used by TEAL language servers to display a location of warnings.

Test Plan

Added unit tests for warnings with zero and non-zero lines/columns

@dragmz dragmz changed the title preserve line/column for assemble warnings Enhancement: preserve line/column for assemble warnings Oct 22, 2023
@algorandskiy algorandskiy changed the title Enhancement: preserve line/column for assemble warnings avm: preserve line/column for assembler warnings Oct 23, 2023
algorandskiy
algorandskiy previously approved these changes Oct 23, 2023
Copy link
Contributor

@algorandskiy algorandskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks useful to me

@jannotti
Copy link
Contributor

Looks good, we just have to figure out how to get the CircleCI tests to all run. We need to make sure there aren't tests, especially in the end-to-end tests, that depend on the old format.

@algorandskiy
Copy link
Contributor

Closed/re-opened to workaround CircleCI error

Copy link
Member

@jasonpaulos jasonpaulos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending tests passing, LGTM

@algorandskiy
Copy link
Contributor

Looks like it is trying to authenticate a user who triggered a build event, and if it does not have CircleCI linked account, it fails. OK.

@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Merging #5796 (8fdc9ce) into master (d4b4086) will increase coverage by 0.26%.
Report is 3 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5796      +/-   ##
==========================================
+ Coverage   55.32%   55.59%   +0.26%     
==========================================
  Files         475      475              
  Lines       66850    66850              
==========================================
+ Hits        36988    37162     +174     
+ Misses      27341    27175     -166     
+ Partials     2521     2513       -8     
Files Coverage Δ
data/transactions/logic/assembler.go 93.98% <100.00%> (ø)

... and 28 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jannotti jannotti merged commit 19c1bf5 into algorand:master Oct 24, 2023
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants