Skip to content

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

Merged
merged 3 commits into from
Nov 29, 2018
Merged

Add PSA code generation check in travis #8889

merged 3 commits into from
Nov 29, 2018

Conversation

orenc17
Copy link
Contributor

@orenc17 orenc17 commented Nov 28, 2018

Description

PSA auto generated code needs to be kept updated, enforce that in traivs

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[X] Test update
[ ] Breaking change

- env:
- NAME=psa-autogen
script:
- python tools/spm/generate_partition_code.py
Copy link
Contributor

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)

Copy link
Contributor Author

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

Copy link
Contributor

@OPpuolitaival OPpuolitaival left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link
Contributor

@alzix alzix left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@0xc0170 0xc0170 left a 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?

@orenc17
Copy link
Contributor Author

orenc17 commented Nov 28, 2018

@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
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@bridadan bridadan left a 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!

@cmonr cmonr dismissed 0xc0170’s stale review November 29, 2018 00:32

Commits squashed. Please re-review.

@cmonr
Copy link
Contributor

cmonr commented Nov 29, 2018

Will start CI when able.

@orenc17
Copy link
Contributor Author

orenc17 commented Nov 29, 2018

@cmonr @0xc0170 this PR should be merged as soon as possible to prevent bad merges of PSA PR's in the RC's

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 29, 2018

Will be tested soon, I'll add one more job for rc1 and this one will be next

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 29, 2018

CI started

@mbed-ci
Copy link

mbed-ci commented Nov 29, 2018

Test run: SUCCESS

Summary: 4 of 4 test jobs passed
Build number : 1
Build artifacts
Build logs

@cmonr cmonr merged commit 5047ea4 into ARMmbed:master Nov 29, 2018
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.

7 participants