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 Actions: Unavailable with parallel jobs. Ones except last disappears. #1403
Comments
We seem to be hitting the same (or a similar issue) using the Coveralls Github action. We have Azure Pipelines CI setup to upload multiple files in parallel and then end with calling the action with parallel-finished: true This works fine for PRs : https://coveralls.io/builds/29375466 But for pushes it only seems to pick up the last file : |
A bit hacky - but I ended up just manually merging the lcov files after the tests were all done running and then uploading that single file. That worked fine for our use case. https://github.com/microsoft/azuredatastudio/pull/9635/files |
Might just be me, but this sounds like a case of a missing |
@Charles-Gagnon I agree with @jrfnl in that if you haven't supplied a unique value for See the Complete Parallel Job usage example in the Coveralls Github Action README. For a working example project, see this demo project. It demonstrates configuring a parallel build for several different CI services, including Github Actions. The relevant Github Actions workflow file is here. |
I am seeing possibly a similar issue? Even with |
Hi, @vtjnash. That is possible, but it's a slightly different context since in #1631 all the parallel jobs were coming in and being processed. Unfortunately, I can't test your case by re-running the jobs because we don't have all the ones you sent to the Coveralls API stored in the database. (I did re-run the one that was stored, just for good measure, and it doesn't report any changes in coverage % so no problems in processing there.) What's happening, usually, when a repo with parallel builds only reports one job (especially when that job has the final, expected index number—in your case, In your case, I believe this originates with the value you're setting for There, you are naming each flag with an appended value,
However, you don't declare Further up in your workflow file, it looks like the unique value you've declared is
So maybe try that instead of In other words:
Or, perhaps you'll need to include more values to fully represent each job in your matrix build uniquely, like In any case, try modifying It is indeed strange that this is only affecting your |
Thanks! I have now made them unique and made a PR to the documentation to make that step clearer coverallsapp/github-action#119, so we will see how that goes with future builds. |
@vtjnash, great, thank you. Your last PR looks good: So I'm hopeful you're all set. Thanks for helping others who may face this in the future. |
I reran a new PR build, and the comparison is still looking very confused. The PR status reports that coverage increased by over 10%, despite the individual reports being the same: https://coveralls.io/builds/48497048 |
I think the issue there is that the base build (LEFT) is 10% under the normal %. Making the the PR build (RIGHT) correct relative to the base build (+10%): Assuming the base build was wrong, I re-ran the jobs we have for it and the coverage changed to 93% (LEFT). Then, to accommodate the change of comparison, I re-ran the PR build as well (RIGHT), which didn't change its aggregate %, but it now reflects the correct comparison (no change): I don't know what the issue with the base build could have been in real-time, but the calculation reflects the data now. Please let me know if it happens again. |
Problem
parallel: true
Logs
Here is full log. (If expired, please let me know to re-run.)
Request is like below.
1st send
2nd send
Will get like....
Before the 2nd send, 1st responded url (https://coveralls.io/jobs/59357703) is available.
After the 2nd response, 1st responded url (https://coveralls.io/jobs/59357703) is unavailable.
This time, and also now, 2nd responded url (https://coveralls.io/jobs/59357728) is available.
This feels obviously strange.
My attempts
parallel: true
service_job_id
Possibly duplicate of #1399 , but I hope logs in this issue may be helpful.
Thanks.
The text was updated successfully, but these errors were encountered: