-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Migrate scripted tests for sbt bridge from zinc repo [ci: last-only] #10554
Conversation
c70cd1b
to
ebc72cf
Compare
be90719
to
1625c60
Compare
This is done now, modulo deciding how to run the tests. @SethTisue see my comments in the PR description. What do you think? |
Managed to get |
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.
LGTM, but maybe squash into fewer commits before merging?
👍 will do |
Copied and adapted from lampepfl/dotty
- use scriptedBatchExecution and scriptedParallelInstances - set scala version in tests - implement shared settings - delete unrelated tests - adjust tests for fullName until PR 10542 is merged - adjust test to hard-coded max filename length of 240, it was 255 on 2.12 (in the zinc repo)
Build changes copied and adapted from lampepfl/dotty. Tests copied and adapted from sbt/zinc.
To Do
source-dependencies/patMat-scope
: after first change, compilation only seems to compile changed file. Existing ticket: IncOptions.useOptimizedSealed is broken on 2.13 sbt/zinc#1229source-dependencies/empty-package
: after settingwithRecompileAllFraction
to 1.0 this started failing. Old issue, logged at Missing invalidation when deleting source file sbt/zinc#1268checkMainClasses
,checkIterations
,checkWarnings
,,checkRecompilations
,checkDependencies
checkClasses
,,checkProducts
checkNoClassFiles
,,checkProductsExists
checkNameExistsInClass
, re-enable tests that were disabled in the corresponding commit (one of this PR)figure out when to run the scripted tests in CIdonescripted
tests but rather has its own re-implementation of the a "scripted" test framework.scriptedBatchExecution := true
would make them run much faster, however there's cross-talk between tests that makes some of them fail (e.g., recompilation counts don't start at 1). In dotty some such issues were adressed in https://github.com/lampepfl/dotty/pull/10498/commits, but I'd prefer to keep that complexity out.> setup; reload
to include the shared settings) doesn't seem to affect performance too much (tested by copying the shared sbt file to each test directory).