Linaro / lite-lava-docker-compose

LITE Team LAVA docker dispatcher
MIT License
5 stars 10 forks source link

zephyr-upstream: List of known (aka expected) failure testcases #97

Open pfalcon opened 4 years ago

pfalcon commented 4 years ago

We have cases of systematic test failures in zephyr-upstream test project (https://qa-reports.linaro.org/lite/zephyr-upstream/). Oftentimes, failure are hardware-specific (happen on one board, but not another).

Ideal solution for these would be of course fixing them upstream, but that may take varying amounts of time and effort, so we need to have a policy and process to deal with them in our testing infrastructure.

An obvious stop-gap measure would be just excluding such tests from LAVA submission. Indeed, we already have some of such tests in the "filtering blacklist". But this is not ideal solution, as we run some arbitrary subset of the upstream testsuite, miss proper metadata of the "known failure", and miss opportunity to see when the issue is fixed.

Instead, SQUAD offers a concept of "known failure" (XFAIL) status for a testcase. Based on quick exchange with @mwasilew, it works like following: it's possible to set a "KnownIssue" field (URL) for a particular testcase and environment (i.e. hardware configuration). If a testcase come in with FAILED status, for which KnownIssue is set, it's instead recorded as XFAIL. This feature is used extensively by LKFT, and based on the above description, would fit out usecase well either. A caveat is that currently, there's no SQUAD UI to manage KnownIssue field, instead only API endpoint is available. LKFT project seems to have an adhoc tool to manage these (looks like functionality isn't available currently in "generic" squad-cli).

Some links:

pfalcon commented 4 years ago

Fails systematically: https://qa-reports.linaro.org/lite/zephyr-upstream/build/897b5bf6-5344/testrun/2900343/suite/api-drivers-pwm-zephyr/test/test_pwm_cycle/history/

Environment: frdm_kw41z-zephyr, frdm_kw41z-gnuarmemb Suite: api-drivers-pwm-zephyr Test Name: test_pwm_cycle Result: fail

https://qa-reports.linaro.org/lite/zephyr-upstream/build/897b5bf6-5344/testrun/2900343/suite/api-drivers-pwm-zephyr/test/test_pwm_cycle/details/

Upstream report: https://github.com/zephyrproject-rtos/zephyr/issues/26664