Skip to content

Fix rustdoc warnings and test cargo doc in CI#4711

Merged
arpad-m merged 12 commits into
mainfrom
fix_rustdoc
Jul 15, 2023
Merged

Fix rustdoc warnings and test cargo doc in CI#4711
arpad-m merged 12 commits into
mainfrom
fix_rustdoc

Conversation

@arpad-m

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

Copy link
Copy Markdown
Contributor

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 chaporgin, hlinnaka, petuhovskiy and save-buffer and removed request for a team July 13, 2023 13:05
@github-actions

github-actions Bot commented Jul 13, 2023

Copy link
Copy Markdown

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


Flaky tests (1)

Postgres 14

  • test_threshold_based_eviction: debug

@vadim2404

Copy link
Copy Markdown
Contributor

Should we incorporate this check into CI?

Comment thread libs/pageserver_api/src/models.rs Outdated

@koivunej koivunej left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

related to #2557

arpad-m added 2 commits July 13, 2023 17:28
Unlocks ability to run cargo doc on stable.
@arpad-m

arpad-m commented Jul 13, 2023

Copy link
Copy Markdown
Contributor Author

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

arpad-m commented Jul 14, 2023

Copy link
Copy Markdown
Contributor Author

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.

@koivunej koivunej left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread .github/workflows/build_and_test.yml Outdated
@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
@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