Skip to content

Enabl-able Python 3 tools testing in Travis CI #6433

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 1 commit into from
May 24, 2018

Conversation

cmonr
Copy link
Contributor

@cmonr cmonr commented Mar 22, 2018

Description

Updates Travis CI such that once mbed-cli 1.7.0 is released, automatic tools testing against Python 3 can be switched on with a single, small PR.

Tested in personal instance of Travis CI. When enabled, Python 3 fails appropriately. An aborted example can be found here: https://travis-ci.org/cmonr/mbed-os/builds/357062171.

Pull request type

[ ] Fix  
[ ] Refactor  
[ ] New target  
[X] Feature  
[ ] Breaking change

@theotherjimmy
Copy link
Contributor

@cmonr Don't delete the dashes. it kills the check boxes.

theotherjimmy
theotherjimmy previously approved these changes Mar 22, 2018
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.

Looks fine to me.

@cmonr
Copy link
Contributor Author

cmonr commented Mar 22, 2018

@theotherjimmy Not sure I follow. Which dashes do you mean?

Doing a visual diff in Travis of this PR's branch and mbed-os master, they still look the same.

#
# - <<: *tools-pytest
# env: NAME=tools-py3.6
# python: 3.6
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

why not turn it on?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ignore me, I didn't read your message close enough 👍

Let's keep this pr open until python 3 support works again. Maybe we should create a branch for python3 work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@geky Hmm, a feature branch might not be that bad of an idea, although I'm not confident it's needed. We actually already have some tools in master that are python3 ready, courtesy of @theotherjimmy.

I'd prefer to not keep PRs open as a progress indicator, mainly because I don't like to see PRs linger :)

@0xc0170 thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

A branch will quickly become out of date with master and then be rebase hell, I think.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fair enough

It just seems strange to merge something that is entirely commented out

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's fair. The flip side is that devs can enable the functionality to test porting efforts :)

0xc0170
0xc0170 previously approved these changes Mar 23, 2018
@0xc0170
Copy link
Contributor

0xc0170 commented Mar 23, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Mar 23, 2018

Build : SUCCESS

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

Triggering tests

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

@mbed-ci
Copy link

mbed-ci commented Mar 23, 2018

@mbed-ci
Copy link

mbed-ci commented Mar 23, 2018

@theotherjimmy
Copy link
Contributor

@cmonr I was referring to the -s before the [ ] in the PR description.

@cmonr
Copy link
Contributor Author

cmonr commented Mar 26, 2018

Parking for now. Will update and uncomment py3 sections when support is complete.

Will be enabled when tool support has been completely ported
@cmonr
Copy link
Contributor Author

cmonr commented May 23, 2018

@theotherjimmy @geky @0xc0170 It's baaack!

This is the final piece to the puzzle. mbed-cli currently has two PRs open and should be merged and released within the week (ARMmbed/mbed-cli#668 and ARMmbed/mbed-cli#667).

What I suggest:
We get this PR tested and merged into 5.9.0-rc1, with a separate PR enabling py3 tests and updating the requirements.txt version to the updated version.

Thoughts?

@li-ho
Copy link

li-ho commented May 23, 2018

@cmonr, @theotherjimmy said add dashes in front of the following 5 lines of Pull request type
[ ] Fix
[ ] Refactor
[ ] New target
[X] Feature
[ ] Breaking change

and then produce

  • Fix
  • Refactor
  • New target
  • Feature
  • Breaking change

No code changes or testing are required.

@mbed-ci
Copy link

mbed-ci commented May 23, 2018

Build : SUCCESS

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

Triggering tests

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

@mbed-ci
Copy link

mbed-ci commented May 23, 2018

@cmonr
Copy link
Contributor Author

cmonr commented May 23, 2018

Halting the auto-started export and test builds, and will hold until review had been completed.

Build needs to be restarted anyways since the status wasn't captured correctly.

@cmonr
Copy link
Contributor Author

cmonr commented May 23, 2018

@li-ho I'm glad you noticed, but the description style has been updated a couple of times since I last had this PR open. The style that is present now is correct and in line with other PRs.

@cmonr
Copy link
Contributor Author

cmonr commented May 24, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented May 24, 2018

Build : SUCCESS

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

Triggering tests

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

@mbed-ci
Copy link

mbed-ci commented May 24, 2018

@mbed-ci
Copy link

mbed-ci commented May 24, 2018

@cmonr cmonr merged commit 2eac96e into ARMmbed:master May 24, 2018
@cmonr cmonr removed the needs: CI label May 24, 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.

6 participants