Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.OutOfMemoryException when generating a coverage summary #133

Open
nerosnm opened this issue Feb 3, 2023 · 7 comments
Open

System.OutOfMemoryException when generating a coverage summary #133

nerosnm opened this issue Feb 3, 2023 · 7 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@nerosnm
Copy link

nerosnm commented Feb 3, 2023

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/CodeCoverageSummary@v1.3.0
        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.

@nerosnm nerosnm added the bug Something isn't working label Feb 3, 2023
@github-actions github-actions bot added this to Needs triage in Bug Hunt Feb 3, 2023
@github-actions
Copy link

github-actions bot commented May 5, 2023

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 github-actions bot added the stale label May 5, 2023
@nerosnm
Copy link
Author

nerosnm commented May 5, 2023

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

@github-actions github-actions bot removed the stale label May 6, 2023
@github-actions
Copy link

github-actions bot commented Aug 4, 2023

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 github-actions bot added the stale label Aug 4, 2023
@nerosnm
Copy link
Author

nerosnm commented Aug 17, 2023

Still not stale

@github-actions github-actions bot removed the stale label Aug 18, 2023
Copy link

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 github-actions bot added the stale label Nov 16, 2023
@nerosnm
Copy link
Author

nerosnm commented Nov 16, 2023

Still not stale!

@github-actions github-actions bot removed the stale label Nov 17, 2023
Copy link

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 github-actions bot added stale and removed stale labels Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Bug Hunt
Needs triage
Development

No branches or pull requests

2 participants