Commit c231304
committed
ci: fix Spark 4.0.2/JDK 21 flake by enabling per-suite dedicated JVMs (#4327)
The workflow sets DEDICATED_JVM_SBT_TESTS for the V1/V2 Parquet and
Orc source suites on Spark 4.0/JDK 21, expecting Spark's
SparkParallelTestGrouping to fork a dedicated JVM per suite. But the
same workflow also unconditionally sets SERIAL_SBT_TESTS=1, and
project/SparkBuild.scala only installs SparkParallelTestGrouping when
SERIAL_SBT_TESTS is unset. As a result every suite shares a single
forked JVM, accumulated state from ~11k prior tests trips
DebugFilesystem.assertNoOpenStreams() in afterEach, and the four
problem suites are aborted with "There are 1 possibly leaked file
streams."
Drop SERIAL_SBT_TESTS only for the 4.0.2/JDK 21 matrix row so the
grouping is installed and DEDICATED_JVM_SBT_TESTS actually takes
effect. Override concurrentRestrictions to cap parallel forked test
JVMs at 1 so peak memory stays within the 7 GB standard-runner
budget (each test JVM has -Xmx2g).1 parent b1c586a commit c231304
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
179 | 193 | | |
180 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
181 | 197 | | |
182 | 198 | | |
183 | 199 | | |
| |||
186 | 202 | | |
187 | 203 | | |
188 | 204 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 205 | | |
193 | 206 | | |
194 | 207 | | |
| |||
0 commit comments