Skip to content

PSA more options in release tool #10070

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 10 commits into from
Mar 27, 2019
Merged

PSA more options in release tool #10070

merged 10 commits into from
Mar 27, 2019

Conversation

orenc17
Copy link
Contributor

@orenc17 orenc17 commented Mar 12, 2019

Description

  • Added logging infrastructure.
  • Added -v for verbose
  • Added --skip-tests to build only the main image.
  • Added -l to list PSA platforms.
  • Added -x to send extra argument to the build command such as -D

Note to maintainers: this is for 5.12.1

Pull request type

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

Reviewers

Release Notes

@ciarmcom ciarmcom requested review from a team March 12, 2019 20:00
@ciarmcom
Copy link
Member

@orenc17, thank you for your changes.
@ARMmbed/mbed-os-tools @ARMmbed/mbed-os-maintainers please review.

Copy link
Contributor

@theotherjimmy theotherjimmy left a comment

Choose a reason for hiding this comment

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

Nothing looks out of the ordinary here.

@orenc17
Copy link
Contributor Author

orenc17 commented Mar 12, 2019

@ARMmbed/mbed-os-maintainers do not merge yet
I still need to update docs and maybe more features

@orenc17 orenc17 changed the title [PSA] more options in release tool [PSA] more options in release tool - WIP Mar 12, 2019
@0xc0170 0xc0170 changed the title [PSA] more options in release tool - WIP PSA more options in release tool - WIP Mar 13, 2019
@0xc0170
Copy link
Contributor

0xc0170 commented Mar 13, 2019

@cmonr your review is very much a must here !

@cmonr cmonr self-requested a review March 13, 2019 20:12
@orenc17 orenc17 changed the title PSA more options in release tool - WIP PSA more options in release tool Mar 20, 2019
@orenc17
Copy link
Contributor Author

orenc17 commented Mar 20, 2019

Finished with the changes.. ready for CI

Copy link
Contributor

@cmonr cmonr left a comment

Choose a reason for hiding this comment

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

LGTM!


subprocess.check_call([
sys.executable, MAKE_PY_LOCATTION,
'mbed', 'test', '--compile',
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

@cmonr
Copy link
Contributor

cmonr commented Mar 20, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 20, 2019

Test run: FAILED

Summary: 4 of 9 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-IAR8
  • jenkins-ci/mbed-os-ci_build-ARMC5
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-ARMC6

@cmonr
Copy link
Contributor

cmonr commented Mar 20, 2019

CI restarted.

Confirming PR has issues, since build failures seemed odd.

@cmonr
Copy link
Contributor

cmonr commented Mar 20, 2019

CI restarted.

@mbed-ci
Copy link

mbed-ci commented Mar 20, 2019

Test run: FAILED

Summary: 4 of 9 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARMC5
  • jenkins-ci/mbed-os-ci_build-IAR8
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-ARMC6

@cmonr
Copy link
Contributor

cmonr commented Mar 20, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 20, 2019

Test run: FAILED

Summary: 7 of 9 test jobs failed
Build number : 3
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARMC5
  • jenkins-ci/mbed-os-ci_mbed2-build-IAR8
  • jenkins-ci/mbed-os-ci_mbed2-build-GCC_ARM
  • jenkins-ci/mbed-os-ci_mbed2-build-ARMC5
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-IAR8
  • jenkins-ci/mbed-os-ci_build-ARMC6

@mbed-ci
Copy link

mbed-ci commented Mar 21, 2019

Test run: FAILED

Summary: 4 of 9 test jobs failed
Build number : 4
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARMC5
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-IAR8
  • jenkins-ci/mbed-os-ci_build-ARMC6

@orenc17
Copy link
Contributor Author

orenc17 commented Mar 21, 2019

@ARMmbed/mbed-os-maintainers can you run again? i've reverted back parts of the implementation to the previous one

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 21, 2019

CI was restarted

@adbridge
Copy link
Contributor

@oren will there be additional changes required to the mbed-os release script to use some of these new options ?

Copy link
Contributor

@adbridge adbridge left a comment

Choose a reason for hiding this comment

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

AFAICT looks ok

@orenc17
Copy link
Contributor Author

orenc17 commented Mar 21, 2019

@oren will there be additional changes required to the mbed-os release script to use some of these new options ?

this PR will make the PSA script verbose, if you want to disable most of the prints we'll need to add -q to mbed-os release script

@orenc17
Copy link
Contributor Author

orenc17 commented Mar 25, 2019

@adbridge the new -x feature is tested with the psa-compliance example repo

Oren Cohen and others added 9 commits March 26, 2019 10:48
@NirSonnenschein
Copy link
Contributor

Starting CI

@mbed-ci
Copy link

mbed-ci commented Mar 26, 2019

Test run: FAILED

Summary: 4 of 9 test jobs failed
Build number : 6
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARMC5
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-IAR8
  • jenkins-ci/mbed-os-ci_build-ARMC6

@cmonr
Copy link
Contributor

cmonr commented Mar 26, 2019

Will start CI for now, but the last commit points to something interesting.

@orenc17 What kind of local testing was done prior to the PR?

@cmonr
Copy link
Contributor

cmonr commented Mar 26, 2019

CI started

@orenc17
Copy link
Contributor Author

orenc17 commented Mar 26, 2019

@cmonr i tried to implement the extra parameter with and without a leading symbol (-x in my case).
when i didn't define the leading symbol i always got an empty array when no extra params were sent.
when i did define the leading symbol i got a None when no extra params were sent.
that is why i needed to add default=[] in the last commit

cmonr pushed a commit to cmonr/mbed-os that referenced this pull request Mar 26, 2019
PSA more options in release tool
@mbed-ci
Copy link

mbed-ci commented Mar 26, 2019

Test run: FAILED

Summary: 1 of 13 test jobs failed
Build number : 7
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_dynamic-memory-usage

@cmonr
Copy link
Contributor

cmonr commented Mar 26, 2019

CI job restarted: jenkins-ci/dynamic-memory-usage

Dunno why this failed with this PR to begin with.

| GCC_ARM-K66F | K66F | ethernet | TIMEOUT | 92.05 | default |

@cmonr cmonr merged commit 7e7f4f5 into ARMmbed:master Mar 27, 2019
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.

8 participants