-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Operation Kill Partest (part 1) #2125
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
Changes from 38 commits
5ce54c6
531c722
58e1c65
7b75bb2
0620c2b
fc2bdc8
57f8d1b
3acba31
c52457c
cd345b4
0c23687
5d7fb14
620daf8
101d124
c0a76af
404ce89
f6eb902
5d36bf9
4062778
d2e50d9
0df3f61
8c02da6
52488da
5bd99fc
a172e45
4e8eb32
f260894
41b3641
1ab7c03
f7e3b70
fd37852
0b65aad
7d8303d
af4bb48
c8321d6
8dc162c
b5b6f5e
02ebe0f
08d75b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ pipeline: | |
- ln -s /var/cache/drone/scala-scala scala-scala | ||
- ln -s /var/cache/drone/ivy2 "$HOME/.ivy2" | ||
- ./scripts/update-scala-library | ||
- sbt -J-Xmx4096m -J-XX:ReservedCodeCacheSize=512m -J-XX:MaxMetaspaceSize=1024m -Ddotty.drone.mem=4096m "${TEST}" | ||
- sbt -J-Xmx24G -J-XX:ReservedCodeCacheSize=512m -J-XX:MaxMetaspaceSize=4G -Ddotty.drone.mem=4096m "${TEST}" | ||
when: | ||
branch: | ||
exclude: gh-pages | ||
|
@@ -34,7 +34,9 @@ pipeline: | |
|
||
matrix: | ||
TEST: | ||
- ;test;dotty-bin-tests/test | ||
- ;publishLocal;dotty-bootstrapped/test | ||
- partest-only-no-bootstrap --show-diff --verbose | ||
- partest-only --show-diff --verbose | ||
- ;set testOptions in LocalProject("dotty-compiler") += Tests.Argument(TestFrameworks.JUnit, "--exclude-categories=dotty.tools.dotc.ParallelTesting") ;test ;dotty-bin-tests/test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would be nice to comment why are those additional options needed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. True, also if it wasn't clear - they will be removed once we remove partest itself. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there an intention to remove partest before we merge this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No |
||
- ;set testOptions in LocalProject("dotty-compiler-bootstrapped") += Tests.Argument(TestFrameworks.JUnit, "--exclude-categories=dotty.tools.dotc.ParallelTesting") ;publishLocal ;dotty-bootstrapped/test | ||
- ;set testOptions in LocalProject("dotty-compiler") += Tests.Argument(TestFrameworks.JUnit, "--exclude-categories=dotty.tools.dotc.ParallelTesting") ;partest-only-no-bootstrap --show-diff --verbose | ||
- ;set testOptions in LocalProject("dotty-compiler-bootstrapped") += Tests.Argument(TestFrameworks.JUnit, "--exclude-categories=dotty.tools.dotc.ParallelTesting") ;partest-only --show-diff --verbose | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DarkDimius - here you can see that partest is still included, with the new unit tests filtered out. Once we want to remove partest from the CI these, lines dissappear and the only two left will be: - ;test ;dotty-bin-tests/test
- ;publishLocal ;dotty-bootstrapped/test There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @felixmulder, thank you for clarification. |
||
- ;dotty-compiler/testOnly dotty.tools.dotc.CompilationTests | ||
- ;publishLocal ;dotty-bootstrapped/testOnly dotty.tools.dotc.CompilationTests |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgdGVzdDoKICAgIGltYWdlOiBsYW1wZXBmbC9kb3R0eTpsYXRlc3QKICAgIHB1bGw6IHRydWUKICAgIGNvbW1hbmRzOgogICAgICAtIGxuIC1zIC92YXIvY2FjaGUvZHJvbmUvc2Nhb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gLSA7ZG90dHktY29tcGlsZXIvdGVzdE9ubHkgZG90dHkudG9vbHMuZG90Yy5Db21waWxhdGlvblRlc3RzCiAgICAtIDtwdWJsaXNoTG9jYWwgO2RvdHR5LWJvb3RzdHJhcHBlZC90ZXN0T25seSBkb3R0eS50b29scy5kb3RjLkNvbXBpbGF0aW9uVGVzdHMK.IAe3X-XmMyf3-GnA1ENr-D3t_YM_28CAhHX6lP0EB6E |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
package dotc | ||
|
||
import dotty.tools.dotc.CompilerTest | ||
import dotty.tools.dotc.ParallelTesting | ||
|
||
object comptest extends CompilerTest { | ||
object comptest extends ParallelTesting { | ||
|
||
override val generatePartestFiles = false | ||
val defaultOutputDir: String = "" | ||
def isInteractive = true | ||
def testFilter = None | ||
|
||
implicit val defaultOutputDir: String = "." | ||
|
||
val posDir = "./tests/pos/" | ||
val negDir = "./tests/neg/" | ||
val dotcDir = "./src/dotty/" | ||
|
||
def main(args: Array[String]) = | ||
compileList("comptest", List( | ||
dotcDir + "tools/dotc/CompilationUnit.scala", | ||
dotcDir + "tools/dotc/core/Types.scala", | ||
dotcDir + "tools/dotc/ast/Trees.scala"), List( | ||
"#runs", "2", | ||
"-Ylog:frontend", | ||
"-Xprompt"))(Nil) | ||
|
||
// compileDir(dotcDir + "tools/dotc/", "printing", List("-Xprompt", "-Ylog:frontend", "#runs", "2", "-uniqid")) | ||
def main(args: Array[String]): Unit = | ||
compileList( | ||
"comptest", | ||
List( | ||
dotcDir + "tools/dotc/CompilationUnit.scala", | ||
dotcDir + "tools/dotc/core/Types.scala", | ||
dotcDir + "tools/dotc/ast/Trees.scala" | ||
), | ||
Array( | ||
"-Ylog:frontend", | ||
"-Xprompt" | ||
) | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need that much metaspace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's
dotty.drone.mem
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding metaspace - no idea, here I'm just playing with different settings to see if I can get the CI to run faster. Let's discuss this on Thursday at the meeting after I've experimented (=
dotty.drone.mem
is something that partest (the old one) uses IIRC.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dotty.drone.mem
is used inBuild.scala
, it's the amount of memory we give to each jvm started from sbt.