-
Notifications
You must be signed in to change notification settings - Fork 326
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
Better runEngineDistribution --run test/Base_Tests "filter"
#8940
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
576c851
Speed runEngineDistribution up by caching runtime.jar
JaroslavTulach 0a5b83f
Allow passing a filter test/to Base_Tests execution
JaroslavTulach 68e03c2
Adding forgotten Numbers_Spec
JaroslavTulach ed80614
Pass filter also to Table_Tests
JaroslavTulach a1cbcd6
Remove unused JPMSUtils.removeAllModuleInfoExcept merge strategy
Akirathan ddd821f
Merge branch 'develop' into wip/jtulach/BetterTestBaseTests
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,12 @@ import project.Helpers | |
import project.In_Memory | ||
import project.IO | ||
|
||
main = | ||
main filter=Nothing = | ||
suite = Test.build suite_builder-> | ||
In_Memory.Main.add_specs suite_builder | ||
IO.Main.add_specs suite_builder | ||
Formatting.Main.add_specs suite_builder | ||
Database.Main.add_specs suite_builder | ||
Helpers.Main.add_specs suite_builder | ||
suite.run_with_filter | ||
|
||
suite.run_with_filter filter | ||
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.
Done in ed80614, however as @Akirathan pointed out, this only filters by group name. A simple, standardized mechanism to turn argument of |
Oops, something went wrong.
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.
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.
According to the docs in
sbt-assembly
: https://github.com/sbt/sbt-assembly/blob/develop/src/main/scala/sbtassembly/MergeStrategy.scala#L82-L85preferProject
picks the dependency that is the first project/internal dependency.The goal of
JPMSUtils.removeAllModuleInfoExcept("runtime")
is to drop all themodule-info.class
files from the resulting JAR except for a single one from theruntime
project. I tried locally this change, and the JAR resulting fromruntime-fat-jar/assembly
unfortunately still contains moremodule-info.class
files:If the JVM does not complain about it, we might just leave your change and remove
JPMSUtils.removeAllInfoExcept
merge strategy.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.
@JaroslavTulach What is your opinion on the following:
?
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.
Removed the, now unused, custom merge strategy in a1cbcd6. The tests, and my local brief experimentation, seems to be OK with that. If everything works, this change fixes #8601
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.
Thank you for your review and a1cbcd6 fix. I am trying to build
runtime.jar
from scratch and verify your observations. Doing:I have found two
module-info.class
files. After 9a233d2cf2 I see only single module info:enso$ unzip -v runtime.jar | grep module-info 902 Defl:N 452 50% 2010-01-01 00:00 0dada4e7 module-info.class enso$ jar --validate -f runtime.jar entry: META-INF/versions/11/com/fasterxml/jackson/core/io/doubleparser/FastDoubleSwar.class, contains a class with different api from earlier version entry: META-INF/versions/17/com/fasterxml/jackson/core/io/doubleparser/FastDoubleSwar.class, contains a class with different api from earlier version entry: META-INF/versions/19/com/fasterxml/jackson/core/io/doubleparser/FastDoubleSwar.class, contains a class with different api from earlier version
that seems OKeyish. The module info itself looks fine as well:
I guess this is integratable.
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.
Alas, my
git push
failed on conflicts and I merged incomplete PR. Sorry for that. Here is a continuation: