Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/chronicler/processors/autohpl_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _parse_hpl_csv(self, csv_file: Path) -> Dict[str, Any]:
continue

# Comma-delimited header with Start_Date, End_Date
if line_stripped.startswith("T/V") and "," in line_stripped:
if (line_stripped.startswith("T/V") or line_stripped.startswith("TV")) and "," in line_stripped:
tokens = [t.strip() for t in line_stripped.split(",")]
if len(tokens) >= 9 and tokens[-2] == "Start_Date" and tokens[-1] == "End_Date":
header_has_timestamps = True
Expand Down
13 changes: 13 additions & 0 deletions tests/test_autohpl_timestamps.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ def test_autohpl_valid_timestamps(result_dir):
)


def test_autohpl_tv_header_without_slash(result_dir):
"""TV header (no slash, wrapper v2.2+) parses successfully."""
csv = """TV,N,NB,P,Q,Time,Gflops,Start_Date,End_Date
HPL,100,64,2,2,10.5,50.0,2026-02-04T00:12:03Z,2026-02-04T00:12:33Z"""
path = _write_csv(result_dir, csv)
run_processor_parse(
AutoHPLProcessor,
result_dir,
{FILE_KEY: str(path)},
expect_error=False,
)


def test_autohpl_no_timestamp_columns(result_dir):
"""Colon-delimited format without timestamps raises ProcessorError."""
csv = """T/V:N:NB:P:Q:Time:Gflops
Expand Down
Loading