-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Provide Github (etc) commit status for builds on branches / tags #7084
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
Comments
I think this is useful, and I was just wanting it today 👍 Putting it in Q1 roadmap, since I don't think it will be a huge amount of work, since we already have this code for PR's. |
UPDATE These cases are elaborated here: #10320 (comment) I think the explanation for why this wasn't immediately added is the following: We have a very long sequence of calls and celery tasks. An incoming webhook is received and a new build is triggered. The build isn't supplied any information about the
|
Oh yeah: In case someone wonders "why not just send back a status using the current pattern to whatever commit is the latest after checkout?" This is because the "pending" status is sent before the build is even started. And a checkout happens during the build, so in this case we cannot set the "pending" status without checking out the repo. Which is not nice. If that was to be fixed, we'd have to implement more changes than what is outlined above. We also don't want to send subsequent failed/succeeded statuses to a different commit id, so we should track the same commit id from triggering the build to the build process. |
Another point: A push can contain several commits. We always build the last commit. UPDATE: All webhooks list which is the latest commit and we can guarantee that it's the commit id we are passing to the build processes. |
I'm de-prioritizing this issue for now because the work required here is not trivial. |
I'm going to close this issue because we weren't able to prioritize in the past year and we are not planning to work on it soon. We can revisit in the future when working on expanding GitHub features. |
This is not in relation to PR builds.
It would be really nice if after a build is triggered on a commit (i.e. a PR is merged or a tag pushed) if RTD sent a commit status back to the VCS site that triggered it. This would allow you to see the status of the RTD build along side all the other CI checks on that commit.
A bonus would be supporting the GitHub checks API to allow restarting the build etc.
The text was updated successfully, but these errors were encountered: