fix(task): use --cov-report so task test reads pyproject.toml #255
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/kubeflow/mcp-apache-spark-history-server/pull/255#pullrequestreview-6026815187" title="Approved">nabuskey</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":[]} -->
Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:
nabuskey
CODERNSINGH
Description
The
testtask passes-cov-report=xmlwith one dash. pytest reads that as-c ov-report=xml, so it uses a config file calledov-report=xmlinstead ofpyproject.toml. You can see it in the CI log of any run, for example #253:Two effects:
[tool.pytest.ini_options]settings inpyproject.tomlare ignored bytask testcoverage.xmlis never written, so the Codecov step picks up a binary instead:This PR changes the flag to
--cov-report=xmland addscoverage.xmlto.gitignorenext to
.coverage, sincetask testnow writes it at the repo root.Not changed here: that upload also failed with
429 Rate limit reached. Please upload with. That needs a token, so I left it for you.the Codecov repository upload token
Type of Change
Testing
I used an AI assistant to help find this; I reviewed and tested the change myself. used (Opus 5.5)