-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
We can have 2 different jobs. During PR pipeline we can use the one with |
I don't know when the master pipelin is run instead of PR pipeline, but for me any solution which ensures that the docs for the crate in the workspace are without warning would be great.
Because I don't want to check the doc of the dependencies, only the doc of our crates here in substrate. |
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 should make sure all doc links are valid at all times 💯
but we don't control the doc of our dependency, there might be some time where their doc is broken and we need to update to their new version, that can be annoying if our CI doesn't allow our dependency to have doc with warnings. |
Okay, I mean everything in our repo if possible. |
@alvicsam I have no idea how to implement something for the master pipeline/ PR pipeline. |
@thiolliere I can help you with that but I don't understand how it should work. Currently this job ( Otherwise we can mark
|
or maybe we can also have 2 jobs:
The only issue I see is that it makes the CI even longer |
So I added the new job, which is meant to be mandatory, and kept the doc generation unchanged. It seems ok to me EDIT: I also fixed the doc or removed the link that can't be fixed |
LGTM
Actually it doesn't. The @TriplEight can you please mark |
So it turns out that we'll have two jobs: check-rustdoc:
...
- RUSTDOCFLAGS="-Dwarnings" time cargo +nightly doc --workspace --all-features --verbose and build-rustdoc:
...
- time cargo +nightly doc --workspace --all-features --verbose --no-deps Both running on PRs and master. |
no the jobs should be: check-rustdoc:
...
- RUSTDOCFLAGS="-Dwarnings" time cargo +nightly doc --workspace --all-features --verbose --no-deps and build-rustdoc:
...
- time cargo +nightly doc --workspace --all-features --verbose
... publish docs So we check docs while failing on warnings but without deps (because we don't want to check our deps, we only want to check our own doc). this job should be required, our doc should always build without warning. We build the docs while with deps without failing on warnings (this is because we want to publish all the docs in one place, it makes it easier to walk through all docs) |
Now it makes sense |
* deny warning * add new job * fix doc * fmt
* deny warning * add new job * fix doc * fmt
* deny warning * add new job * fix doc * fmt
This make the CI deny for warning when building the doc. So we can catch dead link and especially dead link in rust doc when linking to types.
But I think this current PR is wrong because it will also deny warning on dependencies which can be annoying in case some of our dependence have warnings.
Maybe we should have both:
Or maybe have 2 different job ?
Is there some good solution ?
cc @TriplEight