-
Notifications
You must be signed in to change notification settings - Fork 446
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 rustdoc warnings and test cargo doc in CI #4711
Conversation
1032 tests run: 981 passed, 0 failed, 51 skipped (full report) |
Should we incorporate this check into CI? |
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 these are good changes.
related to #2557 |
Unlocks ability to run cargo doc on stable.
I think so. Originally this PR didn't have such a CI check as nightly was required to run |
Okay, a trial edit to add a broken link to the code is showing a failure as expected, very nice. I've removed that edit from the CI now. |
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.
Still looking good.
I don't think we have any tests for the otel stuff, the parts that we use. They don't publish a clear changelog so ... aah they have per crate changelog:
- http 0.7 -> 0.8, looks quite boring
- otlp 0.11 -> 0.12, similarly boring, deps (within and outside otel)
- reqwest-tracing bump, for otel
- otel semantic conventions, deps
- proc_macro2 was for latest nightlies I understood?
I think these are all looking very mundane version bumps, and thus we could merge this even today but perhaps it's best to still consider if we release and what we release. So let's hold merging until that has been clarified.
Not sure why this hits here, because Id should already be documented...
Problem
cargo +nightly doc
is giving a lot of warnings: broken links, naked URLs, etc.Summary of changes
proc-macro2
dependency so that it can compile on latest Rust nightly, see Delete use of proc_macro::Span::before/after dtolnay/proc-macro2#391 and error[E0635]: unknown featureproc_macro_span_shrink
dtolnay/proc-macro2#398private_intra_doc_links
lint, as linking to something that's private is always more useful than just mentioning it without a link: if the link breaks in the future, at least there is a warning due to that. Also, one might enable--document-private-items
in the future and make these links work in general.cargo +nightly doc
cargo doc
on stable Rust by updatingopentelemetry
and associated crates to version 0.19, pulling in a fix that previously brokecargo doc
on stable: fixcargo doc
failing on stable Rust open-telemetry/opentelemetry-rust#904cargo doc
to CI to ensure that it won't get broken in the future.Fixes #2557
Future work
Checklist before requesting a review
Checklist before merging