Skip to content

Fix eval.py to properly parse list values in test cases - #94

Merged
msaroufim merged 2 commits into
mainfrom
fix-eval-list-parsing
Jan 19, 2026
Merged

msaroufim merged 2 commits into
mainfrom
fix-eval-list-parsing

Conversation

@msaroufim

Copy link
Copy Markdown
Member
  • Updated regex to use [^]]* instead of [^]]+ to handle edge cases
  • Added underscores to key pattern [a-zA-Z_]+
  • Skip empty lines and empty parts when parsing
  • Use re.fullmatch directly instead of both re.match and re.fullmatch
  • Handle empty tuples/lists in value parsing

Mark Saroufim added 2 commits January 19, 2026 09:22
- Updated regex to use [^\]]* instead of [^\]]+ to handle edge cases
- Added underscores to key pattern [a-zA-Z_]+
- Skip empty lines and empty parts when parsing
- Use re.fullmatch directly instead of both re.match and re.fullmatch
- Handle empty tuples/lists in value parsing
Kernelbot passes a text file with format like:
  m: [96, 128]; n: [128, 256]; k: [128, 512]; g: 2; seed: 1111

Use get_test_cases() to parse this text format directly.
Remove unused get_test_cases_from_yaml function.
@msaroufim
msaroufim merged commit 0942e96 into main Jan 19, 2026
robobryce pushed a commit to robobryce/gpumode that referenced this pull request Jun 26, 2026
* Fix eval.py to properly parse list values in test cases

- Updated regex to use [^\]]* instead of [^\]]+ to handle edge cases
- Added underscores to key pattern [a-zA-Z_]+
- Skip empty lines and empty parts when parsing
- Use re.fullmatch directly instead of both re.match and re.fullmatch
- Handle empty tuples/lists in value parsing

* Fix eval.py to use text parsing instead of YAML

Kernelbot passes a text file with format like:
  m: [96, 128]; n: [128, 256]; k: [128, 512]; g: 2; seed: 1111

Use get_test_cases() to parse this text format directly.
Remove unused get_test_cases_from_yaml function.
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.

1 participant