Skip to content
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

[ci] Make deploys fail if the spec build fails #56

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Conversation

andreubotella
Copy link
Member

Our CI deploy action currently asks a server at api.csswg.org to build the spec, and then uses the response to that request as the build output. However, it does not check that the response's HTTP status code is successful, which can result in Internal Server Errors in that server being "propagated" to this spec, rather than resulting in a failed build. Similarly, fatal errors in building the spec (for invalid Bikeshed syntax, for example) would result in the list of errors being deployed.

This PR fixes that by allowing curl to fail for non-successful HTTP status codes.

Our CI deploy action currently asks a server at api.csswg.org to build
the spec, and then uses the response to that request as the build
output. However, it does not check that the response's HTTP status
code is successful, which can result in Internal Server Errors in that
server being "propagated" to this spec, rather than resulting in a
failed build. Similarly, fatal errors in building the spec (for
invalid Bikeshed syntax, for example) would result in the list of
errors being deployed.

This PR fixes that by allowing `curl` to fail for non-successful HTTP
status codes.
@andreubotella
Copy link
Member Author

andreubotella commented Aug 17, 2023

I opened parallel PRs in wintercg/fetch#21, wintercg/runtime-keys#9 and wintercg/proposal-webcrypto-streams#8.

See wintercg/fetch@2d2857c for a test of this change.

@andreubotella andreubotella merged commit 7b9c9a4 into main Aug 18, 2023
4 checks passed
@andreubotella andreubotella deleted the fix-ci branch August 18, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants