Skip to content

Flag the .NET Unit-Test Coverage Upload in validate-task.yml #3819

Closed

Description

@ptr727

Problem

validate-task.yml uploads the .NET unit-test coverage to Codecov with no flags: input, while its Python upload carries python-<version>. A caller that adds further coverage uploads under its own flags (an integration run in a container, a sporadic host run with carryforward: true) cannot break the unit-test share out per flag. Codecov reports an unflagged session only in the total, and flag_management rules cannot reach it.

Reproduce

  1. A caller's codecov.yml declares individual_flags for integration and regression.
  2. The caller's own job uploads under integration, and the validator uploads the .NET reports.
  3. Codecov's flags API (/api/v2/github/<owner>/repos/<repo>/flags/) lists integration and the Python leg, and no flag for the .NET unit tests.

Proposed fix

Give the .NET upload step a flag, either a fixed name such as dotnet mirroring the Python step's python-<version>, or an optional input so a caller can name it. A fixed name changes nothing for a caller that declares no flags, since an unflagged view of the total is unchanged.

Context

PlexCleaner's coverage plan declares per-run Codecov flags, and its unit-test share is the one run it cannot flag from the caller side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions