Skip to content

feat(ci): skip TheRock CI for changes to non-TheRock workflows - #14584

Merged
geomin12 merged 3 commits into
developfrom
users/geomin12/ignore-ci-for-irrelevant-workflows
Oct 28, 2026
Merged

geomin12 merged 3 commits into
developfrom
users/geomin12/ignore-ci-for-irrelevant-workflows

Conversation

@geomin12

Copy link
Copy Markdown
Collaborator

Doing explicit skip-ci in skip-ci.toml, so when these workflow(s) are touched, it is ignored by TheRock CI.

This way, it is clear to rocm-libraries folks that this is skipped and why it was (rather than assumed TheRock behavior)

Editing a workflow like pre-commit.yml, labeler.yml or one of the
component-ci jobs cannot change the outcome of a TheRock build or test,
yet every such PR currently spins up the full multi-arch matrix. Add the
36 non-therock-* workflow files to the skip-ci patterns so those runners
are left for work that actually needs them.

fnmatch has no negation operator, so the list is enumerated by hand
rather than expressed as "everything but therock-*". The therock-*
workflows are deliberately excluded and must keep triggering CI so that
changes to the CI definition itself are validated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@geomin12
geomin12 requested a review from a team as a code owner October 28, 2026 17:54
@github-actions github-actions Bot added the project: none Does not target any component label Oct 28, 2026
The skip-CI config only gates which workflows run; it is not an input to
any build or test, so editing it cannot change a TheRock result.

Note this is self-referential: the config is read from the PR head, so a
PR touching only this file now skips its own CI. That is intended, but it
means review is the sole guard against a bad pattern here silently
un-gating CI for everything downstream.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@therock-pr-bot

Copy link
Copy Markdown

❌ PR Check — Action Required

Check Status Details
📝 PR Description ❌ Fail Error: PR description must reference a JIRA ID, ISSUE ID, or a GitHub closing keyword.
Expected: include a JIRA ID / ISSUE ID line (separator : or -, or omitted; value may be a JIRA key, a number with/without #, or a link), OR a closing keyword + issue reference. Accepted examples:
• JIRA ID : TESTAUTO-6039
• JIRA ID - #330
• JIRA ID #330
• JIRA ID (on separate line)
ROCM-25757
• ISSUE ID : TESTUTO-3334
• ISSUE ID #3334
• ISSUE ID - TESTAUTO-3433
• ISSUE ID (on separate line)
AIRUNTIME-2352
• ISSUE ID : https://github.com/<org_name>/<repo_name>/issues/1234
• Closes #10
• Fixes octo-org/octo-repo#100
• Resolves: #123
• #123
• https://github.com/<org_name>/<repo_name>/issues/123
Current: no valid JIRA/ISSUE/closing-keyword reference found
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass PR does not contain code files — Unit Test auto-passed
🔎 pre-commit ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

⚠️ 1 policy check(s) failed. Please address the issues above before this PR can be Reviewed.

🚫 Please fix the failed policies

  • ❌ PR Description

The Not ready to Review label was added to this PR. Once all policies pass, the label is removed automatically.

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

🙋 Wish to Override Policy?

@therock-pr-bot

Copy link
Copy Markdown

🚫 Please fix the failed policies before requesting reviews.

The following policy checks failed:

  • ❌ PR Description

The Not ready to Review label has been added to this PR.
Once all policies pass, the label will be removed automatically.

@dysu-amd dysu-amd 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.

LGTM, minor comment

Comment thread .github/skip-ci-config.toml Outdated
#
# fnmatch has no negation operator, so this list must be maintained by hand.
# IMPORTANT: never add ".github/workflows/therock-*" here -- those workflows
# define TheRock CI itself and must always re-run it to validate the change.

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.

nit: I feel the IMPORTANT note here is redundant, the first paragraph already says that these are "Workflows that are not TheRock CI"

Also the note about fnmatch functionality could be moved to line 10 of this file if really needed, instead of buried down here as a therock-workflow-specific comment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@geomin12
geomin12 merged commit 77b700e into develop Oct 28, 2026
29 of 30 checks passed
@geomin12
geomin12 deleted the users/geomin12/ignore-ci-for-irrelevant-workflows branch October 28, 2026 19:49
@assistant-librarian

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

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