Skip to content

ci(hip-kernel-provider): enable rocKE C++ tests in TheRock CI#9134

Open
shumway wants to merge 1 commit into
developfrom
users/shumway/rocke-enable-ci
Open

ci(hip-kernel-provider): enable rocKE C++ tests in TheRock CI#9134
shumway wants to merge 1 commit into
developfrom
users/shumway/rocke-enable-ci

Conversation

@shumway

@shumway shumway commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

ISSUE ID : AICK-1517

Motivation

We are adding CI coverage to the rocKE code in hip kernel provider. This PR turns on some minimal rocKE tests. This overlaps with #9115, so we'll likely defer to that PR for the initial commit.

Technical Details

Turn on the rocKE build in CI so its host-only C++ smoke tests run in the hipkernelprovider lane:

  • therock_matrix.py: add -DHIPKERNELPROVIDER_ENABLE_ROCKE=ON to the hip-kernel-provider entry (counterpart to TheRock's rocKE flag support).
  • ci-env/action.yml: bump therock-ref to d34f879 (2026-07-06) so TheRock includes the flag propagation + test-artifact includes.

Gate the two Python rocKE tests (import smoke + golden byte-stability) behind a new ROCKE_INSTALL_PYTHON_TESTS option and set it OFF in provider mode: their test-artifact packaging (the rocke package, the scripts, and the golden JSON) is not yet in TheRock's hipkernelprovider includes, so staging them there would fail at test time. Standalone builds keep them on. Only the C++ smoke tests (rocke_ir_serialize_roundtrip, rocke_tiled_attention_2d_reentrancy) run in CI.

Test Plan

This PR should cause the existing tests to be triggered.

Test Result

TBD

Submission Checklist

@therock-pr-bot

therock-pr-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

❌ PR Check — Action Required

Check Status Details
🌿 Branch Name ✅ Pass
📝 PR Title/Description ✅ Pass
Forbidden Files ✅ Pass
🧪 Unit Test ❌ Fail Error: Source/code files changed without an accompanying unit test.
Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).
Current: code file(s) changed: .github/scripts/therock_matrix.py; no test file found
🔎 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

  • ❌ Unit Test

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.

@therock-pr-bot

therock-pr-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

🚫 Please fix the failed policies before requesting reviews.

The following policy checks failed:

  • ❌ Unit Test

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

ISSUE ID : AICK-1517

Turn on the rocKE build in CI so its host-only C++ smoke tests run in the
hipkernelprovider lane:

- therock_matrix.py: add -DTHEROCK_FLAG_HIPKERNELPROVIDER_ENABLE_ROCKE=ON to
  the hip-kernel-provider entry. The THEROCK_FLAG_ prefix forwards the define
  down into the hipkernelprovider subproject's CMake (a bare
  -DHIPKERNELPROVIDER_ENABLE_ROCKE would stay at the superbuild level and never
  reach the provider).
- ci-env/action.yml: bump therock-ref to d34f879 (2026-07-06) so TheRock
  includes the flag propagation + test-artifact includes.

Gate the two Python rocKE tests (import smoke + golden byte-stability) behind
a new ROCKE_INSTALL_PYTHON_TESTS option and set it OFF in provider mode: their
test-artifact packaging (the rocke package, the scripts, and the golden JSON)
is not yet in TheRock's hipkernelprovider includes, so staging them there would
fail at test time. Standalone builds keep them on. Only the C++ smoke tests
(rocke_ir_serialize_roundtrip, rocke_tiled_attention_2d_reentrancy) run in CI.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@shumway shumway force-pushed the users/shumway/rocke-enable-ci branch from 2118715 to 1f6eadf Compare July 7, 2026 03:48
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.

1 participant