Open alberto-miranda opened 9 months ago
Thanks for the detailed report. We will investigate this.
@alberto-miranda - Do you know (approximately) when you started seeing this issue? We made a release yesterday v2.5.1
but we did test that it was working okay on other repositories, including this one. Eg: https://github.com/insightsengineering/coverage-action/pull/37
Given the error in the sticky PR comment (no pull request numbers given: skip step:
), we might need to just add the following to this action:
https://github.com/marocchino/sticky-pull-request-comment?tab=readme-ov-file#comment-from-push
I just check and the last PR where we had comments is from two weeks ago. Interestingly, around that time we merged a PR that modified our build.yml
and removed the on: pull_request:
keys:
on:
push:
branches:
- - "*"
+ - "**"
- "!refs/tags/.*"
tags-ignore:
- - "*"
- paths-ignore:
- - "docs/**"
- - mkdocs.yml
- - .github/workflows/website_preview.yml
- - .github/workflows/website_deploy.yml
- pull_request:
- types: [opened, reopened, synchronize]
+ - "**"
paths-ignore:
- "docs/**"
- mkdocs.yml
I'm starting to think that this might be the root cause of our problem.
Yes that could explain it. It'd be imperative to have the pull_request
event type for the comments to be created during PRs.
Makes sense. I'll find out why this was removed and whether we can reinstate it. Not saying you have to do it, but it might be a nice addition to propagate this option https://github.com/marocchino/sticky-pull-request-comment?tab=readme-ov-file#comment-from-push as a coverage-action
option :wink:
Indeed, let me go ahead and do that anyway.
What happened?
After some time of using the action with great success, the PR comments suddenly disappeared. The logs from the action run don't contain any explicit errors, and all steps seem to work as expected. We tried deleting the coverage branch and updating to the latest version of the action but the behavior persists.
The only potentially-related messages I was able to find in the logs (even with Debug mode enabled) are the following:
fatal: a branch named '_xml_coverage' already exists
:no pull request numbers given: skip step
:Relevant log output
No response
Code of Conduct
Contribution Guidelines
Security Policy