Skip to content

Commit

Permalink
Try to avoid timeouts in scala2-library-from-tasty*.scala (#20151)
Browse files Browse the repository at this point in the history
Run these tests on their own to reduce the risk of timeouts.
  • Loading branch information
nicolasstucki authored Apr 11, 2024
2 parents 2427f56 + d0fae84 commit 881c6c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,16 @@ class BootstrappedOnlyCompilationTests {
aggregateTests(tests*).checkRuns()
}

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

@Test def runBootstrappedOnly: Unit = {
implicit val testGroup: TestGroup = TestGroup("runBootstrappedOnly")
aggregateTests(
Expand Down

0 comments on commit 881c6c4

Please sign in to comment.