Skip to content
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

[CSharp] Add extra diagnostics and a retry to the C# runtime tests and upgrade the macOS runtime #2124

Merged
merged 5 commits into from
Nov 25, 2017

Conversation

ewanmellor
Copy link
Contributor

@ewanmellor ewanmellor commented Nov 13, 2017

Issue #2078 is a crash (SIGILL) inside the .NET runtime when running on macOS on Travis. This is intermittent, so a retry may help. Retry this specific exit status inside runProcess.

Log the command / stdout / stderr / exit status at three places during the C# runtime tests. At these places we are executing subprocesses, but if those fail we weren't logging the info that we needed to diagnose the problem.

Print the stack trace if compilation fails.

Assert that test compilation succeeded.

Switch to .NET Core SDK 1.1.4 for the Travis macOS tests. This is the LTS release at the moment. This didn't fix #2078, sadly. I've already seen one SIGILL on 1.1.4. We should upgrade anyway.

Assert that the dotnet restore / build commands succeeded.  If we
get a failure at this point, the test is obviously going to fail, and
we're masking the error by trying to push on with other commands.
Log the command / stdout / stderr / exit status at three places
during the C# runtime tests.

At these places we are executing subprocesses, but if those fail we
weren't logging the info that we may need to diagnose the problem.
Switch to .NET Core SDK 1.1.4 for the Travis macOS tests.  This is
the LTS release at the moment.

Issue antlr#2078 is starting to look like a crash (SIGILL) inside the dotnet
runtime, so this upgrade may help with that.
@ewanmellor ewanmellor changed the title [CSharp] Add extra diagnostics to the C# runtime tests. [CSharp] Add extra diagnostics to the C# runtime tests and upgrade the macOS runtime Nov 14, 2017
Issue antlr#2078 is a crash (SIGILL) inside the dotnet runtime when running on
macOS on Travis.  This is intermittent, so a retry may help.  Retry this
specific exit status inside runProcess.
@ewanmellor ewanmellor changed the title [CSharp] Add extra diagnostics to the C# runtime tests and upgrade the macOS runtime [CSharp] Add extra diagnostics and a retry to the C# runtime tests and upgrade the macOS runtime Nov 15, 2017
@ewanmellor
Copy link
Contributor Author

This retry has worked. The following Travis test shows the dotnet runtime crashing, and the retry kicking in and the test passing.

https://travis-ci.org/ewanmellor/antlr4/jobs/302163590

@parrt
Copy link
Member

parrt commented Nov 25, 2017

thanks!

@ewanmellor ewanmellor deleted the csharp-test-diagnostics branch November 25, 2017 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intermittent SIGILL during Travis .NET macOS tests
2 participants