Skip to content

Python2+3: mbed compile, mbed test --compile, python unit tests #5848

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 13 commits into from
Feb 7, 2018

Conversation

theotherjimmy
Copy link
Contributor

@theotherjimmy theotherjimmy commented Jan 12, 2018

Todo

  • Have Travis tests this in python 2.7, 3.5 and 3.6

@theotherjimmy theotherjimmy changed the title Python2+3: Mbed Compile + python unit tests Python2+3: mbed compile, mbed test --compile, python unit tests Jan 12, 2018
@theotherjimmy theotherjimmy force-pushed the compile-py3 branch 3 times, most recently from 2d84302 to 4576a73 Compare January 13, 2018 00:08
@theotherjimmy theotherjimmy force-pushed the compile-py3 branch 5 times, most recently from 1838dd8 to 19545f4 Compare January 25, 2018 15:35
@theotherjimmy
Copy link
Contributor Author

@Nodraak Care to review while I work on getting testing working again?

@theotherjimmy
Copy link
Contributor Author

This change is huge. So will the review list:

Copy link
Contributor

@geky geky left a comment

Choose a reason for hiding this comment

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

Travis changes look good 👍

try:
from Queue import Queue
except ImportError:
from queue import Queue
Copy link
Contributor

Choose a reason for hiding this comment

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

lol

Copy link
Contributor

@sarahmarshy sarahmarshy left a comment

Choose a reason for hiding this comment

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

print("Good work!")

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.

Awesome !

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 26, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Jan 26, 2018

Build : FAILURE

Build number : 970
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5848/

@theotherjimmy
Copy link
Contributor Author

@studavekar I'm not seeing any build failures there. Am I missing something?

@studavekar
Copy link
Contributor

@studavekar I'm not seeing any build failures there. Am I missing something?

I can see below error in console logs

00:00:40.604 mbed-os test build passed, perform example builds
00:00:40.859 usage: examples.py compile [-h] [-m MCU] [--profile profile]
00:00:40.859                            [toolchains [toolchains ...]]
00:00:40.860 examples.py compile: error: argument toolchains: invalid parse_type value: 'ARM'

@theotherjimmy
Copy link
Contributor Author

I had to go to Jenkins for that one I suppose.

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.

Great work! This is not a painless change but I'm really happy to see this happening!

@@ -154,7 +154,7 @@
test_builds = {}
total_build_success = True

for target_name, target_toolchains in build_config.iteritems():
for target_name, target_toolchains in build_config.items():
Copy link
Contributor

Choose a reason for hiding this comment

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

Side note for this file, I'm not aware of anything that relies on this. It'd be good to double check that but I'm guessing this file could be removed in the future.


SUPPORTED_TOOLCHAINS = ["ARM", "IAR", "GCC_ARM", "ARMC6"]
SUPPORTED_TOOLCHAINS = list(TOOLCHAINS - set(u'uARM'))
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@geky
Copy link
Contributor

geky commented Jan 30, 2018

Sorry, pretty bars made it in first. Looks like this will need a rebase. 😛

@theotherjimmy
Copy link
Contributor Author

Done.
/morph build

@mbed-ci
Copy link

mbed-ci commented Feb 5, 2018

Build : SUCCESS

Build number : 1065
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5848/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

@cmonr
Copy link
Contributor

cmonr commented Feb 5, 2018

/morph uvisor-test

@mbed-ci
Copy link

mbed-ci commented Feb 5, 2018

@cmonr
Copy link
Contributor

cmonr commented Feb 5, 2018

/morph uvisor-test

1 similar comment
@cmonr
Copy link
Contributor

cmonr commented Feb 5, 2018

/morph uvisor-test

@mbed-ci
Copy link

mbed-ci commented Feb 5, 2018

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 5, 2018

/morph uvisor-test

@cmonr cmonr merged commit c679dee into ARMmbed:master Feb 7, 2018
@adbridge
Copy link
Contributor

This relies on changes introduced in #5022 which is targeted for 5.8.

@theotherjimmy
Copy link
Contributor Author

@adbridge It's not that it "relies on" it, it was just rebased on top of those changes, and modified the same code.

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.

10 participants