Skip to content

fix: write distributed coverage to fixed path in minimax_m2 tests#2921

Open
ko3n1g wants to merge 1 commit intoyuya/add-minimax-m2-bridgefrom
ko3n1g/fix/minimax-m2-coverage-path
Open

fix: write distributed coverage to fixed path in minimax_m2 tests#2921
ko3n1g wants to merge 1 commit intoyuya/add-minimax-m2-bridgefrom
ko3n1g/fix/minimax-m2-coverage-path

Conversation

@ko3n1g
Copy link
Contributor

@ko3n1g ko3n1g commented Mar 20, 2026

Summary

  • The parallelism tests in test_minimax_m2_conversion.py were writing coverage data to tmp_path / ".coverage" (a throwaway pytest temp dir), so the .coverage.* files were never visible to coverage combine at /opt/Megatron-Bridge/.coverage
  • This caused coverage xml to fail with "No data to report" even though all 4 tests passed
  • Fix: use the hardcoded container path --data-file=/opt/Megatron-Bridge/.coverage, matching how other model tests (e.g. deepseek) are written
  • Remove the now-unnecessary in-process import workaround from L0_Launch_models_minimax_m2.sh

Test plan

  • CI L0_Launch_models_minimax_m2 passes (all 4 tests pass + coverage collection succeeds)

🤖 Generated with Claude Code

The parallelism tests were writing coverage data to a pytest tmp_path,
so the files were never visible to `coverage combine` at
/opt/Megatron-Bridge/.coverage. Use the fixed container path (matching
other model tests like deepseek), and remove the now-unnecessary
in-process import workaround from the launch script.

Signed-off-by: Oliver Koenig <okoenig@nvidia.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: oliver könig <okoenig@nvidia.com>
@ko3n1g ko3n1g added the needs-more-tests Requires additional L0 and L1 test coverage before merge label Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-more-tests Requires additional L0 and L1 test coverage before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant