-
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: introduce 'TEST_ON_CI_BLACKLIST' #11743
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.
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.
I added a usage for |
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. |
I think I fell over a browser-cached, previous result. Correct diff is:
|
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.
ACK.
Thank you for the review. |
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_continuity
andtests/xtimer_usleep
must correctly run by murdock onsamr21-xpro
andnrf52dk
, 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
.test
file andtest-on-ci-enabled
has expected return valuePrevious behavior is preserved
Tests with
TEST_ON_CI_WHITELIST += all
still create the.test
file andtest-on-ci-enabled
has expected return valueWith
TEST_ON_CI_WHITELIST = native
only native does itIf empty, tests are disabled
Issues/PRs references