Skip to content

fix: convergence tests leak into --only <label> runs#1438

Merged
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:fix/convergence-skip-with-only-label
May 15, 2026
Merged

fix: convergence tests leak into --only <label> runs#1438
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:fix/convergence-skip-with-only-label

Conversation

@sbryngelson
Copy link
Copy Markdown
Member

Summary

  • --only 2D (or any non-Convergence label) was accidentally running convergence cases whose traces contained that label — e.g. Convergence -> 2D -> WENO5 would be selected by --only 2D, and the previous skip guard (if not ARG("only")) was bypassed because ARG("only") was non-empty.
  • Fix: always apply the convergence skip unless --list is set, regardless of whether --only was given. Convergence cases are only included when the user explicitly passes Convergence as a label or supplies a specific convergence-case UUID.

Test plan

  • ./mfc.sh test --dry-run --only 2D → 223 tests, no convergence cases
  • ./mfc.sh test --dry-run --only Convergence → 32 convergence tests
  • ./mfc.sh test --dry-run --only Convergence 2D → 7 tests (explicit 2D convergence opt-in still works)
  • ./mfc.sh test --dry-run (default) → 578 tests, no convergence cases
  • ./mfc.sh precheck passes (all 6 checks)

When the user passes --only 2D (or any non-Convergence label),
_filter_only keeps convergence cases whose traces contain that
label (e.g. 'Convergence -> 2D -> WENO5'). The previous skip
guard 'if not ARG(only)' was then bypassed because ARG('only')
was non-empty, so those convergence cases were executed.

Fix: apply the convergence skip whenever --list is not set,
regardless of whether --only was given. Only bypass the skip when
the user explicitly names 'Convergence' in the --only labels or
supplies a specific convergence-case UUID.
@qodo-code-review
Copy link
Copy Markdown
Contributor

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.00%. Comparing base (1139cc4) to head (27b62ff).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1438   +/-   ##
=======================================
  Coverage   65.00%   65.00%           
=======================================
  Files          72       72           
  Lines       18810    18810           
  Branches     1553     1555    +2     
=======================================
  Hits        12227    12227           
  Misses       5615     5615           
  Partials      968      968           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sbryngelson sbryngelson merged commit 3538585 into MFlowCode:master May 15, 2026
85 of 88 checks passed
@sbryngelson sbryngelson deleted the fix/convergence-skip-with-only-label branch May 15, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant