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

Github action gateway timeout #136

Open
csiefer2 opened this issue Jun 25, 2024 · 1 comment
Open

Github action gateway timeout #136

csiefer2 opened this issue Jun 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@csiefer2
Copy link

What was wrong?

I'm using coveralls through a github action. There are probably about ~50k gcov files that our testing generates.

We get finish the file processing and then this happens:

🚀 Posting coverage data to https://coveralls.io/api/v1/jobs
HTTP error:
---
Error: Gateway Time-out (504)
Message: <!DOCTYPE html>

Logs

Coveralls version: v0.6.12

@csiefer2 csiefer2 added the bug Something isn't working label Jun 25, 2024
@afinetooth
Copy link
Member

afinetooth commented Jun 26, 2024

Hi @csiefer2. Yes, this can happen with large C/C++ projects. coverage-reporter, which underlies our github-action, can process however many coverage report files you have in your environment, but above a certain number will lead to a timeout.

Our recommendation here is to use gcov to generate a single lcov report for your project (or at least fewer reports).

You can find steps to do so in these blog posts / tutorials:

By default, your lcov file will be exported as coverage.info, so if you think you'll have any extraneous or duplicate files in your environment, we additionally recommend that you specify at least the format, and ideally, the file as well.

format and file can be passed as a flag, and an argument, respectively, in the command line command for coverage-reporter, like this:

coveralls report coverage/coverage.info --format=lcov

For the github-action, you'll want to add those two input options, under with:, like this:

    - name: Coveralls Coverage Report Upload
      uses: coverallsapp/github-action@v2
      with:
        format: lcov
        file: path/to/coverage.info

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
None yet
Development

No branches or pull requests

2 participants