Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

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

Merged
merged 3 commits 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/proposal-minimum-common-api#56, wintercg/runtime-keys#9 and wintercg/proposal-webcrypto-streams#8.

See 2d2857c for a test of this change.

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

Successfully merging this pull request may close these issues.

2 participants