-
Notifications
You must be signed in to change notification settings - Fork 3k
Add PSA code generation check in travis #8889
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
Conversation
- env: | ||
- NAME=psa-autogen | ||
script: | ||
- python tools/spm/generate_partition_code.py |
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.
What this supposed to be doing ? Checking unstaged files (means the files have changed?) A comment here might help (also this will need docs PR - there're travi sjobs described)
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.
Added a comment
Basically it runs the code generation tool and checks if changes are required
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.
Looks good
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.
LGTM
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.
Looks fine to me. One request: can you improve git commit history (can squash if that would make sense). Commits like beeac1a7683ced87e021f0be6d74eb3cec32c6e2 might need more description. Why is this changing the test files?
@0xc0170 All squashed and ready to go |
- NAME=psa-autogen | ||
script: | ||
# Run SPM code generator and check that changes are not needed | ||
- python tools/spm/generate_partition_code.py |
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.
Making sure, does this tool work in Python 2 and Python 3?
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.
tested on 2.7 and 3.7
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.
Clever way of checking if someone has touched the auto-generated files, nice!
Will start CI when able. |
Will be tested soon, I'll add one more job for rc1 and this one will be next |
CI started |
Test run: SUCCESSSummary: 4 of 4 test jobs passed |
Description
PSA auto generated code needs to be kept updated, enforce that in traivs
Pull request type