Skip to content

Add Metashade override shader generation CI step - #38

Merged
ppenenko merged 1 commit into
metashade/devfrom
metashade/override-ci
Aug 1, 2026
Merged

Add Metashade override shader generation CI step#38
ppenenko merged 1 commit into
metashade/devfrom
metashade/override-ci

Conversation

@ppenenko

Copy link
Copy Markdown
Member

Summary

  • Adds a pytest test_render_metashade.py CI step that runs test_render_metashade.py --no-render, verifying that Metashade override libraries (passthru and broken_schlick) produce valid shaders when loaded as MaterialX implementation overrides.
  • Simplifies CI step names to match the pytest commands they run.

This completes the three-step headless CI pipeline:

  1. pytest test_render.py -- stdlib/adsk shader generation + RefDiffer
  2. pytest metashade.mtlx -- Metashade implementation generation + RefDiffer
  3. pytest test_render_metashade.py -- Metashade override shader generation (new)

Test plan

  • Local: pytest test_render_metashade.py --no-render --output-dir /tmp/ci_override -x -v -- 75 passed, 166 subtests passed
  • CI run on Linux_GCC_14_Python313 passes all three contrib test steps

Run test_render_metashade.py --no-render in CI to verify that
Metashade override libraries (passthru and broken_schlick) produce
valid shaders when loaded as MaterialX implementation overrides.

Also simplify CI step names to match the pytest commands they run.

Signed-off-by: Pavlo Penenko <pavlo.penenko@autodesk.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a third headless contrib test step to the main GitHub Actions workflow to validate Metashade override shader generation, and renames existing contrib steps to align better with the pytest commands being run.

Changes:

  • Renames the existing contrib render and Metashade workflow step names to “pytest …”.
  • Adds a new contrib step to run contrib/tests/test_render_metashade.py --no-render in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

-x -v

- name: Metashade Implementation Generation + RefDiffer
- name: pytest metashade.mtlx
Comment on lines +312 to +315
python -m pytest test_render_metashade.py
--no-render
--output-dir ${{ runner.temp }}/ci/renders
-x -v
@ppenenko
ppenenko merged commit b2ba208 into metashade/dev Aug 1, 2026
37 checks passed
@ppenenko
ppenenko deleted the metashade/override-ci branch August 1, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants