-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Testability and build improvements #2405
Testability and build improvements #2405
Commits on Nov 15, 2018
-
[Swift] Make ParserATNSimulator.precedenceTransition return a nullabl…
…e value. This was always clearly a possibility, looking at the body of the method. The newly-enabled performance tests expose this bug (and I don't know how we've gotten away with it otherwise for so long). The Java runtime also returns null at this point.
Configuration menu - View commit details
-
Copy full SHA for d275a8c - Browse repository at this point
Copy the full SHA d275a8cView commit details -
Fix mvn clean's deleting of the Swift .build directory.
Thanks, Maven.
Configuration menu - View commit details
-
Copy full SHA for 0f6581e - Browse repository at this point
Copy the full SHA 0f6581eView commit details -
Write any dumpstream files into the Travis logs.
This means that we will see the errors if Surefire is bailing for any reason.
Configuration menu - View commit details
-
Copy full SHA for c2d69af - Browse repository at this point
Copy the full SHA c2d69afView commit details -
Exclude intermediate build products from the runtime-testsuite jar.
This means that if you build in an unclean source tree, you don't end up with intermediate classes in the jar. (This hasn't broken anything that I noticed, but it bloats the jar and I wanted to make sure it wasn't messing anything up.) This excludes .build (the Swift runtime's build directory), target (the Java runtime's build directory) and Swift/*.xcodeproj (which is not in the source tree but can be created by devs who are using Xcode).
Configuration menu - View commit details
-
Copy full SHA for 3699ea5 - Browse repository at this point
Copy the full SHA 3699ea5View commit details -
Change the test asserts so that we can see all the values.
Change the unit test asserts so that we can see all the values in the event of a failure. When debugging an error, it's useful to see both the stdout and stderr for the failure. Previously we would only see one or the other (whichever one failed the assert). This adds a helper function BaseRuntimeTest.assertCorrectOutput. This also removes SpecialRuntimeTestAssert, which has not been used for 2 years.
Configuration menu - View commit details
-
Copy full SHA for e54607d - Browse repository at this point
Copy the full SHA e54607dView commit details -
[Swift] Don't catch exceptions inside the test apps.
We get much more info if we let the exception rise to the top level.
Configuration menu - View commit details
-
Copy full SHA for 4201dd9 - Browse repository at this point
Copy the full SHA 4201dd9View commit details -
[Swift] Build and test error checking.
Change all the subprocess calls in boot.py to check whether they succeeded, and set the script status appropriately. In particular, when our unit tests fail, we need the script to exit with a failure code so that we actually notice on Travis.
Configuration menu - View commit details
-
Copy full SHA for 768a0a6 - Browse repository at this point
Copy the full SHA 768a0a6View commit details -
[.NET] Make the .NET Travis tests use netstandard1.3.
Add -f netstandard1.3 to the dotnet build command used on Travis. This has been necessary since PR antlr#2024, and the build has been silently failing all this time.
Configuration menu - View commit details
-
Copy full SHA for 481f517 - Browse repository at this point
Copy the full SHA 481f517View commit details -
Make all the Travis test scripts exit in the event of error.
Test scripts that ignore errors aren't very helpful.
Configuration menu - View commit details
-
Copy full SHA for 443a1d2 - Browse repository at this point
Copy the full SHA 443a1d2View commit details