Support glob/multiple Cobertura files (or action-side merge) in the file input
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
この issue では、リポジトリのファイルやテストが指定されていません。まず、必須の file 入力の実装とアップロードパスを特定し、次に glob、リスト、またはディレクトリ入力と Cobertura のマージをどのように組み合わせるべきかを確認してください。マトリックスおよびモノレポのレポートを個別のマージ手順なしでアップロードできるようにするか、集約の動作を文書化すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
The file input accepts a single Cobertura XML report. Projects with a test matrix or monorepo layout produce many per-project Cobertura files, so they must be merged into one file before this action can consume them. It would help if the action accepted multiple files / a glob / a directory and merged them itself.
Current behavior
fileis a single, required path to one Cobertura XML report.- There is no glob, multi-file, or directory input.
Desired behavior
Accept any one of:
- glob patterns in
file(e.g.**/*.cobertura.xml), or - a
filesinput taking a newline- or comma-separated list, or - a directory + pattern,
and merge the matched reports (action-side or server-side) before upload. For comparison, codecov/codecov-action accepts multiple files / directory search, so matrix and monorepo setups upload without a separate merge step.
Use case
We're migrating a public .NET OSS monorepo (ChilliCream/graphql-platform) from Codecov to GitHub Code Quality. CI runs a 125-project test matrix, and each job emits its own *.cobertura.xml artifact. Codecov merged them server-side. With this action we now add an explicit merge step first:
- run: dotnet tool install --global dotnet-coverage
- run: >
dotnet-coverage merge
--output merged.cobertura.xml
--output-format cobertura
"**/*.cobertura.xml"
- uses: actions/upload-code-coverage@v1
with:
file: merged.cobertura.xml
language: "C#"
label: code-coverage/dotnet
This works, but native multi-file/glob support (or an action-side merge) would remove the extra tooling and step for the common matrix/monorepo case.
Question
If multiple uploads with distinct labels are made (e.g. one per matrix job), are they aggregated into a single PR coverage total, or treated independently? If aggregation already works that way, documenting it would cover much of this need on its own.
Drafted by Claude (Anthropic AI assistant).
- 主要言語
- Python
- スター
- 101
- フォーク
- 20
- 平均マージ
- 12時間 23分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
actions/upload-code-coverage のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
actions/upload-code-coverage#26 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 45/100
actions/upload-code-coverage#20 · コメント 2 件 · リアクション 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
actions/upload-code-coverage#16 · コメント 3 件 · リアクション 5 件 ·
-
Push to default branch attributes coverage to an unrelated fork PR with a same-named head branchオープン
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
actions/upload-code-coverage#14 · コメント 2 件 · リアクション 1 件 ·
actions/upload-code-coverage の issue をすべて見る
似ている issue
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openvinotoolkit/openvino_notebooks#3665 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
docs
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
benchmark-gap
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信