-
Notifications
You must be signed in to change notification settings - Fork 827
Check for rustdocs build warnings in CI #1404
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
Conversation
Building the docs throws a bunch of warnings of form warning: unclosed HTML tag ... Add code ticks to remove the warnings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 8847475e636bf536c2c6083634b505d1eb75be59
If CI succeeds.
8847475
to
675625e
Compare
Agh, had to use
|
Convert all rustdocs build warnings to errors using `-D warnings` and exit the script with 1 to signal the error. While we are at it use `--all-features` instead of explicit feature list when building docs. Without this the docs build fails with: error: too many file operands
675625e
to
108a1f7
Compare
I had used |
I think
Lol, that was quite a confusing. |
Yeah I cannot work out how the variable interpolation is working in the CI script, there is another example of it that works when it looks to me like it shouldn't
On the command line this has to use comma separation as you say? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 108a1f7
No clue about that, I'm going to sleep now. :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 108a1f7
This fix either doesn't work or broke again at some point. There are doc warnings again. |
@@ -81,7 +81,7 @@ cargo run --example taproot-psbt --features=bitcoinconsensus | |||
|
|||
# Build the docs if told to (this only works with the nightly toolchain) | |||
if [ "$DO_DOCS" = true ]; then | |||
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links | |||
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly rustdoc --all-features -- -D rustdoc::broken-intra-doc-links -D warnings || exit 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have set -ex
so this "fix" did not add any new behaviour to the script :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think -D
doesn't work for some reason.
Are you still seeing warnings? I'm on "comit: 46eda5f Merge #1499: Add And |
Commit 46eda5f
But no warnings with the |
Oh, found it. |
See #1504 |
Currently we do not fail the CI script if the docs build throws warnings, since we are a group of super anal, easily triggered, code cleanliness obsessed devs this causes a mild rash to develop on the lower back [0]. We can easily fix this by checking for build warnings in CI.
[0] - Amusingly my rash has been playing up since Friday but I thought I'd fixed the warnings in an open PR someplace so I was ignoring it, seeing Kixunil's issue this morning prompted me to fix it :)
Fix #1403