check-with-fallback won't remember if it needs to use a fallback #1967
Labels
Area: Notifications
Issues with notifications
bug
Something isn't working
Medium
Medium Priority Issues (to be fixed or re-evaluated in 3 months
Example of PR affected by this: getsentry/sentry-python#3135 (scroll down to the statuses)
We have 2 different types of "statuses" for GitHub: statuses and checks. see GitHub docs
We use checks only in a PR scenario, but the notifier actually has a fallback to use commit statuses if it fails to send the checks. (you can know the difference because "commit status" detail lead you to Codecov UI, but "checks" lead you to the checks tab of your PR)
In this particular example we can see that the notification task failed to get PR info for this PR, but proceeded to notify later. The notifications succeeded and we have a "commit status" sent.
Later on we notify again in another task, and this time we get the PR info. This causes us to send a "check", but also means the previously sent "commit status" is not updated.
This is confusing as it looks like there are repeated statuses with different numbers.
So we need to either remember that a status exists and use statuses OR delete the status before sending checks.
The text was updated successfully, but these errors were encountered: