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 rustdoc warnings and test cargo doc in CI #4711

Merged
merged 12 commits into from
Jul 15, 2023
Merged

Fix rustdoc warnings and test cargo doc in CI #4711

merged 12 commits into from
Jul 15, 2023

Conversation

arpad-m
Copy link
Member

@arpad-m arpad-m commented Jul 13, 2023

Problem

cargo +nightly doc is giving a lot of warnings: broken links, naked URLs, etc.

Summary of changes

Fixes #2557

Future work

  • Potentially, it might make sense, for development purposes, to publish the generated rustdocs somewhere, like for example how the rust compiler does it. I will file an issue for discussion.

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
  • If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

  • Do not forget to reformat commit message to not include the above checklist

@arpad-m arpad-m requested review from a team as code owners July 13, 2023 13:05
@arpad-m arpad-m requested review from petuhovskiy, antonyc, save-buffer and hlinnaka and removed request for a team July 13, 2023 13:05
@github-actions
Copy link

github-actions bot commented Jul 13, 2023

1032 tests run: 981 passed, 0 failed, 51 skipped (full report)


Flaky tests (1)

Postgres 14

  • test_threshold_based_eviction: debug

@vadim2404
Copy link
Contributor

Should we incorporate this check into CI?

Copy link
Contributor

@koivunej koivunej left a 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.

@vadim2404
Copy link
Contributor

related to #2557

Unlocks ability to run cargo doc on stable.
@arpad-m
Copy link
Member Author

arpad-m commented Jul 13, 2023

Should we incorporate this check into CI?

I think so. Originally this PR didn't have such a CI check as nightly was required to run cargo doc and CI currently only has one stable Rust version. But then I changed the PR to update opentelemetry to 0.19 to fix the stable cargo doc build, so I've now added it to CI.

@arpad-m arpad-m changed the title Fix rustdoc warnings Fix rustdoc warnings and test cargo doc in CI Jul 13, 2023
@arpad-m
Copy link
Member Author

arpad-m commented Jul 14, 2023

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.

Copy link
Contributor

@koivunej koivunej left a 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.

@arpad-m arpad-m enabled auto-merge (squash) July 15, 2023 01:39
@arpad-m arpad-m merged commit 982fce1 into main Jul 15, 2023
29 checks passed
@arpad-m arpad-m deleted the fix_rustdoc branch July 15, 2023 02:11
@arpad-m arpad-m mentioned this pull request Jul 24, 2023
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.

Run rustdoc --check in CI to prevent broken intra-doc links
3 participants