Skip to content

Commit 881c6c4

Browse files
Try to avoid timeouts in scala2-library-from-tasty*.scala (#20151)
Run these tests on their own to reduce the risk of timeouts.
2 parents 2427f56 + d0fae84 commit 881c6c4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@ class BootstrappedOnlyCompilationTests {
138138
aggregateTests(tests*).checkRuns()
139139
}
140140

141+
@Test def runScala2LibraryFromTasty: Unit = {
142+
implicit val testGroup: TestGroup = TestGroup("runScala2LibraryFromTasty")
143+
// These tests recompile the entire scala2-library from TASTy,
144+
// they are resource intensive and should not run alongside other tests to avoid timeouts
145+
aggregateTests(
146+
compileFile("tests/run-custom-args/scala2-library-from-tasty-jar.scala", withCompilerOptions),
147+
compileFile("tests/run-custom-args/scala2-library-from-tasty.scala", withCompilerOptions),
148+
).limitThreads(2).checkRuns() // TODO reduce to limitThreads(1) if it still causes problems, this would be around 50% slower based on local benchmarking
149+
}
150+
141151
@Test def runBootstrappedOnly: Unit = {
142152
implicit val testGroup: TestGroup = TestGroup("runBootstrappedOnly")
143153
aggregateTests(

0 commit comments

Comments
 (0)