Skip to content

fix(tensilelite): Auto-derive arch marks from Architecture field and filename#8935

Open
archana-ramalingam wants to merge 2 commits into
developfrom
users/aramalin/gfx1250-yaml-marks
Open

fix(tensilelite): Auto-derive arch marks from Architecture field and filename#8935
archana-ramalingam wants to merge 2 commits into
developfrom
users/aramalin/gfx1250-yaml-marks

Conversation

@archana-ramalingam

@archana-ramalingam archana-ramalingam commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Motivation

gfx1250 test YAMLs under gemm/gfx12/ only get the gfx12 pytest mark from configMarks(), forcing TheRock to use -m "gfx1250 or gfx12" which pulls in 17 unrelated gfx12-only tests as spurious skips.

Technical Details

Add two mark derivation layers to configMarks() in config_helpers.py:

  • Architecture field: GlobalParameters.Architecture: gfx1250 → mark gfx1250
  • Filename regex: gfx\d+ in YAML filename → mark (e.g., bf16_gfx1250.yamlgfx1250)
    Together with the existing directory-name layer, all 99 gfx1250 tests receive the gfx1250 mark with zero gaps.
  • This enables TheRock to simplify to -m gfx1250 eliminating spurious skips.
  • Companion PR: fix(tensilelite): Narrow test collection and exclude slow tests for gfx1250 TheRock#6200

Test Plan

Test Result

  • Functionality validated in internal CI

Submission Checklist

JIRA ID: AIHPBLAS-3508

@therock-pr-bot

therock-pr-bot Bot commented Jun 30, 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: projects/hipblaslt/tensilelite/Tensile/Tests/common/config_helpers.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.

@archana-ramalingam archana-ramalingam changed the title fix(tensilelite): Add gfx1250 pytest mark to gfx12/ test YAMLs [AIHPBLAS-3508] fix(tensilelite): Add gfx1250 pytest mark for GPU emulation testing Jun 30, 2026
@therock-pr-bot

therock-pr-bot Bot commented Jun 30, 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.

@codecov-commenter

codecov-commenter commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

❌ Your project status has failed because the head coverage (76.92%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #8935   +/-   ##
========================================
  Coverage    71.27%   71.27%           
========================================
  Files         2613     2613           
  Lines       409506   409506           
  Branches     61210    61210           
========================================
  Hits        291868   291868           
  Misses       96183    96183           
  Partials     21455    21455           
Flag Coverage Δ *Carryforward flag
TensileLite 76.66% <ø> (ø)
hipBLAS 90.81% <ø> (ø) Carriedforward from af3f201
hipBLASLt 41.36% <ø> (ø) Carriedforward from af3f201
hipCUB 82.68% <ø> (ø) Carriedforward from af3f201
hipDNN 86.53% <ø> (ø) Carriedforward from af3f201
hipFFT 50.17% <ø> (ø) Carriedforward from af3f201
hipRAND 76.12% <ø> (ø) Carriedforward from af3f201
hipSOLVER 69.18% <ø> (ø) Carriedforward from af3f201
hipSPARSE 86.55% <ø> (ø) Carriedforward from af3f201
rocBLAS 48.08% <ø> (ø) Carriedforward from af3f201
rocFFT 46.30% <ø> (ø) Carriedforward from af3f201
rocRAND 57.07% <ø> (ø) Carriedforward from af3f201
rocSOLVER 76.92% <ø> (ø) Carriedforward from af3f201
rocSPARSE 72.37% <ø> (ø) Carriedforward from af3f201
rocThrust 91.36% <ø> (ø) Carriedforward from af3f201

*This pull request uses carry forward flags. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…filename

Add two new mark derivation layers to configMarks() so that
`-m gfx1250` collects all gfx1250 tests without requiring manual
TestParameters.marks entries or `-k` keyword filtering:

- Layer 2: GlobalParameters.Architecture value → pytest mark
- Layer 3: gfx\d+ regex match in YAML filename → pytest mark

Together with the existing directory-name layer (Layer 1), all 99
gfx1250 tests get the gfx1250 mark with zero gaps. This eliminates
17 spurious skips and catches stinky_sia4.yaml which was previously
missed by the `-k gfx1250` keyword filter.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@archana-ramalingam archana-ramalingam force-pushed the users/aramalin/gfx1250-yaml-marks branch from 3212208 to a314cf3 Compare June 30, 2026 07:18
@archana-ramalingam archana-ramalingam changed the title fix(tensilelite): Add gfx1250 pytest mark for GPU emulation testing fix(tensilelite): Auto-derive arch marks from Architecture field and filename Jun 30, 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