fix(xtask): admit portable Vulkan benchmark sources #539

Open
github-bot wants to merge 1 commit from github-bot/gh-539 into main AGit
Owner

@⁠tommiehansen on GitHub · 2026-12-05 00:36 UTC · original
tommiehansen:codex/benchmark-source-policy → main · +36 −0 · 1 files · 1 commits · open

Motivation

The optional Benchmark Suite Vulkan runner and original GLSL fixtures are reviewable source, but upstream's allowlist rejects their filenames. This standalone policy change can land before the benchmark stack.

Scope

Allow CMake files, C++ and the three original GLSL source types only within tools/benchmark-suite/portable-gpu/. Preserve all content, binary-signature, size and encoded-data checks. Generated SPIR-V, opaque assets and these source extensions elsewhere are still rejected.

Validation

  • cargo test --locked -p xtask -- policy::tests passed eight tests on current upstream main.
  • cargo xtask policy passed on the upstream-based branch.
  • Regression tests cover the path boundary, compiled shader files, binary magic, encoded data and oversized source.

Follow-up to the benchmark stack in #322. This is separate from the documented-switch scanner in #528.

**@⁠tommiehansen** on GitHub · 2026-12-05 00:36 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/539) `tommiehansen:codex/benchmark-source-policy` → `main` · +36 −0 · 1 files · 1 commits · open ## Motivation The optional Benchmark Suite Vulkan runner and original GLSL fixtures are reviewable source, but upstream's allowlist rejects their filenames. This standalone policy change can land before the benchmark stack. ## Scope Allow CMake files, C++ and the three original GLSL source types only within `tools/benchmark-suite/portable-gpu/`. Preserve all content, binary-signature, size and encoded-data checks. Generated SPIR-V, opaque assets and these source extensions elsewhere are still rejected. ## Validation - `cargo test --locked -p xtask -- policy::tests` passed eight tests on current upstream main. - `cargo xtask policy` passed on the upstream-based branch. - Regression tests cover the path boundary, compiled shader files, binary magic, encoded data and oversized source. Follow-up to the benchmark stack in #322. This is separate from the documented-switch scanner in #528.
Recognize CMake and native shader source types only under the portable benchmark subtree. Keep all existing size, magic, encoding and text checks for these files.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 00:38:09 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/539/head:github-bot/gh-539'
git switch 'github-bot/gh-539'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-539'
git switch 'github-bot/gh-539'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-539'
git switch 'github-bot/gh-539'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-539'
git switch 'main'
git merge --squash 'github-bot/gh-539'
git switch 'main'
git merge --ff-only 'github-bot/gh-539'
git switch 'main'
git merge 'github-bot/gh-539'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.