Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to avoid timeouts in scala2-library-from-tasty*.scala #20151

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading