Repository navigation
Handle ambiguous public bindings in documentation QA - #41
Merged
Merged
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]>
Member
Author
|
Investigation/implementation scratchpad for
|
Member
Author
|
Terminal CI for
No branch-related CI failure required a follow-up change. |
ChrisRackauckas
marked this pull request as ready for review
July 30, 2026 10:45
This was referenced Aug 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR should be ignored until reviewed by @ChrisRackauckas.
Summary
Docs.hasdocAPI for binding-aware documentation checks on Julia 1.11+@doc-based fallback for Julia 1.10Root cause
Julia 1.12 reports equal constants imported from multiple modules as an ambiguous binding.
run_api_docsconstructed the non-publicBase.Docs.Bindingdirectly, so the ambiguity escaped asConstant binding was imported from multiple modulesbefore the documentation assertion ran.public_reexportsseparately caught the same owner-resolution error and treated the package as the owner, which hid the ambiguous re-export.An automated
git bisectfrom currentmainidentifiedc42bff4(Add run_api_docs: shared public-API documentation QA check) as the first SciMLTesting commit exposing the exception.Behavior
The ambiguity is not accepted as documented: without a unique binding owner, SciMLTesting cannot determine which defining docstring is authoritative.
run_api_docsnow records the name in the normal undocumented-name failure with no test error. The re-export audit also reports that name, so the fix does not merely suppress the exception.Validation
Pkg.test()— 340/340 passedPkg.test()— 355/355 passedPkg.test()— 355/355 passed--checkpassedgit diff --checkpassedProcess
Reproduced the failure from exact clean
origin/main(9da2f8a), compared Julia 1.10/1.11/1.12 binding behavior, bisected the SciMLTesting history, implemented the conservative audit behavior and regression, then ran the package test matrix and formatter locally before committing.