murdock: introduce 'TEST_ON_CI_BLACKLIST'#11743
Merged
kaspar030 merged 3 commits intoRIOT-OS:masterfrom Jul 12, 2019
Merged
Conversation
Refactor the handling to use a variable to store if a test is enabled. Add a 'test-on-ci-enabled' target that test if the test on ci is enabled. This is a first commit before changing the behavior.
Introduce a variable to set that a test is blacklisted. This is a move toward enabling tests by default and adding a blacklisting reason instead for a board instead of not whitelisting them which hides the problem. Currently, a test should be both whitelisted and blacklisted at the same time to have a meaning. It is planned to whitelist all by default in an upcoming pull request.
Contributor
Author
|
I disable test cache as otherwise, murdock does not include the tests results. |
Blacklist native for the xtimer tests that have timing issues. This also enables running the test on `nrf52dk` as I think it was forgotten when adding the support.
Contributor
Author
|
I added a usage for |
Contributor
|
This is the diff between tests run for last nightlies and this PR: There's something wrong with the base branch of the CI build. It was merged into "eab0a8864250001567cb0cbfc1c5562ba09a3af2", which is quite old. I'm investigating. |
Contributor
|
I think I fell over a browser-cached, previous result. Correct diff is: |
Contributor
Author
|
Thank you for the review. |
This was referenced Jul 12, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
Introduce a variable to set that a test is blacklisted.
This is a move toward enabling tests by default and adding a blacklisting
reason instead for a board instead of not whitelisting them which hides
the problem.
Currently, a test should be both whitelisted and blacklisted at the same
time to have a meaning. It is planned to whitelist all by default in
an upcoming pull request.
Testing procedure
TEST_ON_CI_BLACKLIST behaves properly
The
tests/xtimer_now64_continuityandtests/xtimer_usleepmust correctly run by murdock onsamr21-xproandnrf52dk, and notnative.https://ci.riot-os.org/RIOT-OS/RIOT/11743/bdd721fff476ae8ffe11b6240e7d0e0a6070999f/output/run_test/tests/xtimer_now64_continuity/nrf52dk:gnu.txt
And it is indeed not executed in
native(it is in the compiler output fornative).https://ci.riot-os.org/RIOT-OS/RIOT/11743/bdd721fff476ae8ffe11b6240e7d0e0a6070999f/output/compile/tests/xtimer_now64_continuity/native:gnu.txt
It creates the
.testfile andtest-on-ci-enabledhas expected return valuePrevious behavior is preserved
Tests with
TEST_ON_CI_WHITELIST += allstill create the.testfile andtest-on-ci-enabledhas expected return valueWith
TEST_ON_CI_WHITELIST = nativeonly native does itIf empty, tests are disabled
Issues/PRs references