This is an automated email from the ASF dual-hosted git repository.
He-Pin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko.git
The following commit(s) were added to refs/heads/main by this push:
new bdb0e87580 chore: keep nightly virtualize change minimal (#2882)
bdb0e87580 is described below
commit bdb0e87580faf9fe2c06b0400d2d11c93ff1c42e
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Wed Apr 22 11:50:37 2026 +0800
chore: keep nightly virtualize change minimal (#2882)
Motivation:
Remove the stream-testkit reference.conf churn so the PR stays focused on
the intended nightly virtualize wiring.
Modification:
Rebuild the branch from origin/main with only the nightly workflow change
and the stream-tests application.conf override.
Result:
The PR diff is reduced to two files with no unrelated testkit comment
changes.
References:
upstream PR #2872
---
.github/workflows/nightly-builds.yml | 7 +++++++
stream-tests/src/test/resources/application.conf | 10 ++++++++++
2 files changed, 17 insertions(+)
diff --git a/.github/workflows/nightly-builds.yml
b/.github/workflows/nightly-builds.yml
index c68ba0ac7d..fd941e7b99 100644
--- a/.github/workflows/nightly-builds.yml
+++ b/.github/workflows/nightly-builds.yml
@@ -149,6 +149,13 @@ jobs:
- name: Compile and Test
# note that this is not running any multi-jvm tests because
multi-in-test=false
# JDK 25 ForkJoinPool scheduling changes need a higher timefactor (see
#2573, #2870)
+ # JDK 21+ uses virtual threads to bypass ForkJoinPool
compensation-thread starvation (JDK-8300995)
+ # Virtual threads provide equivalent or better performance by
eliminating unmount-remount penalties
+ # when blocking on I/O or reply futures, so TIMEFACTOR remains 2 for
JDK 21-24.
+ # If timeouts occur in nightly runs, increase TIMEFACTOR to 3
immediately.
+ env:
+ # Enable virtual threads only on JDK 21+ (nightly build only)
+ PEKKO_VIRTUALIZE_DISPATCHER: ${{ matrix.javaVersion >= 21 && 'on' ||
'off' }}
run: |-
if [ "${{ matrix.javaVersion }}" -ge 25 ]; then
TIMEFACTOR=4
diff --git a/stream-tests/src/test/resources/application.conf
b/stream-tests/src/test/resources/application.conf
new file mode 100644
index 0000000000..98f92a5d50
--- /dev/null
+++ b/stream-tests/src/test/resources/application.conf
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: Apache-2.0
+
+# Test-only: Virtual thread configuration.
+# Default: off for local development. Nightly CI sets
PEKKO_VIRTUALIZE_DISPATCHER=on for JDK 21+.
+
+pekko.test.stream-dispatcher.fork-join-executor {
+ # Default to off, then allow env var to override when set.
+ virtualize = off
+ virtualize = ${?PEKKO_VIRTUALIZE_DISPATCHER}
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]