Skip to content

fix(amdsmi): stop the license checker policing .claude tooling - #11015

Closed
dmitrii-galantsev wants to merge 1 commit into
developfrom
users/dgalants/amdsmi-spdx-claude-skills
Closed

dmitrii-galantsev wants to merge 1 commit into
developfrom
users/dgalants/amdsmi-spdx-claude-skills

Conversation

@dmitrii-galantsev

@dmitrii-galantsev dmitrii-galantsev commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

check_license_headers.py is red on develop:

$ python3 projects/amdsmi/tests/check_license_headers.py
Missing or malformed AMD SPDX license header:
  .claude/skills/amdsmi-ci-logs/gh-ci-logs.sh
  .claude/skills/amdsmi-test-runner/run-all-tests.sh
  .claude/skills/amdsmi-using-git-worktrees/new-worktree.sh
exit=1

The hook is pass_filenames: false and rescans the whole tree, so this fails the
amdsmi LSTT Formatting leg on every amd-smi PR, not just #10387 which
introduced the files.

Technical Details

Nothing under .claude/ is compiled, installed or distributed — it is agent
tooling that happens to live in the tree. Stamping an AMD MIT header on it to
satisfy a source-header convention is the wrong fix, so exclude the directory
instead, the same way src/ualoe_lib/ already is.

Three lines in EXCLUDE_PREFIX. The skill scripts are not touched.

JIRA ID

N/A. Files introduced by #10387.

Test Plan / Result

  • python3 projects/amdsmi/tests/check_license_headers.py — was exit 1 on
    develop, exit 0 here (whole-tree scan clean).
  • Confirmed the exclusion is not over-broad: added a tracked .c with no header
    and the scan still fails on it.

check_license_headers.py is red on develop right now. Three shell scripts
under projects/amdsmi/.claude/skills/ are git-tracked and in scope for the
checker but never got the two-line SPDX header:

  .claude/skills/amdsmi-ci-logs/gh-ci-logs.sh
  .claude/skills/amdsmi-test-runner/run-all-tests.sh
  .claude/skills/amdsmi-using-git-worktrees/new-worktree.sh

All three came in with #10387, which merged after #10402 added the header
convention and the amdsmi-license-headers hook. The hook is
pass_filenames: false and rescans the whole tree, so this fails the amdsmi
LSTT Formatting leg on every amd-smi pull request, not just the one that
introduced it.

Header only, placed after the shebang to match tools/cmake_format.sh and
cmake_modules/version_util.sh. No behavior change.
@therock-pr-bot

therock-pr-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

✅ All Policy Checks Passed

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass PR does not contain code files — Unit Test auto-passed
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

🎉 All policy checks passed!

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR resolves the amdsmi-license-headers / check_license_headers.py failure on develop by adding the standard two-line AMD SPDX MIT header to the three .claude skill helper shell scripts that previously lacked it.

Changes:

  • Add the two-line AMD SPDX MIT header immediately after the shebang in three skill helper scripts.
  • No functional/script logic changes (header-only edit).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
projects/amdsmi/.claude/skills/amdsmi-using-git-worktrees/new-worktree.sh Adds AMD SPDX MIT header after shebang to satisfy license header check.
projects/amdsmi/.claude/skills/amdsmi-test-runner/run-all-tests.sh Adds AMD SPDX MIT header after shebang to satisfy license header check.
projects/amdsmi/.claude/skills/amdsmi-ci-logs/gh-ci-logs.sh Adds AMD SPDX MIT header after shebang to satisfy license header check.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dmitrii-galantsev dmitrii-galantsev changed the title fix(amdsmi): add SPDX headers to the .claude skill shell scripts fix(amdsmi): stop the license checker policing .claude tooling Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants