Skip to content

Fix multi-model accuracy submission bugs and update tests#53

Merged
arav-agarwal2 merged 3 commits into
mainfrom
bug-fixes
Jun 24, 2026
Merged

Fix multi-model accuracy submission bugs and update tests#53
arav-agarwal2 merged 3 commits into
mainfrom
bug-fixes

Conversation

@anandhu-eng

Copy link
Copy Markdown
Collaborator
  • builder.py: apply _truncate_responses to accuracy/results.json in addition to root results.json; remove _write_accuracy_fallback (it overwrote the truncated file with bare accuracy_scores); fix yaml_dir for accuracy runs so point_N.yaml lands in points/ not accuracy/; fix _write_src to namespace files under src// to prevent multi-model collisions

  • test_builder.py: fix three stale tests that asserted old YAML-in- accuracy-dir behavior; add TestAccuracyResultsTruncation covering the three accuracy workflow scenarios (no accuracy/ subdir, large accuracy/results.json, already-small accuracy/results.json)

- builder.py: apply _truncate_responses to accuracy/results.json in
  addition to root results.json; remove _write_accuracy_fallback (it
  overwrote the truncated file with bare accuracy_scores); fix yaml_dir
  for accuracy runs so point_N.yaml lands in points/ not accuracy/;
  fix _write_src to namespace files under src/<model>/ to prevent
  multi-model collisions

- test_builder.py: fix three stale tests that asserted old YAML-in-
  accuracy-dir behavior; add TestAccuracyResultsTruncation covering the
  three accuracy workflow scenarios (no accuracy/ subdir, large
  accuracy/results.json, already-small accuracy/results.json)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

anandhu-eng and others added 2 commits June 24, 2026 21:55
- Rename unused loop variable system_id to _system_id (B007)
- Wrap long _write_pareto_entries call to stay under 100 chars (E501)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
For accuracy runs yaml_dir should be result_dir (.../accuracy/) so that
point_N.yaml is co-located with the accuracy results, not in points/.
Performance runs continue to write their YAML to points/.

Update test assertions to match the correct layout.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@arav-agarwal2 arav-agarwal2 merged commit 5551bd2 into main Jun 24, 2026
7 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants