-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix dotr/dotc scripts #1957
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
Fix dotr/dotc scripts #1957
Conversation
.drone.yml
Outdated
@@ -34,6 +34,7 @@ pipeline: | |||
matrix: | |||
TEST: | |||
- test | |||
- dotty-bin-tests/test |
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.
Not super-nice, but you could do ;test;dotty-bin-tests/test
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.
Yeah, I agree with Guillaume here - no need for this to be a separate process.
22022a2
to
fe2e87f
Compare
Would you mind adding a test that verifies correct behaviour on incorrect I believe that if we change versions, the |
@felixmulder I know nothing of $ bin/dotc
find: `/home/yolo/workspace/dotty/bin/../interfaces/target/dotty-interfaces-0.1.1-SNAPSHOT.jar': No such file or directory
find: `/home/yolo/workspace/dotty/compiler/target/scala-2.11/dotty-compiler_2.11-0.1.1-SNAPSHOT.jar': No such file or directory
find: `/home/yolo/workspace/dotty/bin/../library/target/scala-2.11/dotty-library_2.11-0.1.1-SNAPSHOT.jar': No such file or directory
find: `/home/yolo/workspace/dotty/library/target/scala-2.11/dotty-library_2.11-0.1.1-SNAPSHOT-tests.jar': No such file or directory
Error: Could not find or load main class dotty.tools.dotc.Main |
So the scripts create a file called |
@felixmulder something like this: ca6563a? |
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.
I would rather it intentionally corrupted the packages file so we can check that the find commands don't fail.
Would you mind working that into the test?
One option would be to screw with the version numbers in the packages file. |
I manually corrupted the file with |
693c470
to
4d18804
Compare
@felixmulder ec1011a handls |
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.
Very nice! @liufengyun - do you want to add your fixes to $HOME
before we merge this?
@felixmulder : Sure, I think it's better to have that change in: + - 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 -ivy /var/cache/drone/ivy2 "${TEST}"
+ - sbt -J-Xmx4096m -J-XX:ReservedCodeCacheSize=512m -J-XX:MaxMetaspaceSize=1024m -Ddotty.drone.mem=4096m "${TEST}"
@OlivierBlanvillain could you please add that? |
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.
The .drone.yml
file needs to be signed using drone sign lampepfl/dotty
on any changes
$ drone sign lampepfl/dotty
Error: you must provide the Drone server address.
$ export DRONE_SERVER=dotty-ci.epfl.ch
$ drone sign lampepfl/dotty
Error: you must provide your Drone access token. |
This PR fixes the dotr/dotc scripts.
@felixmulder Do you have a better idea than the added line in
.drone.yml
? It looks a bit brutal, but this comment in Build.scala suggests that these tests need to be run in isolation.