Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Run scripted tests on sbt 1.4.x + refactoring #10655
Run scripted tests on sbt 1.4.x + refactoring #10655
Changes from all commits
d6b6bfc
8b7d9ef
501bd06
61fc472
7db001a
d7e7a0d
4e0f08e
c60c5fa
58d8448
00f7ea8
3bec04a
1547747
523973e
dfd8409
d8551c4
8cd3f1c
09dd00c
f85e4a5
a91e71f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Indicating the difference (scala version) to make it clearer what's the version tested on every PR.
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 a blocker. Let's solve this elsewhere.
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.
This is rather expensive and I'm not 100% sure we should extend the support matrix in all possible axis (JDK8/11, sbt1.3/1.4, scala2.12/2.13).
I think running only 1.4.x for 2.13 could be enough. I think users of sbt 1.4 may be more likely to be early adopters in general and, therefore, users of 2.13 already.
Again, not sure whether we should keep both jobs or not...
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 think the comment says it all... So since sbt/zinc#931 (which made it into sbt 1.4.1) the left
Incomplete
of followingcompileResult
playframework/dev-mode/sbt-plugin/src/main/scala/play/sbt/run/PlayReload.scala
Lines 63 to 67 in 47f277b
https://github.com/sbt/zinc/blob/v1.4.1/internal/zinc-compile-core/src/main/scala/sbt/internal/inc/LoggedReporter.scala#L131-L139
So since 1.4.1 sbt only transforms the position for log outputs... which is a problem for Play, so we have to make the Positions run through the sourcepositionmappers ourselves to show users the correct original soure of a problem in the error pages...
I also added two new tests for this new code here, which is relevant for sbt 1.4.1, see below.
Also I had to remove one scripted test which will always fail in sbt 1.4.1+, see
routes-compiler-source-mapping/build.sbt
below (I think you have to click "Load diff" in the GitHub UI to see the comment I left there). However the two new tests I added compensate the deleted one.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.
No need to wrap this in a
Future
for these tests here... This was a mistake from beginning when I just copy/pasted themakeRequestAndRecordResponseBody
task from theshutdown-happy-path
scripted test where that Future is actually needed because it is a different test case.As a result, in the test, we can also remove the 2 and 5 seconds
sleep
s after calling the command because now its blocking.