-
Notifications
You must be signed in to change notification settings - Fork 7
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
Random coverage failures #1595
Comments
Hi @zeux. We've seen this occasionally, but aren't sure of the cause because it's intermittent. The line that throws the error appears to be this one. It indicates the local git repo has no ref as given. Similar to what's described here when the ref is a branch name, like "master." The best next step will be to re-run those builds (or run some new ones) in verbose mode, which will add debug info to your build logs, which should present some clues. The way to invoke verbose mode for the Coveralls Github Action is to add the following CI environment variable to your GHA config yaml so that it's available to your coveralls step: The "NODE_" part is there because the Coveralls Github Action uses the node-coveralls integration under-the-hood, which is also where that line of code comes from. Please share the verbose build log the next time this happens and we'll look deeper. |
Enable debug mode in coveralls action to diagnose lemurheavy/coveralls-public#1595
@zeux on the hunch your CI is (occasionally?) building in detached HEAD mode (which would explain why the ref doesn't exist at Github---because CI is creating an ephemeral commit just for the current build), it could be worth trying the suggestions here or here (to "recover" from detached HEAD state) to see if that fixes it. Again, your verbose build log(s) will help uncover whether that's the issue. |
Here's a new instance of this which comes with verbose logs that we've enabled: https://github.com/Roblox/luau/runs/4435306714?check_suite_focus=true Note that as per above we're simply using GitHub Actions, along with checkout@v1 without arguments; if something is creating a detached HEAD it's the action itself but that would seem surprising. Also attaching zipped logs from the CI run just in case. |
The logs don't seem to show anything beyond the error; maybe it would make sense to print GHA-supplied hashes as well as a git log for the last 10 commits? I'm not sure where the hash noted in this run is even coming from. It's puzzling to me that this issue is spurious. It feels like checkout action either detaches the head or doesn't, and in either case we'd either see the problem always or never... |
@zeux you're right, it does seem like the issue would be persistent if that's the case. I found this (solved) issue on the github community board, which mentions intermittently getting incorrect values for The solution recommends upgrading to version The Coveralls Github Action uses FWIW, the Coveralls Github Action hands over its inputs for processing to the node-coveralls integration (which as I mentioned above, is running under-the-hood), and here is where the error you're seeing gets thrown by that code. This is the best I have at the moment. Figured it's worth trying. |
Here's more background on the same issue from Coveralls Github Action issue board: |
Thanks! This sounds very similar. I'm going to assume that this is checkout@v1 related and speculatively close this. We've switched to checkout@v2 and added a few more debug logs to the build step in question - if it does fail again I'll reopen this with more information (which would likely be 2022 at this point). |
@zeux sounds good. Good luck. |
Enable debug mode in coveralls action to diagnose lemurheavy/coveralls-public#1595
Version 1 of the `checkout` GitHub action is supposedly triggering an issue in Coveralls, which causes the build to fail sporadically. For more details on the issue, see lemurheavy/coveralls-public#1595
Version 1 of the `checkout` GitHub action is supposedly triggering an issue in Coveralls, which causes the build to fail sporadically. For more details on the issue, see lemurheavy/coveralls-public#1595
We keep seeing occasional errors during coverage runs on https://github.com/Roblox/luau project.
Here's the latest:
https://github.com/Roblox/luau/runs/4299224527 (11/23)
Here's more:
https://github.com/Roblox/luau/actions/runs/1490911436 (11/22)
https://github.com/Roblox/luau/actions/runs/1488639950 (11/21)
https://github.com/Roblox/luau/actions/runs/1481803053 (11/19)
This happens on different PRs and doesn't seem to happen on master builds.
The action setup (which simply uses the GHA provided by Coveralls):
https://github.com/Roblox/luau/blob/master/.github/workflows/build.yml#L77-L81
In all cases the error log looks like this (with different hashes):
I initially thought this is a one-off but this happens with alarming repeatability in the last week.
The text was updated successfully, but these errors were encountered: