CodeCoverageSummary icon indicating copy to clipboard operation
CodeCoverageSummary copied to clipboard

System.OutOfMemoryException when generating a coverage summary

Open maddiemort opened this issue 2 years ago • 8 comments

Bug Report

I'm trying to generate a coverage summary from a coverage report in cobertura format, produced using grcov, and this action fails with the error message "Parsing Error: Exception of type 'System.OutOfMemoryException' was thrown."

Workflow File

name: Coverage Report

# ...

env:
  RUSTFLAGS: -Dwarnings -Cinstrument-coverage
  # ...

jobs:
  coverage-report:
    runs-on: ubuntu-latest-32-cores
    steps:
      - name: Clone
        uses: actions/checkout@v2
      # ...
      - name: Install grcov
        run: cargo install grcov
      # ...
      - name: Gather Coverage Data
        run: cargo test
      - name: Generate Coverage Report
        run: grcov . -s . --binary-path ./target/debug/ -t cobertura --branch --ignore-not-existing -o ./target/debug/coverage.cobertura.xml
      - name: Produce Coverage Summary
        uses: irongut/[email protected]
        with:
          filename: target/debug/coverage.cobertura.xml
          badge: true
          format: 'markdown'
          output: 'both'
      - name: Add Coverage PR Comment
        uses: marocchino/sticky-pull-request-comment@v2
        if: github.event_name == 'pull_request'
        with:
          recreate: true
          path: code-coverage-results.md
      - name: Write to Job Summary
        run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY

Actions Log

From the "Produce Coverage Summary" step:

Coverage File: /github/workspace/target/debug/coverage.cobertura.xml
Parsing Error: Exception of type 'System.OutOfMemoryException' was thrown. - /github/workspace/target/debug/coverage.cobertura.xml
##[debug]Docker Action run completed with exit code 254

Expected Behavior

I expected the Action to generate a coverage summary without running out of memory.

Additional Context

The coverage report is for a large Rust project (~300k LoC).

Linked To

None.

maddiemort avatar Feb 03 '23 17:02 maddiemort

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] avatar May 05 '23 01:05 github-actions[bot]

It's not stale, it just hasn't received a response

maddiemort avatar May 05 '23 08:05 maddiemort

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] avatar Aug 04 '23 01:08 github-actions[bot]

Still not stale

maddiemort avatar Aug 17 '23 18:08 maddiemort

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] avatar Nov 16 '23 02:11 github-actions[bot]

Still not stale!

maddiemort avatar Nov 16 '23 09:11 maddiemort

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] avatar Feb 16 '24 01:02 github-actions[bot]