← Back to Pull requests

fix(task): use --cov-report so task test reads pyproject.toml #255

Merged
CODERNSINGH merged 2 files (3 lines) on Nov 23, 2026 18:05 UTC
View on GitHub
CODERNSINGH CODERNSINGH commented on Nov 21, 2026 01:47 UTC
Author

Description

The test task passes -cov-report=xml with one dash. pytest reads that as
-c ov-report=xml, so it uses a config file called ov-report=xml instead of
pyproject.toml. You can see it in the CI log of any run, for example #253:

configfile: ov-report=xml

Two effects:

  • the [tool.pytest.ini_options] settings in pyproject.toml are ignored by task test

  • coverage.xml is never written, so the Codecov step picks up a binary instead:
  • Found 1 possible coverage files:
      .venv/bin/coverage-3.12
    

    This PR changes the flag to --cov-report=xml and adds coverage.xml to .gitignore
    next to .coverage, since task test now writes it at the repo root.

    Not changed here: that upload also failed with 429 Rate limit reached. Please upload with
    the Codecov repository upload token
    . That needs a token, so I left it for you.

    Type of Change


  • Bug fix (non-breaking change which fixes an issue)
  • Testing

    task test        # 195 passed, "configfile: pyproject.toml", coverage.xml written
    task lint        # passes
    task test-e2e    # 120 passed, 6 skipped
    

    I used an AI assistant to help find this; I reviewed and tested the change myself. used (Opus 5.5)

    Diff: 3 lines (+2 / -1) across 2 files Reviewer: nabuskey Review duration: 3858m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.13) × (1 − Review Confidence (0.71)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.13 · 3 lines diff across 2 files
    0.13
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.57 · 2 substantive comment(s)
    0.57
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    71%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.083
    Real PR Conversation Timeline
    4 items
    nabuskey nabuskey approved these changes on Nov 23, 2026 18:00 UTC
    Approved Reviewer

    /approve

    google-oss-prow[bot] google-oss-prow[bot] commented on Nov 23, 2026 18:01 UTC
    Bot

    [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:

  • ~~OWNERS~~ [nabuskey]
  • 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":[]} -->

    codecov-commenter codecov-commenter commented on Nov 23, 2026 18:02 UTC
    Contributor

    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:

    Reviewers
    Assignees
    CODERNSINGH CODERNSINGH
    Labels
    risk: low confidence: 71.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 12.8% (LOW) · Higher = larger blast radius
    12.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 71.5% · Lower = rushed or shallow review
    71.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 3.6% · Safe to merge
    3.6%