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

Crash in SavedMatrix#finished: IllegalStateException: step.testExecutionStep.testTiming must not be null #498

Closed
jschear opened this issue Feb 14, 2019 · 3 comments
Labels

Comments

@jschear
Copy link
Contributor

jschear commented Feb 14, 2019

We encountered this crash using Flank version v4.2.0, while running 75 shards.

It looks like there's a null check for step.testExecutionStep, but in this case step.testExecutionStep.testTiming was null.

10:42:50   4m 48s matrix-285i5yv89ulkl RUNNING
10:43:47   5m 43s matrix-285i5yv89ulkl Non-retryable error occurred during results processing.
10:52:53 Request failed, retrying 1x java.net.SocketTimeoutException: Read timed out
11:02:45   24m 38s matrix-285i5yv89ulkl FINISHED
11:02:45 Exception in thread "main" picocli.CommandLine$ExecutionException: Error while running command (ftl.cli.firebase.test.android.AndroidRunCommand@6d367020): java.lang.IllegalStateException: step.testExecutionStep.testTiming must not be null
11:02:45     at picocli.CommandLine.execute(CommandLine.java:1168)
11:02:45     at picocli.CommandLine.access$800(CommandLine.java:141)
11:02:45     at picocli.CommandLine$RunLast.handle(CommandLine.java:1367)
11:02:45     at picocli.CommandLine$RunLast.handle(CommandLine.java:1335)
11:02:45     at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1243)
11:02:45     at picocli.CommandLine.parseWithHandlers(CommandLine.java:1526)
11:02:45     at picocli.CommandLine.run(CommandLine.java:1974)
11:02:45     at picocli.CommandLine.run(CommandLine.java:1920)
11:02:45     at ftl.Main$Companion.main(Main.kt:48)
11:02:45     at ftl.Main.main(Main.kt)
11:02:45 Caused by: java.lang.IllegalStateException: step.testExecutionStep.testTiming must not be null
11:02:45     at ftl.json.SavedMatrix.finished(SavedMatrix.kt:81)
11:02:45     at ftl.json.SavedMatrix.update(SavedMatrix.kt:57)
11:02:45     at ftl.run.TestRunner.pollMatrices(TestRunner.kt:249)
11:02:45     at ftl.run.TestRunner.newRun(TestRunner.kt:353)
11:02:45     at ftl.run.TestRunner$newRun$1.invokeSuspend(TestRunner.kt)
@bootstraponline
Copy link
Contributor

Thanks for reporting this bug. I'll push a fix when I'm back next week.

@bootstraponline
Copy link
Contributor

One day Google will publish a client library with nullability annotations and we won't have to discover the edge cases by trial and error. 🙂

I merged the fix to master. The snapshot release will be automatically published in a few minutes.

@jschear
Copy link
Contributor Author

jschear commented Feb 25, 2019

🤞 someday! Thanks for fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants