Skip to content

fix(repl): -Xrepl-interrupt-instrumentation:local instrumenting nothing - #26960

Merged
warcholjakub merged 2 commits into
scala:mainfrom
warcholjakub:fix/local-interrupt
Sep 1, 2026
Merged

fix(repl): -Xrepl-interrupt-instrumentation:local instrumenting nothing#26960
warcholjakub merged 2 commits into
scala:mainfrom
warcholjakub:fix/local-interrupt

Conversation

@warcholjakub

Copy link
Copy Markdown
Member

Fixes an issue where -Xrepl-interrupt-instrumentation:local basically worked like false. I found the issue while working on a PR (I wanted to use the option but noticed it doesn't work like advertised).

Have you relied on LLM-based tools in this contribution?

Yes, just for tests. I checked the output by reading and understanding the code.

How was the solution tested?

New automated tests (including the issue's reproducer, if applicable)

@warcholjakub
warcholjakub requested review from Gedochao and SolalPirelli and removed request for SolalPirelli September 1, 2026 12:15

@Gedochao Gedochao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left one comment on tests

Comment on lines +158 to +161
@Test def onlyEnabledAndLocalInstrumentReplClasses(): Unit =
assertFalse("false", probeIsInterruptible(Disabled))
assertTrue("true", probeIsInterruptible(Enabled))
assertTrue("local", probeIsInterruptible(Local))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should be 3 separate tests, IMO

@warcholjakub
warcholjakub enabled auto-merge (squash) September 1, 2026 13:52
@warcholjakub
warcholjakub merged commit 39d1391 into scala:main Sep 1, 2026
79 of 81 checks passed
@warcholjakub
warcholjakub deleted the fix/local-interrupt branch September 1, 2026 17:13
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.

2 participants