-
Notifications
You must be signed in to change notification settings - Fork 17
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
CSS Spec Preprocessor keeps failing #67
Comments
I’m not sure I understand the issue, here. Would you pointers to the pull requests experiencing that issue? |
Outside WHATWG: w3c/webappsec-secure-contexts#77 |
Hey, @plinss & @tabatkins, would love your help here: I'm not super sure what's going on. All of the above specs are failing to build atm. Navigating to the following returns a 404: Running the unescaped URL (https://raw.githubusercontent.com/w3c/webappsec-secure-contexts/b8e55d93db57e9b53ca9ca23eb8d2fe3093b6d85/index.src.html) from the HTML interface at https://api.csswg.org/bikeshed/ yields the following error message regardless of the "Die On" drop-down setting:
It seems there's a couple of issues happening at the same time:
|
api.csswg.org is returning a 400, I think that's because bikeshed is crashing. I believe this is something @tabatkins needs to look at. Bikeshed should not be crashing. |
Okay, looks like in the refactoring for URL-based inputs, the code to figure out what repository the spec is in missed a branch and starting returning None in some cases. That's fixed. Quite surprised it didn't trigger during earlier testing, tho; maybe all the specs we were testing on had a Anyway, fix pushed. |
@tobie perhaps you could distinguish between api.csswg.org being down and returning a 400? That might make it clearer where to go first next time. Also happy to try contribute a patch for that. |
Agree that this error code is confusing. CSS Spec Preprocessor should really be returning a 500 here. I’d rather the error code gets fixed there, if that’s at all possible, than start special casing http codes for different services. Sort of defeats the purpose of standardizing http codes, imho. That said, I’m happy for suggestions on how to surface those errors more clearly to you all. |
Agree it should return a 500 if Bikeshed crashes, and a 400 if Bikeshed exits with an error. I’ll look in to that, it may be that I’m getting the same exit code from Bikeshed either way. Might have to patch Bikeshed... |
Oh, I totally missed that it already says "Error: 400 Bad Request". Somehow I read that as it being a network error. I'm not sure there's much more to do here for PR Preview. I can also confirm that Tab fixed it. |
Another thing that would be really useful to surface would be Bikeshed’s error itself. W3C’s rendering service returns a JSON object back with an error field that contains ReSpec’s errors when it fails to build. Similarly Wattsi returns a log dump. PR Preview handles both of those and surfaces the error in the pull request. @plinss is there anyway you could securely pass a stack trace, a formatted error message, or both in the body of the response? |
Update: see @plinss's comment below. This is the existing behavior when you're not passing the |
It does return the error response unless you pass the Also note that if you don't use |
I also have the 400/500 change ready to go once speced/bikeshed#1699 lands |
landed |
And the api endpoint is updated, you should be getting 400 when bikeshed reports errors, and a 500 if it crashes. |
Thanks, folks! Closing. |
But fetching https://api.csswg.org/bikeshed/ myself and using it via WHATWG CI works fine. I've seen this for a number of days now and it seems like the error might be with PR Preview.
The text was updated successfully, but these errors were encountered: