Skip to content

fix(rocBLAS) : allow empty strings to pass rocblas_get_ - #14380

Merged
TorreZuk merged 2 commits into
developfrom
users/torrezuk/rocm-33491-fix-ver-test
Oct 29, 2026
Merged

TorreZuk merged 2 commits into
developfrom
users/torrezuk/rocm-33491-fix-ver-test

Conversation

@TorreZuk

Copy link
Copy Markdown
Contributor

Motivation

This pull request makes minor improvements to the unit tests for string retrieval functions in general_gtest.cpp. The main focus is on clarifying buffer size expectations and ensuring proper handling of empty strings.

Test robustness and clarity improvements:

  • Updated the assertion in expect_get_string_rejects_short_buffer to check that the size is greater than 0 (instead of 1), with a clarifying comment about the string termination character.
  • Added a conditional so the buffer test is only run if the size is greater than 0, preventing unnecessary operations for empty strings.
  • Added a comment noting that the commit hash string may be empty, clarifying expectations for related tests.

JIRA ID : ROCM-33491

@TorreZuk
TorreZuk requested a review from a team as a code owner October 26, 2026 14:14
@TorreZuk TorreZuk added the noTensile Run PR without Tensile label Oct 26, 2026
@therock-pr-bot

therock-pr-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
📝 PR Description ✅ Pass —
⛔ 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 —
🤖 therock-pr-bot ✅ Pass —

🎉 All checks passed! This PR is ready for review.

📖 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

🎉 All checks passed! This PR is ready for review.

@evedovelli evedovelli 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.

Ship it!

@codecov

codecov Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #14380      +/-   ##
===========================================
- Coverage    77.26%   77.19%   -0.07%     
===========================================
  Files         2892     2888       -4     
  Lines       485320   483818    -1502     
  Branches     73315    73014     -301     
===========================================
- Hits        374938   373449    -1489     
- Misses       85631    85750     +119     
+ Partials     24751    24619     -132     
Flag Coverage Δ *Carryforward flag
TensileLite-CPP 50.78% <ø> (-0.03%) ⬇️ Carriedforward from c03b34e
TensileLite-Unit 84.09% <ø> (+0.07%) ⬆️ Carriedforward from c03b34e
hipBLAS 90.62% <ø> (ø) Carriedforward from c03b34e
hipBLASLt 66.18% <ø> (-2.29%) ⬇️ Carriedforward from c03b34e
hipCUB 82.68% <ø> (ø) Carriedforward from c03b34e
hipDNN 86.86% <ø> (+<0.01%) ⬆️ Carriedforward from c03b34e
hipFFT 38.02% <ø> (ø) Carriedforward from c03b34e
hipRAND 76.12% <ø> (ø) Carriedforward from c03b34e
hipSOLVER 69.67% <ø> (ø) Carriedforward from c03b34e
hipSPARSE 87.03% <ø> (ø) Carriedforward from c03b34e
rocBLAS 68.95% <ø> (ø)
rocFFT 47.34% <ø> (ø) Carriedforward from c03b34e
rocRAND 57.31% <ø> (ø) Carriedforward from c03b34e
rocSOLVER 76.74% <ø> (ø) Carriedforward from c03b34e
rocSPARSE 83.53% <ø> (-0.02%) ⬇️ Carriedforward from c03b34e
rocThrust 93.15% <ø> (ø) Carriedforward from c03b34e

*This pull request uses carry forward flags. Click here to find out more.
see 42 files with indirect coverage changes

🚀 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.

@TorreZuk
TorreZuk force-pushed the users/torrezuk/rocm-33491-fix-ver-test branch from d359e21 to 4c2cd94 Compare October 27, 2026 15:51
@TorreZuk
TorreZuk force-pushed the users/torrezuk/rocm-33491-fix-ver-test branch from 4c2cd94 to c03b34e Compare October 27, 2026 20:42
@TorreZuk
TorreZuk merged commit bbd0df2 into develop Oct 29, 2026
131 of 132 checks passed
@TorreZuk
TorreZuk deleted the users/torrezuk/rocm-33491-fix-ver-test branch October 29, 2026 13:39
assistant-librarian Bot pushed a commit to ROCm/rocBLAS that referenced this pull request Oct 29, 2026
fix(rocBLAS) : allow empty strings to pass rocblas_get_
 (#14380)

## Motivation

This pull request makes minor improvements to the unit tests for string
retrieval functions in `general_gtest.cpp`. The main focus is on
clarifying buffer size expectations and ensuring proper handling of
empty strings.

Test robustness and clarity improvements:

* Updated the assertion in `expect_get_string_rejects_short_buffer` to
check that the size is greater than 0 (instead of 1), with a clarifying
comment about the string termination character.
* Added a conditional so the buffer test is only run if the size is
greater than 0, preventing unnecessary operations for empty strings.
* Added a comment noting that the commit hash string may be empty,
clarifying expectations for related tests.

JIRA ID : ROCM-33491

Co-authored-by: renjithravindrankannath <94420380+renjithravindrankannath@users.noreply.github.com>
@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.

3 participants