Skip to content

Fix JET name collisions in @resumable expansion#159

Merged
Krastanov merged 2 commits into
JuliaDynamics:masterfrom
Krastanov-agent:fix-jet-name-collisions-codex
Apr 23, 2026
Merged

Fix JET name collisions in @resumable expansion#159
Krastanov merged 2 commits into
JuliaDynamics:masterfrom
Krastanov-agent:fix-jet-name-collisions-codex

Conversation

@Krastanov-agent

Copy link
Copy Markdown
Contributor

Summary

Root cause

JET.report_package replays top-level definitions through Revise/JuliaInterpreter. In that path, plain gensym()-derived top-level bindings from separate @resumable expansions can collide, which makes different helper methods and generated types share the same name.

That is why only(methods(inferfn, Tuple)) started failing after PR #147: it was seeing multiple methods attached to a collided helper binding, not a genuine ambiguity in the resumable function being analyzed.

Verification

Reproduced and fixed with a clean direct CLI run, outside the package test runner:

using JET, QuantumSavory
rep = JET.report_package(QuantumSavory; target_modules=(QuantumSavory,))
length(JET.get_reports(rep)) == 0

@codecov-commenter

codecov-commenter commented Apr 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.57%. Comparing base (e686793) to head (d8fef77).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #159      +/-   ##
==========================================
- Coverage   80.86%   80.57%   -0.30%     
==========================================
  Files           6        6              
  Lines         690      695       +5     
==========================================
+ Hits          558      560       +2     
- Misses        132      135       +3     

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

@Krastanov Krastanov merged commit 254cace into JuliaDynamics:master Apr 23, 2026
15 of 17 checks passed
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.

3 participants