Repository navigation
fix(rocke): skip the dsl_docs check where the docs are not installed - #15002
Conversation
The fp64 GEMM doc-consistency test read dtype_support.md and SUPPORT_MATRIX.md through source-tree paths. The installed test payload does not carry dsl_docs/, and it places the rocke package beside the tests rather than under python/, so both lookups pointed at files that do not exist there and the installed platform pytest run failed. Add rocke.tests.source_tree.require_dsl_docs(): it returns the dsl_docs tree, or skips the calling test with the reason when the tree is absent. The skip is keyed on the tree, so a doc missing from a present tree still fails. The check is now two tests sharing one assertion: the dtype_support.md test reaches the doc through the helper, and the SUPPORT_MATRIX.md test reads it through the rocke.instances package, so the installed payload, which installs the package directory whole, still checks its copy. The dsl_probes test uses the same helper in place of its own skip. Co-Authored-By: Claude <noreply@anthropic.com>
✅ All Checks Passed — Ready for Review
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🎉 All checks passed! This PR is ready for review. |
|
Automated review: Model - qwen3.6:35b-a3b-coding-mtp-q4_K_M, effort: max PR #15002 — skip the dsl_docs check where the docs are not installed (cgmillette, AICK-2971) — 🟠 First-round: fix holds; helper untested
Utility: 🟢 Positive — unblocks installed Legend: 🔴 blocking · 🟠 should-fix · 🟡 minor nit · 🟢 info/good · ⚪ retracted First-round review: first pass by a local qwen3.6 model, verified by the orchestrator (Claude Opus 5.5). Checks: merge with develop, build + ctest, byte identity, goldens, compile, doc tests in a |
Add tests for require_dsl_docs(): it returns a present tree, so a skip there fails, and it skips an absent tree naming the path. The attention probe driver test now uses the helper instead of its own skip. Co-Authored-By: Claude <noreply@anthropic.com>
|
Re our review (#15002 (comment)): Thanks, both items are fixed in N1: added Minor: |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change separating source-only documentation checks from packaged-resource checks.
No open issues 🎉
What changed in this PR
Fixes rocKE’s installed-test documentation failures described in #14998 by distinguishing source-only documentation from packaged resources.
Changes:
- Adds
require_dsl_docs()to skip source-only checks when the documentation tree is absent, while preserving failures for missing files within an existing tree. - Splits the fp64 GEMM documentation checks and reads
SUPPORT_MATRIX.mdthrough its package so it remains checked after installation. - Reuses the helper in probe tests and adds coverage for its return and skip behavior.
| File | Description |
|---|---|
| dnn-providers/hip-kernel-provider/rocke/platform/tests/tools/test_dsl_probes.py | Uses the shared documentation-tree helper when loading probes. |
| dnn-providers/hip-kernel-provider/rocke/platform/tests/support/test_source_tree.py | Tests present-tree handling and absent-tree skip messages. |
| dnn-providers/hip-kernel-provider/rocke/platform/tests/numeric/test_f64_gemm_numeric.py | Separates source-only and packaged documentation checks. |
| dnn-providers/hip-kernel-provider/rocke/platform/python/rocke/tests/source_tree.py | Adds the reusable source-documentation helper. |
| dnn-providers/hip-kernel-provider/rocke/library/tests/test_dsl_probe_attention_demos.py | Uses the shared helper to check documentation-tree availability. |
Review effort: Balanced
|
Automated review: Model - qwen3.6:35b-a3b-coding-mtp-q4_K_M, effort: max PR #15002 — skip the dsl_docs check where the docs are not installed (cgmillette, AICK-2971) — 🟡 Follow-up: both fixed; Windows shards pass
Utility: 🟢 Positive — unblocks installed Legend: 🔴 blocking · 🟠 should-fix · 🟡 minor nit · 🟢 info/good · ⚪ retracted Follow-up review: first pass by a local qwen3.6 model, verified by the orchestrator (Claude Opus 5.5). Checks: merge with develop, build + ctest, byte identity, goldens, compile, saved probe and helper mutants (source and installed layouts), the demo test with docs present, absent and missing a probe, installed |
Picks up #15002, which skips the dsl_docs checks where the docs are not installed (the hipkernelprovider rocke_pytest failures on this PR). Co-Authored-By: Claude <noreply@anthropic.com>
TheRock Submodule Bump ActivityNewest first
|
Motivation
The installed platform pytest run (
rocke_pytest, run from the installed test payload) fails on develop with twoFileNotFoundErrors in the fp64 GEMM doc-consistency test. The test readdtype_support.mdandSUPPORT_MATRIX.mdthrough source-tree paths:dsl_docs/is not part of the installed test payload, sodtype_support.mdis not there.rockepackage besidetests/, not underpython/, soplatform_root() / "python" / "rocke" / ...points one level above the payload, at a path that does not exist.The Windows test shards showed the failure. The Linux installed layout is the same and fails the same way.
Technical Details
rocke.tests.source_tree.require_dsl_docs(). It returns thedsl_docstree, or skips the calling test with the reason when the tree is absent. The skip is keyed on the tree, not on the file: where the tree exists, a renamed or deleted doc still fails the test.test_dtype_support_doc_names_every_f64_gemm_targetreachesdtype_support.mdthrough the helper. It runs from a source checkout and skips in the installed payload.test_support_matrix_names_every_f64_gemm_targetreadsSUPPORT_MATRIX.mdthrough therocke.instancespackage. The installed payload installs the package directory whole, so this test checks the installed copy too.tests/tools/test_dsl_probes.pynow uses the same helper instead of its own skip. That file is not installed, so this change is for consistency only.Test Plan
ROCKE_DSL_DOCSpointed at a copy ofdtype_support.mdwhose summary sentence names only one fp64 GEMM target, the dtype test fails.cmake --installof the platform in provider mode, run the way the test job runs it,PYTHONPATH=<install>/bin/hip_kernel_provider):FileNotFoundErrors as CI.dtype_support.mdtest skips with the reason, and theSUPPORT_MATRIX.mdtest passes. Narrowing a sentence in the installedSUPPORT_MATRIX.mdmakes that test fail.Test Result
ROCKE_REPLAY_CLI.Fixes #14998
ISSUE ID : AICK-2971
🤖 Generated with Claude Code