Skip to content

Add baremetal example to testing #10131

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

Conversation

kegilbert
Copy link
Contributor

@kegilbert kegilbert commented Mar 17, 2019

Description

Add a basic baremetal blinky example to the test framework to get a smoketest of baremetal (currently have none in CI). @bulislaw Does this look like a more reasonable solution than modifying blinky?

@cmonr Should bare-metal be in 5.11.5? It was merged a couple of weeks before that release branch was made but I don't see it in there. I can either remove the bare-metal build profile from the example until the example is updated to 5.12 or point to a RC branch for the example's mbed-os hash. I wasn't 100% on the examples policy on what we can point to.
See Martin's reply: #10131 (comment)

Pull request type

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

Reviewers

@bulislaw @SenRamakri

Release Notes

@kegilbert kegilbert force-pushed the baremetal-blinky-examples-test branch from ec6564f to 0abe178 Compare March 17, 2019 02:02
@ciarmcom ciarmcom requested review from bulislaw, SenRamakri and a team March 17, 2019 04:00
@ciarmcom
Copy link
Member

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

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 18, 2019

Baremetal is part of 5.12.
Point to mbed-os-5.12 branch now.

One note about naming - shouldn't be baremetal as suffix (blinky-baremetal) rather?

@kegilbert kegilbert force-pushed the baremetal-blinky-examples-test branch from 0abe178 to 6139b01 Compare March 18, 2019 13:46
@kegilbert
Copy link
Contributor Author

@0xc0170 Updated the example names and pointed to the Mbed OS 5.12 branch.

@cmonr
Copy link
Contributor

cmonr commented Mar 18, 2019

CI started

@cmonr
Copy link
Contributor

cmonr commented Mar 18, 2019

@kegilbert Plz fix, k thx.

@mbed-ci
Copy link

mbed-ci commented Mar 18, 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-ARMC5
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-IAR8
  • jenkins-ci/mbed-os-ci_build-ARMC6

@kegilbert kegilbert force-pushed the baremetal-blinky-examples-test branch from 6139b01 to 288d339 Compare March 18, 2019 21:03
@kegilbert
Copy link
Contributor Author

@cmonr Limited the list of targets to ignore boards that are not built for Mbed OS 2 (mainly targets that were pulling in WifiInterface files that required RTOS classes).

@cmonr
Copy link
Contributor

cmonr commented Mar 18, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 19, 2019

Test run: FAILED

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

Failed test jobs:

  • jenkins-ci/mbed-os-ci_exporter

@cmonr
Copy link
Contributor

cmonr commented Mar 19, 2019

CI job restarted: jenkins-ci/mbed-os-ci_exporter

Hate it when an exporter job fails because the JVM threw a fit (gnuarmeclipse ide).

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 19, 2019

Exporters restarted again

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 19, 2019

Exporters failing for multiple boards and 2nd time, please review

Copy link
Member

@bulislaw bulislaw left a comment

Choose a reason for hiding this comment

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

That's confusing. Well not these changes but the new example. There's not explanation what it illustrates and why is it there. We should at least add a description for external users saying what does it do and what's bare metal (with link to docs).

@kegilbert
Copy link
Contributor Author

I'm touching up some of the baremetal/migration guide docs. I'm planning on adding a blurb there pointing to this is an out of the box baremetal example.

@cmonr
Copy link
Contributor

cmonr commented Mar 19, 2019

@kegilbert You might need to take a look at the failure logs.

There might be problem with the PR/targets after all:
https://mbed-os.mbedcloudtesting.com/blue/rest/organizations/jenkins/pipelines/mbed-os-ci_exporter-gnuarmeclipse/runs/1787/nodes/46/log/?start=0

@kegilbert
Copy link
Contributor Author

kegilbert commented Mar 19, 2019

Don't seem to have access to that link @cmonr.
https://mbed-os.mbedcloudtesting.com/blue/organizations/jenkins/mbed-os-ci_exporter/detail/mbed-os-ci_exporter/1585/pipeline/17 isn't giving me much info, is there another link I could use?

@kegilbert
Copy link
Contributor Author

kegilbert commented Mar 21, 2019

@theotherjimmy What would be the path forward in this case? Is this something fixable in a reasonable time-frame or something for a later release?

We spoke offline, it sounds like a fundamental limitation in gnuarmeclipse requiring a large amount of effort to update in our tools. Proposed path forward is to remove gnuarmeclipse testing for this example, update the docs to reflect that baremetal does not currently work in gnuarmeclipse, and throw a warning in the tools when a baremetal project is exported for the contemptuous IDE.

(@0xc0170 @bulislaw)

@theotherjimmy
Copy link
Contributor

@kegilbert I'm not sure that I can fix this in a short order, because I don't know how I would fix this. I would expect this to take > 1day of work (which is all we have left before RC4)

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 22, 2019

Proposed path forward is to remove gnuarmeclipse testing for this example

It has not been updated, neither any PR referencing this one. This might not be in rc4 if it does not get an update within next few hours.

@adbridge
Copy link
Contributor

@kegilbert @theotherjimmy Could you not just add the list of exporters that do work to the exporters list in examples.json ? Though that would obviously only help our internal testing.

@kegilbert BTW you will need to talk to @screamerbg to get this example mirrored to os.mbed.com.....

baremetal does not currently work with gnuarmeclipse
@kegilbert
Copy link
Contributor Author

kegilbert commented Mar 22, 2019

Apologies for the delay, updated the exporter list and updated the OS teams example @adbridge
https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-blinky-baremetal

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 22, 2019

CI restarted

@mbed-ci
Copy link

mbed-ci commented Mar 22, 2019

Test run: FAILED

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

Failed test jobs:

  • jenkins-ci/mbed-os-ci_exporter

@adbridge
Copy link
Contributor

@kegilbert still failing exporters by the looks of it :(

@adbridge
Copy link
Contributor

Bumping this out to 5.12.1

@kegilbert
Copy link
Contributor Author

It's failing for uvision6 on the LPC55S69_NS, which is not a target included in my list for the baremetal example. Any idea why that one would be failing?

@bridadan
Copy link
Contributor

Oh hey that target is failing on my PR as well: #10193

@cmonr
Copy link
Contributor

cmonr commented Mar 26, 2019

CI restarted.
Complete restart needed since master's HEAD has moved, meaning CI needs to run against a new /ref/pull/*/merge reference

@mbed-ci
Copy link

mbed-ci commented Mar 26, 2019

Test run: SUCCESS

Summary: 13 of 13 test jobs passed
Build number : 5
Build artifacts

cmonr pushed a commit to cmonr/mbed-os that referenced this pull request Mar 26, 2019
…ples-test

Add baremetal example to testing
@cmonr cmonr merged commit c2e5a8b 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.