Skip to content

[codex] test: cover threaded fusion regressions#27

Closed
siyul-park wants to merge 1 commit into
mainfrom
codex/daily-test-coverage-fusion
Closed

[codex] test: cover threaded fusion regressions#27
siyul-park wants to merge 1 commit into
mainfrom
codex/daily-test-coverage-fusion

Conversation

@siyul-park

Copy link
Copy Markdown
Owner

What changed

  • Added a regression test that exercises fused LOCAL_GET + I32_CONST + I32_ADD through CALL/RETURN in interp/threaded.go.
  • Added a regression test that exercises fused LOCAL_GET + I32_CONST + I32_DIV_S and verifies ErrDivideByZero still propagates.

Why

Recent interpreter changes introduced threaded fusion for numeric LOCAL_GET and constant producers in interp/threaded.go. These paths were changed recently but were not pinned by a focused test around callee return flow or fused arithmetic error propagation.

Changed paths tested

  • interp/threaded.go: fused numeric LOCAL_GET path
  • interp/threaded.go: fused arithmetic on I32_CONST producers
  • interp/interp.go: cached current-frame behavior exercised via call/return execution

Validation

  • go test -race ./interp

Skipped targets

  • interp/jit.go cutoff/closure updates: existing nearby JIT tests already cover emission/link behavior, and adding more would require architecture-specific setup beyond this narrow diff.
  • Ref-valued LOCAL_GET non-fusion path: the recent change explicitly preserves the threaded fallback for refs, but there was no equally small new regression case with stronger signal than the numeric fusion tests added here.

@codecov

codecov Bot commented May 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.89%. Comparing base (f648f5b) to head (00c0c52).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
+ Coverage   55.77%   55.89%   +0.11%     
==========================================
  Files          48       48              
  Lines        7659     7659              
==========================================
+ Hits         4272     4281       +9     
+ Misses       2949     2942       -7     
+ Partials      438      436       -2     

☔ 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.

@siyul-park siyul-park marked this pull request as ready for review May 18, 2026 11:18
@siyul-park siyul-park closed this May 18, 2026
@siyul-park siyul-park deleted the codex/daily-test-coverage-fusion branch May 22, 2026 13:03
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