Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support glob/multiple Cobertura files (or action-side merge) in the file input

オープン
#12 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
github-actions, python
領域
ci-cd, testing

調査の方向性

この 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
  • file is 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 files input 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

actions/upload-code-coverage のほかの issue

actions/upload-code-coverage の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。