zephyrproject-rtos / ci-tools

CI Tools and Scripts (obsolete)
Apache License 2.0
9 stars 18 forks source link

Compliance errors when running locally #137

Closed sylvioalves closed 3 years ago

sylvioalves commented 3 years ago

Hi, when I run the check_compliance.py locally, I get errors that Zephyr's CI do no catch.

And all the CONFIG_* below are not whitelisted. Is it only in my environment or CI is missing something? (tested with main branch).

(...)
warning: the choice symbol SOC_IT8XXX2 (defined at soc/riscv/riscv-ite/it8xxx2/Kconfig.soc:8, soc/riscv/riscv-ite/it8xxx2/Kconfig.soc:8) is defined with a prompt outside the choice
warning: the choice symbol SOC_IT8XXX2_INT_32K (defined at soc/riscv/riscv-ite/it8xxx2/Kconfig.soc:18, soc/riscv/riscv-ite/it8xxx2/Kconfig.soc:18) is defined with a prompt outside the choice
warning: the choice symbol SOC_IT8XXX2_EXT_32K (defined at soc/riscv/riscv-ite/it8xxx2/Kconfig.soc:21, soc/riscv/riscv-ite/it8xxx2/Kconfig.soc:21) is defined with a prompt outside the choice
warning: the choice symbol SOC_RISCV32_MIV (defined at soc/riscv/riscv-privilege/miv/Kconfig.soc:10, soc/riscv/riscv-privilege/miv/Kconfig.soc:10) is defined with a prompt outside the choice
warning: the choice symbol SOC_RISCV_SIFIVE_FREEDOM (defined at soc/riscv/riscv-privilege/sifive-freedom/Kconfig.soc:10, soc/riscv/riscv-privilege/sifive-freedom/Kconfig.soc:10) is defined with a prompt outside the choice
warning: the choice symbol SOC_JH7100 (defined at soc/riscv/riscv-privilege/starfive_jh71xx/Kconfig.soc:8, soc/riscv/riscv-privilege/starfive_jh71xx/Kconfig.soc:8) is defined with a prompt outside the choice
warning: the choice symbol SOC_RISCV_VIRT (defined at soc/riscv/riscv-privilege/virt/Kconfig.soc:8, soc/riscv/riscv-privilege/virt/Kconfig.soc:8) is defined with a prompt outside the choice
warning: the choice symbol SOC_INTEL_CAVS_V15 (defined at soc/xtensa/intel_adsp/cavs_v15/Kconfig.soc:7, soc/xtensa/intel_adsp/cavs_v15/Kconfig.soc:7) is defined with a prompt outside the choice
warning: the choice symbol SOC_INTEL_CAVS_V18 (defined at soc/xtensa/intel_adsp/cavs_v18/Kconfig.soc:7, soc/xtensa/intel_adsp/cavs_v18/Kconfig.soc:7) is defined with a prompt outside the choice
warning: the choice symbol SOC_INTEL_CAVS_V20 (defined at soc/xtensa/intel_adsp/cavs_v20/Kconfig.soc:7, soc/xtensa/intel_adsp/cavs_v20/Kconfig.soc:7) is defined with a prompt outside the choice
warning: the choice symbol SOC_INTEL_CAVS_V25 (defined at soc/xtensa/intel_adsp/cavs_v25/Kconfig.soc:7, soc/xtensa/intel_adsp/cavs_v25/Kconfig.soc:7) is defined with a prompt outside the choice
ERROR   : Test Kconfig failed: Found references to undefined Kconfig symbols. If any of these are false
positives, then add them to UNDEF_KCONFIG_WHITELIST in check_compliance.py in the ci-tools repo.
If the reference is for a comment like /* CONFIG_FOO_* */ (or
/* CONFIG_FOO_*_... */), then please use exactly that form (with the '*'). The
CI check knows not to flag it.
More generally, a reference followed by $, @, {, *, or ## will never be
flagged.
CONFIG_APOLLOLAKE                          samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:1
CONFIG_CANNONLAKE                          samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:1
CONFIG_COMP_SRC_SMALL                      samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:7
CONFIG_DEBUG_MEMORY_USAGE_SCAN             samples/subsys/audio/sof/prj.conf:6
CONFIG_HP_MEMORY_BANKS                     samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:5, samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:6, samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:6, samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:6
CONFIG_ICELAKE                             samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:1
CONFIG_INTEL_ALH                           samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:4, samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:4, samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:4
CONFIG_INTEL_DMIC                          samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:2, samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:2, samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:2, samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:2
CONFIG_INTEL_SSP                           samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:3, samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:3, samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:3, samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:3
CONFIG_LP_MEMORY_BANKS                     samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:4, samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:5, samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:5, samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:5
CONFIG_PERCEPIO_RECORDER_TRC_RECORDER_STREAM_PORT_ITM modules/TraceRecorder/CMakeLists.txt:28
CONFIG_PERCEPIO_RECORDER_TRC_RECORDER_STREAM_PORT_RTT modules/TraceRecorder/CMakeLists.txt:18
CONFIG_PERFORMANCE_COUNTERS                samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:6, samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:7
CONFIG_RIMAGE_SIGNING_SCHEMA               samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:7
CONFIG_TIGERLAKE                           samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:1
Running checkpatch       tests in /builds/idf/zephyrproject-rtos/zephyr ...
Running Kconfig          tests in /builds/idf/zephyrproject-rtos/zephyr ...
Running Codeowners       tests in /builds/idf/zephyrproject-rtos/zephyr ...
Running Nits             tests in /builds/idf/zephyrproject-rtos/zephyr ...
Running Gitlint          tests in /builds/idf/zephyrproject-rtos/zephyr ...
Running pylint           tests in /builds/idf/zephyrproject-rtos/zephyr ...
Running Identity         tests in /builds/idf/zephyrproject-rtos/zephyr ...
1 checks failed
Complete results in compliance.xml
::error file=Kconfig.txt::See https://docs.zephyrproject.org/latest/guides/kconfig/index.html for more details.%0A%0AFound references to undefined Kconfig symbols. If any of these are false%0Apositives, then add them to UNDEF_KCONFIG_WHITELIST in check_compliance.py in the ci-tools repo.%0A%0AIf the reference is for a comment like /* CONFIG_FOO_* */ (or%0A/* CONFIG_FOO_*_... */), then please use exactly that form (with the '*'). The%0ACI check knows not to flag it.%0A%0AMore generally, a reference followed by $, @, {, *, or ## will never be%0Aflagged.%0A%0ACONFIG_APOLLOLAKE                          samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:1%0ACONFIG_CANNONLAKE                          samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:1%0ACONFIG_COMP_SRC_SMALL                      samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:7%0ACONFIG_DEBUG_MEMORY_USAGE_SCAN             samples/subsys/audio/sof/prj.conf:6%0ACONFIG_HP_MEMORY_BANKS                     samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:5, samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:6, samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:6, samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:6%0ACONFIG_ICELAKE                             samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:1%0ACONFIG_INTEL_ALH                           samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:4, samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:4, samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:4%0ACONFIG_INTEL_DMIC                          samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:2, samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:2, samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:2, samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:2%0ACONFIG_INTEL_SSP                           samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:3, samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:3, samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:3, samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:3%0ACONFIG_LP_MEMORY_BANKS                     samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:4, samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:5, samples/subsys/audio/sof/boards/intel_adsp_cavs20.conf:5, samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:5%0ACONFIG_PERCEPIO_RECORDER_TRC_RECORDER_STREAM_PORT_ITM modules/TraceRecorder/CMakeLists.txt:28%0ACONFIG_PERCEPIO_RECORDER_TRC_RECORDER_STREAM_PORT_RTT modules/TraceRecorder/CMakeLists.txt:18%0ACONFIG_PERFORMANCE_COUNTERS                samples/subsys/audio/sof/boards/intel_adsp_cavs15.conf:6, samples/subsys/audio/sof/boards/intel_adsp_cavs18.conf:7%0ACONFIG_RIMAGE_SIGNING_SCHEMA               samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:7%0ACONFIG_TIGERLAKE                           samples/subsys/audio/sof/boards/intel_adsp_cavs25.conf:1
Authenticating with credentials from $DOCKER_AUTH_CONFIG
sylvioalves commented 3 years ago

Found it. It was missing some HAL modules.