ci: Remove gcov option to fix coverage report

Override the build config to generate specific job naming for target
jobs
This commit is contained in:
Euripedes Rocha Filho
2026-08-26 10:31:18 +02:00
parent 520c498bbc
commit d7b6a56f13
2 changed files with 49 additions and 1 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ host_tests:
variables:
GIT_DEPTH: 1
needs: []
coverage: '/^lines:\s+(\d+\.\d+)\%/'
artifacts:
paths:
- "**/build*/build.log"
@@ -37,4 +38,4 @@ host_tests:
cd ../mqtt_outbox_host_test
./build_linux_coverage/mqtt_outbox_host_test.elf
cd ../..
gcovr --gcov-ignore-parse-errors -g -k -r . --html coverage.html -x coverage.xml
gcovr --gcov-ignore-parse-errors -k -r . --exclude '.*/managed_components/.*' --print-summary --html coverage.html -x coverage.xml
+47
View File
@@ -12,6 +12,53 @@ build_job_filepatterns = [
test_job_filepatterns = ["**/test_logs", "**/XUNIT_RESULT_*.xml"]
[gitlab.build_pipeline]
# Forward the build job suffix to test jobs so each IDF version has unique names.
yaml_jinja = """
{{ settings.gitlab.build_pipeline.pre_yaml_jinja }}
workflow:
name: "{{ settings.gitlab.build_pipeline.workflow_name }}"
rules:
- when: "always"
{% if settings.gitlab.build_pipeline.job_template_jinja %}
{{ job_template }}
{%- endif %}
{{ jobs }}
{%- if test_related_apps_count > 0 %}
generate_test_child_pipeline{{ settings.gitlab.build_pipeline.job_name_suffix }}:
extends: "{{ settings.gitlab.build_pipeline.job_template_name }}"
needs:
- "build_test_related_apps{{ settings.gitlab.build_pipeline.job_name_suffix }}"
artifacts:
paths:
{%- for path in settings.gitlab.artifacts.native.build_job_filepatterns %}
- "{{ path }}"
{%- endfor %}
- "{{ settings.gitlab.test_pipeline.yaml_filename }}"
script:
- idf-ci
--config 'gitlab.build_pipeline.job_name_suffix="{{ settings.gitlab.build_pipeline.job_name_suffix }}"'
--config 'gitlab.test_pipeline.job_name_suffix="{{ settings.gitlab.build_pipeline.job_name_suffix }}"'
--config 'gitlab.test_pipeline.job_image="{{ settings.gitlab.test_pipeline.job_image }}"'
gitlab test-child-pipeline
test-child-pipeline{{ settings.gitlab.build_pipeline.job_name_suffix }}:
stage: ".post"
needs:
- "generate_test_child_pipeline{{ settings.gitlab.build_pipeline.job_name_suffix }}"
variables:
PARENT_PIPELINE_ID: "$CI_PIPELINE_ID"
trigger:
include:
- artifact: "{{ settings.gitlab.test_pipeline.yaml_filename }}"
job: "generate_test_child_pipeline{{ settings.gitlab.build_pipeline.job_name_suffix }}"
strategy: "depend"
{%- endif %}
"""
job_template_jinja = """
{{ settings.gitlab.build_pipeline.job_template_name }}:
stage: "{{ settings.gitlab.build_pipeline.job_stage }}"