Skip to content

Adding retries to the NIST test. #2404

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
Aug 23, 2016
Merged

Conversation

bridadan
Copy link
Contributor

@bridadan bridadan commented Aug 9, 2016

A UDP request to the NIST servers can fail to return data due to UDP
packet loss. Since packets are not guaranteed with UDP, this is a valid
failure and should not be treated as a test failure. The test should retry
the request in this case. This commit adds those retries.

This test sometimes fails in CI even when the actual PR can't cause the test to fail (#2393 is an example of this). This should help cut down on false failures.

@geky
Copy link
Contributor

geky commented Aug 9, 2016

Did you only indent 2 spaces?

Other than that the logic looks good 👍

@bridadan
Copy link
Contributor Author

bridadan commented Aug 10, 2016

@geky Good catch! I'll fix that :)

Edit: Fixed!

A UDP request to the NIST servers can fail to return data due to UDP
packet loss. Since packets are not guaranteed with UDP, this is a valid
failure and should not be treated as a test failure. The test should retry
the request in this case. This commit adds those retries.
@bridadan bridadan force-pushed the retry-nist-udp-test branch from dd51fa6 to 114efcf Compare August 10, 2016 14:25
@bridadan
Copy link
Contributor Author

/morph echo

@mbed-bot
Copy link

I recieved your comment! Here's what you wrote!

/morph echo

@bridadan
Copy link
Contributor Author

/morph test

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test

@bridadan
Copy link
Contributor Author

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 630

All builds and test passed!

@sg-
Copy link
Contributor

sg- commented Aug 17, 2016

LGTM 👍

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.

4 participants