-
Notifications
You must be signed in to change notification settings - Fork 2k
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
murdock: enable nrf52dk for on-hardware tests #9095
Conversation
5b09ac8
to
0913103
Compare
Looks good. Does the patch for the test work ? it could help for other shell based tests that from time to time fail on samr21. I tried running it but it currently failed, so waiting on your input for re-running it. |
ping @MrKevinWeiss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you are just waiting for #8838 to be merged so it gets done cleanly.
@@ -40,8 +41,10 @@ def _check_startup(child): | |||
|
|||
def _check_help(child): | |||
child.sendline('') | |||
child.expect('>') | |||
child.expect('> ') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding sleep can you just child.expect('> ', timeout=0.1)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that would make pexpect give '> ' more time, right? I intended to add a slight delay after receiving the prompt, before sending the next line.
@@ -40,8 +41,10 @@ def _check_startup(child): | |||
|
|||
def _check_help(child): | |||
child.sendline('') | |||
child.expect('>') | |||
child.expect('> ') | |||
time.sleep(0.1) | |||
child.sendline('help') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
0913103
to
111f8f7
Compare
@MrKevinWeiss @smlng is this PR still needed given the establishing HIL testing technology and deployment? |
@kaspar030 Do you have the murdock workers connected? Now that we have the compile_and_test_for_board any maintainer can run these tests on there desk. Also I found lots of failures that we due to things unrelated to the test (ie. libfixmath, xtimer_periodic_wakeup). Plus some cases where the flasher either doesn't work or get held up and the only way to flash is by pressing the reset button at the right time. How would you like to proceed? |
One is connected, but somehow the incoming UART is broken. I haven't gotten around to debugging that, yet. |
I am not sure but I also think IoT labs supports a whole bunch of boards now. They may have something available. |
All of those don't support running tests per-PR as part of the CI. |
@kaspar030 I am in the office today if there's anyway to physically help with the attached nrf52dk |
Yes, if you can find a second board, you could replace the nrf that's attached to the Pi. It might be a hardware problem. The nrf is connected to the Pi named "pi-36f90aef". |
@kaspar030 can you try again? I think the USB cable was faulty. I changed to a new one. |
Seems to work. Thanks! |
This is not WIP anymore. Anyone? |
The last commit with the
What did you do for the JLink update ? I may need the same thing as sometime my jlink uart is mixed and could be added in the doc (other than this PR but asking as it was mentioned here). |
befb352
to
e3729be
Compare
Nice. rebased & dropped that commit. |
It was updated automatically when I flashed the board with JLink on my workstation, which had a very recent JLinkExe (I think from this year even). |
Ok, so my board may have been updated already. When looking in the murdock output, some files are not recognized as being I get a file download.It opens as When opening the url for |
"file" does not recognize the file as |
At least it is defined how Firefox does this: From here:
|
@smlng can we try forcing all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simple and clean, I ACK. Maybe we can rerun the ci (on hardware) to make sure everything is good before merge.
@kaspar030 hmmm I can't see the tests being run on the hardware in the murdock output, shouldn't the samr21 and nrf52dk be triggered and show up in the worker stats?
|
The output issue will be seen on the first failed test for |
@cladmi yes but this issue is also present for samr21-xpro, it is not nrf52dk specific. |
@MrKevinWeiss results are there now. Care to confirm? there's a race when setting both CI labels at the same time, it sometimes causes one to not be recognized by murdock. |
All good, thanks @kaspar030 |
I did not know, I only saw it for |
Contribution description
This PR enables on-hardware tests on two nrf52dk boards.
nrf52dk uses
$(HEXFILE)
as flashfile. One of the commits makes an exception for this. IMO, this is ugly, but will go away as soon as #8838 is merged.Issues/PRs references
#8838