-
Notifications
You must be signed in to change notification settings - Fork 71
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
lint-doc check is a waste of energy #719
Comments
I agree. The current pipeline also reports (as expected) warnings with cross-refs because odoc can't find them unless the package is installed. There's also a misconception between opam's I am somewhat convinced that linting docs is still a good idea, people don't often run |
I'm in favour of making the linting docs stage work properly and then failing the build based on incorrect docs. We have 2 bugs #264 and #410 that would improve the usability of lint-doc. How can we fix the warnings with cross-refs? @jonludlam perhaps you could point us in the right direction? |
To fix the cross-refs warning we have to install the opam package. Maybe we can trigger usual warnings while building and installing the docs this way. |
I suspect we need two things:
Point 2 is not perfect, because we expand functors from libraries and resolution problems in those expansions will appear to be local problems - this can be seen in expansions of |
There's some discussion on https://discuss.ocaml.org/t/ocaml-org-recapping-2022-and-queries-on-the-fediverse/11099/22 about saving energy for the cluster.
I suggest removing the lint-doc stage. This is run for every single commit currently, and doesn't do anything (it runs with
ODOC_WARN_ERROR=false
which means that documentation errors don't fail the build).Example: https://ci.ocamllabs.io:8100/job/2023-01-05/133221-ci-ocluster-build-c7323d
The text was updated successfully, but these errors were encountered: