Add MaterialX validation script and CI workflow#301
Open
portsmouth wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
Open
Add MaterialX validation script and CI workflow#301portsmouth wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
portsmouth wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
Conversation
Adds validation/validate_mtlx.py and a GitHub Actions workflow that validates reference/open_pbr_surface.mtlx and all examples/*.mtlx on every PR or push that touches .mtlx files. The validator uses pip-installed MaterialX (materialx on PyPI) for zero dependency setup. It also performs an explicit nodename reference check on the standalone document to catch dangling connections that with-libraries validation misses when a file shares a name with a standard library file.
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
validation/validate_mtlx.py, a script that validates.mtlxfiles against the MaterialX standard libraries.github/workflows/validate-mtlx.yml, which runs the validator onreference/open_pbr_surface.mtlxand allexamples/*.mtlxon every PR or push that touches.mtlxfilesHow it works
The validator uses
pip install materialx(no build-from-source required), loads the standard libraries, and runsdoc.validate(). It also performs an explicit nodename reference check on the standalone document — this catches dangling connections that the with-libraries validation misses when a file shares a name with a standard library file (asopen_pbr_surface.mtlxdoes withlibraries/bxdf/open_pbr_surface.mtlx).Test plan
.mtlxfilesreference/open_pbr_surface.mtlxpassesexamples/*.mtlxpass🤖 Generated with Claude Code