Skip to content

Fix auto_hpl parser to accept both T/V and TV header formats#15

Merged
grdumas merged 2 commits into
redhat-performance:mainfrom
sayalibhavsar:fix/accept-tv-header
Jun 5, 2026
Merged

Fix auto_hpl parser to accept both T/V and TV header formats#15
grdumas merged 2 commits into
redhat-performance:mainfrom
sayalibhavsar:fix/accept-tv-header

Conversation

@sayalibhavsar

Copy link
Copy Markdown
Contributor

Since autohpl-wrapper v2.2, the --field_header in build_run_hpl.sh generates the header as TV,N,NB,P,Q,Time,Gflops (without a slash), but chronicler's _parse_hpl_csv only matches headers starting with T/V (with a slash). This causes all auto_hpl results from wrapper v2.2+ to fail with:

Auto HPL results require timestamps. No header line with T/V,N,NB,P,Q,Time,Gflops,Start_Date,End_Date was found.
Affected versions: autohpl-wrapper v2.2 through v2.5 (v2.0 and v2.1 used T/V)
Fix: Update the header check in autohpl_processor.py to accept both formats.

@qodo-code-review

Copy link
Copy Markdown
ⓘ You've reached your Qodo monthly free-tier limit. Reviews pause until next month — upgrade your plan to continue now, or link your paid account if you already have one.

@grdumas grdumas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks correct - would you be able to add a a new regression test in tests/test_autohol_timestamps.py to assert parse success against the expected header? This will help us catch error-inducing changes in the future.

Covers the autohpl-wrapper v2.2+ header change where T/V became TV.
@sayalibhavsar sayalibhavsar requested a review from grdumas June 4, 2026 13:50

@grdumas grdumas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your work!

@grdumas grdumas merged commit 853c969 into redhat-performance:main Jun 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants