Repository navigation
gfx: no dev-trigger name in an embedded shader source (fixes the nightly package scan) - #994
Merged
Merged
Conversation
…tly package scan) #981's fs_ramp.frag comment spelled the dev-trigger name plxnative-hwcnt. The glsl! macros embed a shader source whole (include_str!, comments included), so the name was compiled into the binary and the Nightly `make ipk` step failed ci/check-package.py's packaged-binary dev-trigger scan ("the com.beb.plxnative.nightly package carries no dev-trigger surface ... (found plxnative-hwcnt)"). Reword the comment to "(HWCNT, 2026-10-24)"; the compiled program is unchanged. Add no_shader_source_names_a_dev_trigger, which reads every file under gfx/src/shaders/ and fails on any "plxnative-", so a later shader comment is caught on the host and not by the ARM build. It failed on fs_ramp.frag:8 before the reword. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What broke
#981 (65e976b) added
rust-modules/gfx/src/shaders/fs_ramp.frag, whose line-8 comment spells the dev-trigger nameplxnative-hwcnt.glsl!embeds a shader source whole (concat!(include_str!(..), "\0"), comments included; nothing strips them), so the name was compiled into the binary. The Nightly workflow'smake ipkstep then failedci/check-package.py's packaged-binary scan:the com.beb.plxnative.nightly package carries no dev-trigger surface ... (found plxnative-hwcnt)(seen on PR #991's "ARM build + gates / build + verify" job). #981's only other
plxnative-hwcntis a plain//comment ingfx.rs, which is not compiled in.The fix
fs_ramp.frag: line 8 now reads(HWCNT, 2026-10-24)instead of naming the trigger. A comment only, so the compiled program is unchanged.gfx::tests::no_shader_source_names_a_dev_triggerreads EVERY file underrust-modules/gfx/src/shaders/(it lists the directory, so a new shader is covered by being added; that is the onlyshaders/directory in the tree) and fails on anyplxnative-. The scan matches the dev-trigger catalog's names (dev.rsDIAG+devtrig.rsCONTROLLED, minus the release-legitimate allowlist); the test matches the whole prefix, a superset that nothing in a shader needs, and the failure message says why.Red / green
Red, before the reword (
make test-crate C=plx_gfx T=no_shader_source_names_a_dev_trigger):Green, after:
Whole crate (
make test-crate C=plx_gfx):test result: ok. 164 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out.make check-nodefpasses. Fullmake checkis left to CI.No linked issue.
🤖 Generated with Claude Code