You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2026/04/25 16:37:08 UTC

[PR] fix: support virtualized dispatcher test assumptions [pekko]

He-Pin opened a new pull request, #2912:
URL: https://github.com/apache/pekko/pull/2912

   Motivation:
   Nightly builds can enable virtualized fork-join dispatchers on newer JDKs. That legitimately changes observable dispatcher thread names and disables Dispatcher batching, so tests that asserted numeric worker suffixes or default-dispatcher batching failed.
   
   Modification:
   - Accept both platform-thread and virtual-thread dispatcher name suffixes in thread-name assertions.
   - Keep production virtual-thread naming unchanged.
   - Run ExecutionContext batching checks on a dedicated non-virtualized dispatcher.
   
   Result:
   Nightly can virtualize the default and internal dispatchers while the affected tests still validate their intended behavior on JDK 17, JDK 21, and JDK 25.
   
   Tests:
   - JDK 25: sbt -Dpekko.test.timefactor=4 -Dpekko.actor.testkit.typed.timefactor=4 -Dpekko.actor.default-dispatcher.fork-join-executor.minimum-runnable=8 -Dpekko.actor.internal-dispatcher.fork-join-executor.minimum-runnable=8 -Dpekko.actor.default-dispatcher.fork-join-executor.virtualize=on -Dpekko.actor.internal-dispatcher.fork-join-executor.virtualize=on "slf4j / Test / testOnly org.apache.pekko.event.slf4j.Slf4jLoggerSpec" "actor-tests / Test / testOnly org.apache.pekko.actor.dispatch.DispatchersSpec org.apache.pekko.dispatch.ExecutionContextSpec"
   - JDK 21: sbt -Dpekko.test.timefactor=2 -Dpekko.actor.testkit.typed.timefactor=2 -Dpekko.actor.default-dispatcher.fork-join-executor.minimum-runnable=4 -Dpekko.actor.internal-dispatcher.fork-join-executor.minimum-runnable=4 -Dpekko.actor.default-dispatcher.fork-join-executor.virtualize=on -Dpekko.actor.internal-dispatcher.fork-join-executor.virtualize=on "slf4j / Test / testOnly org.apache.pekko.event.slf4j.Slf4jLoggerSpec" "actor-tests / Test / testOnly org.apache.pekko.actor.dispatch.DispatchersSpec org.apache.pekko.dispatch.ExecutionContextSpec"
   - JDK 21 / Scala 3.3.x: sbt -Dpekko.test.timefactor=2 -Dpekko.actor.testkit.typed.timefactor=2 -Dpekko.actor.default-dispatcher.fork-join-executor.minimum-runnable=4 -Dpekko.actor.internal-dispatcher.fork-join-executor.minimum-runnable=4 -Dpekko.actor.default-dispatcher.fork-join-executor.virtualize=on -Dpekko.actor.internal-dispatcher.fork-join-executor.virtualize=on "++ 3.3.x" "slf4j / Test / testOnly org.apache.pekko.event.slf4j.Slf4jLoggerSpec" "actor-tests / Test / testOnly org.apache.pekko.actor.dispatch.DispatchersSpec org.apache.pekko.dispatch.ExecutionContextSpec"
   - JDK 17: sbt -Dpekko.test.timefactor=2 -Dpekko.actor.testkit.typed.timefactor=2 "slf4j / Test / testOnly org.apache.pekko.event.slf4j.Slf4jLoggerSpec" "actor-tests / Test / testOnly org.apache.pekko.actor.dispatch.DispatchersSpec org.apache.pekko.dispatch.ExecutionContextSpec"
   - sbt "slf4j / Test / scalafmt" "actor-tests / Test / scalafmtCheck" "slf4j / Test / scalafmtCheck"
   - git diff --check
   
   References:
   - https://github.com/apache/pekko/pull/2907
   - https://github.com/apache/pekko/actions/runs/24933645620


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [PR] fix: support virtualized dispatcher test assumptions [pekko]

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin merged PR #2912:
URL: https://github.com/apache/pekko/pull/2912


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org