Skip to content

[codex] test(interp): cover shared cache state transitions#64

Open
siyul-park wants to merge 1 commit into
mainfrom
codex/daily-test-coverage-cache
Open

[codex] test(interp): cover shared cache state transitions#64
siyul-park wants to merge 1 commit into
mainfrom
codex/daily-test-coverage-cache

Conversation

@siyul-park

Copy link
Copy Markdown
Owner

Summary

  • add regression coverage for shared JIT cache state transitions in interp/cache.go
  • assert closed caches reject new attachments, failed compilations mark targets ready, and published modules complete all recorded targets while aggregating JIT counters

Changed paths tested

  • interp/cache.go

Added tests

  • TestCache_StateTransitions/closed cache rejects attach
  • TestCache_StateTransitions/fail marks address ready
  • TestCache_StateTransitions/publish records module and completes all targets

Validation

  • go test ./interp
  • go test -coverprofile=/tmp/interp.cover ./interp

Skipped targets

  • interp/pool.go idle/close branches already had direct behavioral tests nearby; uncovered lines are mostly channel race edges with higher setup cost.
  • interp/interp.go shared JIT error branches require architecture- or compiler-failure injection, which is less reliable than the cache-level regression added here.

@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.41%. Comparing base (9bcb4c2) to head (0a982e4).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #64      +/-   ##
==========================================
+ Coverage   59.45%   61.41%   +1.96%     
==========================================
  Files          60       60              
  Lines       11837    10635    -1202     
==========================================
- Hits         7038     6532     -506     
+ Misses       4123     3427     -696     
  Partials      676      676              

☔ View full report in Codecov by Harness.
📢 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 June 12, 2026 03:48
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