-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Build: report "Build canceled" when sending VCS build status' description for a particular commit #8998
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
Hi @pllim! I'm not able to reproduce this issue. I tried with our testing project and it worked as you expect readthedocs/test-builds#2082 Does the Github status report work properly for your project usually? I saw a message in the logs saying that there were permissions problems and the status wasn't able to be sent. |
I think usually it works. I'll keep an eye out and report back though . |
The message says the build failed
I think it is better if the message says the build was cancelled instead. |
Yes, now it reports back as failed. Maybe what I originally reported was transient.
I completely agree. That would be more consistent with other CI providers. Thanks! |
Related to #9040 |
To make this possible, the code needs some refactoring. Currently, we are only sending the state (failed, pending, success) and we use a constant
To do this, we need to modify the util function, the task, and both service methods at least. |
Beyond just the message, it is surprising to me that cancelling the build returns a failure status. I know that GitHub Actions for instance can return a "cancelled" status, which doesn't have a red X that makes things look like they failed. Is that a feature GitHub allows third-party tools to use? Or, could it make more sense to just leave the status as pending? |
Example: astropy/astropy#12928
PR status:
docs/readthedocs.org:astropy Pending — Read the Docs build is in progress!
But when you click on "Details", it goes to https://readthedocs.org/projects/astropy/builds/16281860/ that says
Error - Build cancelled by user.
Expectation: PR status says "build has been canceled by user" or something to that effect with a ❌ .
The text was updated successfully, but these errors were encountered: