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

28.0-rc build failure due to ex_doc warnings #9618

Open
adamcstephens opened this issue Mar 20, 2025 · 7 comments · May be fixed by #9620
Open

28.0-rc build failure due to ex_doc warnings #9618

adamcstephens opened this issue Mar 20, 2025 · 7 comments · May be fixed by #9620
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM

Comments

@adamcstephens
Copy link

adamcstephens commented Mar 20, 2025

Describe the bug
Failed during building documentations due to warnings treated as errors.

To Reproduce
Build OTP. This is a Nix build for nixpkgs.

Expected behavior
No failure

Affected versions
OTP 28.0-rc2 (or rc1)

Additional context

erlang-28.0-rc>  GEN	man_index.md
erlang-28.0-rc>  GEN	../../../doc/index.html
erlang-28.0-rc> warning: jinterface.html redirects to ../lib/jinterface/doc/html/index.html, which does not exist
erlang-28.0-rc> 
erlang-28.0-rc> warning: odbc.html redirects to ../lib/odbc/doc/html/index.html, which does not exist
erlang-28.0-rc> 
erlang-28.0-rc> View "html" docs at "/build/source/doc/index.html"
erlang-28.0-rc> ex_doc emitted warnings
erlang-28.0-rc> make[3]: *** [/build/source/make/doc.mk:76: ../../../doc/index.html] Error 1
erlang-28.0-rc> make[3]: Leaving directory '/build/source/system/doc/top'
erlang-28.0-rc> make[2]: *** [/build/source/make/otp_release_targets.mk:41: release_docs] Error 2
erlang-28.0-rc> make[2]: Leaving directory '/build/source/system/doc/top'
erlang-28.0-rc> make[1]: *** [Makefile:442: release_docs] Error 2
erlang-28.0-rc> make[1]: Leaving directory '/build/source'
erlang-28.0-rc> make: *** [Makefile:861: install-docs] Error 2
@adamcstephens adamcstephens added the bug Issue is reported as a bug label Mar 20, 2025
@adamcstephens
Copy link
Author

If we're missing something in our nix build definition, please let me know. We don't have these problems with 27.1 which appears to include #8596

@garazdawi
Copy link
Contributor

It is an update of ex_doc that produces this new warning. You can disable warnings as error for the doc build by setting EX_DOC_WARNINGS_AS_ERRORS=false before running make docs.

I suppose that maybe a better question though is, why are you building the html docs in nix?

@adamcstephens
Copy link
Author

Yeah, I found the warning disabling flag and used that. I figured it was worthwhile to file the bug though in case it should be fixed during the RC phase.

Why are we building the docs? I can't answer that as we were already doing so prior to my working on these packages. It's a great question though, and not building them would simplify things for us.

@adamcstephens
Copy link
Author

Looks like the install-docs target was added for 18.3.4 and we've been copying/carrying it along since then. https://github.com/NixOS/nixpkgs/pull/16244/files#diff-f5b7dbc04ba0ca072daeaf5979283b10ca66353bf749e1854fae65d80d4afc78R74

@garazdawi
Copy link
Contributor

I think what you want to do is to do make install-docs DOC_TARGETS="chunks man", as it is the shell/IDE docs you want and possibly man pages.

I think I may also make it so that if any application is not built, then I will disable warnings as errors as there are no guarantees at all that the link checks will work in such circumstances.

@garazdawi
Copy link
Contributor

#9620 should fix the issue

@adamcstephens
Copy link
Author

Thanks for the pointer to DOCS_TARGETS, I've updated our build to use that and simplified the build chain.

@IngelaAndin IngelaAndin added the team:VM Assigned to OTP team VM label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants