Skip to content

Save LogCat file in case of test failure#3058

Merged
cmelchior merged 19 commits intoreleasesfrom
cm/save-test-logs
Jun 23, 2016
Merged

Save LogCat file in case of test failure#3058
cmelchior merged 19 commits intoreleasesfrom
cm/save-test-logs

Conversation

@cmelchior
Copy link
Copy Markdown
Contributor

@cmelchior cmelchior commented Jun 23, 2016

Move from #3049

If unit tests crashes with native exceptions we currently have no way of knowing why.

With this PR we now save the LogCat file in case there is a test failure. For green builds nothing is saved.

A local test on my phone indicates that a full logcat file is ~8MB in size and 400Kb when zipped.

The CI log seems to be much smaller (~4Mb compressed to 130k)
An example is here: https://ci.realm.io/job/android-pr-jenkinsfile/630/

We need to enable logging before starting tests as Android only have a 256Kb buffer for log entries and rotates between multiple files. This means that dumping the log afterwards are missing a lot of entries.

@realm/java
@emanuelez

@emanuelez
Copy link
Copy Markdown
Contributor

👍

1 similar comment
@stk1m1
Copy link
Copy Markdown
Contributor

stk1m1 commented Jun 23, 2016

👍

@cmelchior cmelchior merged commit 0e3529d into releases Jun 23, 2016
@cmelchior cmelchior deleted the cm/save-test-logs branch June 23, 2016 13:43
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants