Fix deploy-docs.yml API reference generation on CI - #9367
Merged
Conversation
The Doxygen XML for an anonymous enum's <name> is an empty element on Doxygen 1.9.8 (Ubuntu 24.04's apt package) but a synthetic "@n" string on newer releases; generate_api_reference.py only handled the latter, crashing with TypeError on CI while working fine locally against a newer local Doxygen. Handle both, and also install upstream's official 1.18.0 binary in the workflow so CI isn't stuck on the ancient distro-packaged version going forward. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
derek-gerstmann
approved these changes
Aug 19, 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.
Summary
doc/generate_api_reference.py's_member_names()crashed withTypeError: argument of type 'NoneType' is not iterablewhen run against Doxygen 1.9.8 (Ubuntu 24.04's apt package): anonymous enums get an empty<name/>there, vs. a synthetic"@N"string on newer Doxygen (which is what local dev machines typically have, so this only showed up on CI)._member_names().deploy-docs.yml— install upstream's official 1.18.0 Linux binary instead (checksum-pinned), so CI isn't stuck on 1.9.8 going forward.Test plan
ubuntu:24.04) for the specific anonymous enum inHalideRuntime.hthat triggers it.<name/>(1.9.8) and synthetic@N(1.18.0) forms, regenerated from real Doxygen XML in each case.ubuntu:24.04under Docker.pre-commit run --all-filespasses on both changed files.deploy-docs.ymlsuccessfully (dry run).🤖 Generated with Claude Code