Skip to content
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

Test coverage for pipelines fails with incompatible types for cobertura format #2104

Open
mrodm opened this issue Sep 13, 2024 · 0 comments
Open
Labels
Team:Ecosystem Label for the Packages Ecosystem team

Comments

@mrodm
Copy link
Contributor

mrodm commented Sep 13, 2024

While testing how coverage is calculated for ingest pipelines, there is an error when trying to obtain the coverage reports with the default format cobertura.

Setting in the command the parameter for generic format works successfully (--coverage-format=generic). As a note, CI Pipelines in the integrations and elastic-package repositories use the generic cobertura format.

This looks related to this PR: #1915 (f4f5ccde)

Testing with the previous changeset to that PR (72545b0) coverage reports are generated correctly.
Starting with f4f5ccde , this command starts to fail.

How to reproduce this error

cd /test/packages/parallel/nginx

elastic-package test pipeline --report-output file --report-format xUnit --test-coverage -v

Error:

Error: error writing test coverage: can't create coverage report: can't collect test coverage details: can't generate initial base coverage report: failed to walk package directory /home/mariorodriguez/Coding/work/elastic-package-main/test/packages/parallel/nginx: cannot merge coverages: merging incompatible classes: {Name:nginx.httpjson.yml Filename:test/packages/parallel/nginx/data_stream/access/agent/stream/httpjson.yml.hbs LineRate:0 BranchRate:0 Complexity:0 Methods:[] Lines:[0xc000f0bd70 0xc000f0bd80 0xc000f0bd90 0xc000f0bda0 0xc000f0bdb0 0xc000f0bdc0 0xc000f0bdd0 0xc000f0bde0 0xc000f0bdf0 0xc000f0be00 0xc000f0be10 0xc000f0be20 0xc000f0be30 0xc000f0be40 0xc000f0be50 0xc000f0be60 0xc000f0be70 0xc000f0be80 0xc000f0be90 0xc000f0bea0 0xc000f0beb0 0xc000f0bec0 0xc000f0bed0 0xc000f0bee0 0xc000f0bef0 0xc000f0bf00 0xc000f0bf10 0xc000f0bf20 0xc000f0bf30 0xc000f0bf40 0xc000f0bf50 0xc000f0bf60 0xc000f0bf70 0xc000f0bf80 0xc000f0bf90 0xc000f0bfa0 0xc000f0bfb0 0xc000f0bfc0 0xc000f0bfd0 0xc000f0bfe0 0xc000f0bff0 0xc00016e000 0xc00016e010 0xc00016e020 0xc00016e030 0xc00016e040 0xc00016e050 0xc00016e060 0xc00016e070 0xc00016e080 0xc00016e090 0xc00016e0a0 0xc00016e0b0 0xc00016e0c0 0xc00016e0d0 0xc00016e0e0 0xc00016e0f0 0xc00016e100 0xc00016e110 0xc00016e120 0xc00016e130 0xc00016e140]} != {Name:nginx.httpjson.yml Filename:test/packages/parallel/nginx/data_stream/error/agent/stream/httpjson.yml.hbs LineRate:0 BranchRate:0 Complexity:0 Methods:[] Lines:[0xc0001b5ef0 0xc0001b5f00 0xc0001b5f10 0xc0001b5f20 0xc0001b5f30 0xc0001b5f40 0xc0001b5f50 0xc0001b5f60 0xc0001b5f70 0xc0001b5f80 0xc0001b5f90 0xc0001b5fa0 0xc0001b5fb0 0xc0001b5fc0 0xc0001b5fd0 0xc0001b5fe0 0xc0001b5ff0 0xc0008c6000 0xc0008c6010 0xc0008c6020 0xc0008c6030 0xc0008c6040 0xc0008c6050 0xc0008c6060 0xc0008c6070 0xc0008c6080 0xc0008c6090 0xc0008c60a0 0xc0008c60b0 0xc0008c60c0 0xc0008c60d0 0xc0008c60e0 0xc0008c60f0 0xc0008c6100 0xc0008c6110 0xc0008c6120 0xc0008c6140 0xc0008c6160 0xc0008c6170 0xc0008c6180 0xc0008c6190 0xc0008c61a0 0xc0008c61b0 0xc0008c61d0 0xc0008c61e0 0xc0008c61f0 0xc0008c6210 0xc0008c6220 0xc0008c6240 0xc0008c6250 0xc0008c6260 0xc0008c6270 0xc0008c6280 0xc0008c6290 0xc0008c62a0 0xc0008c62b0 0xc0008c62c0 0xc0008c62d0 0xc0008c62e0 0xc0008c6400 0xc0008c6410 0xc0008c6430]}
@mrodm mrodm added the Team:Ecosystem Label for the Packages Ecosystem team label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Ecosystem Label for the Packages Ecosystem team
Projects
None yet
Development

No branches or pull requests

1 participant