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

Fix PR Preview #516

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Fix PR Preview #516

merged 1 commit into from
Jan 18, 2024

Conversation

anssiko
Copy link
Member

@anssiko anssiko commented Jan 18, 2024

Die On: warning metadata even if valid causes PR Preview to fail


💥 Error: 400 Bad Request 💥

PR Preview failed to build. (Last tried on Jan 18, 2024, 8:08 AM UTC).

More

PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

🚨 CSS Spec Preprocessor - CSS Spec Preprocessor is the web service used to build Bikeshed specs.

🔗 Related URL

If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.

`Die On: warning` metadata even if valid causes PR Preview to fail
@anssiko
Copy link
Member Author

anssiko commented Jan 18, 2024

@dontcallmedom I tested my theory and here are the results:

CSS Spec Preprocessor fails if index.bs has Die On: warning metadata option (raw index.bs from PR #515):

💥 https://api.csswg.org/bikeshed/?url=https://raw.githubusercontent.com/webmachinelearning/webnn/aec34293b249e7427e578837ddcb204cf92bca3c/index.bs&force=1&md-warning=not%20ready

Succeeds when Die On: warning is removed (raw index.bs is from this PR):

https://api.csswg.org/bikeshed/?url=https://raw.githubusercontent.com/webmachinelearning/webnn/4eff923b0be529212b815e89e343293f46ad8c07/index.bs&force=1&md-warning=not%20ready

I will merge this fix to hopefully re-enable PR Preview. Folks will need to rebase to pull in this change. If this did not fix it, then we need to dig deeper.

@anssiko anssiko merged commit 50a00b9 into main Jan 18, 2024
2 checks passed
github-actions bot added a commit that referenced this pull request Jan 18, 2024
SHA: 50a00b9
Reason: push, by anssiko

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@anssiko
Copy link
Member Author

anssiko commented Jan 18, 2024

I was able to validate this fix works with one of my open PRs: #507

After rebasing, force-pushing, I edited the initial comment in the PR to trigger PR Preview re-run and that fixed this bug.

@dontcallmedom is this worth reporting upstream? It feels like we used Die On: warning properly in this spec.

@zolkis
Copy link
Collaborator

zolkis commented Jan 18, 2024

This is strange.
Of course, we could use the practice to set die on warning in local builds.

@anssiko
Copy link
Member Author

anssiko commented Jan 18, 2024

@zolkis, yes, I recommend using the --die-on warning CLI switch in local builds. The CI will still catch any warnings so they won't go in unnoticed.

@anssiko anssiko deleted the pr-preview-fix branch January 18, 2024 19:30
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.

2 participants