Skip to content

fix: handle changes in runtimes logs #4968

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

Merged
merged 2 commits into from
Aug 28, 2019
Merged

Conversation

rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Aug 23, 2019

In 6.1.0 there are several changes in the way both runtimes print logs. In order to handle this and keep the logs as they were with previous versions, introduce a check for the runtime version. In case the version is 6.1.0 or later (including prerelease versions) CLI will just replace the file reference in the message. For older versions CLI will still change the format of the message.

NOTE: For details about log changes, check the tests in: lib/common/test/unit-tests/mobile/device-log-provider.ts

Add integration tests for the whole CLI logic for parsing the logs - the input of the tests is the real output from device and the tests verify CLI will print the expected messages to the output. In the resources of the test you can find .zip file containing the project used for running the tests. In case additional verification are needed, unzip the content and add required tests.

PR Checklist

What is the current behavior?

CLI prints messages generated by Android runtime 6.1.0 and iOS Runtime 6.1.0 incorrectly.

What is the new behavior?

CLI prints messages generated by Android runtime 6.1.0 and iOS Runtime 6.1.0 incorrectly.

Implements issue #4976

@rosen-vladimirov
Copy link
Contributor Author

test cli-device cli-run cli-templates cli-smoke

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-logs branch 3 times, most recently from 9fdf86b to 3f55217 Compare August 26, 2019 10:05
@rosen-vladimirov
Copy link
Contributor Author

test cli-device cli-run cli-templates cli-smoke cli-debug

In 6.1.0 there are several changes in the way both runtimes print logs. In order to handle this and keep the logs as they were with previous versions, introduce a check for the runtime version. In case the version is 6.1.0 or later (including prerelease versions) CLI will just replace the file reference in the message. For older versions CLI will still change the format of the message.

Add integration tests for the whole CLI logic for parsing the logs - the input of the tests is the real output from device and the tests verify CLI will print the expected messages to the output. In the resources of the test you can find .zip file containing the project used for running the tests. In case additional verifications are needed, unzip the content and add required tests.
@rosen-vladimirov
Copy link
Contributor Author

test cli-device cli-run cli-smoke

@rosen-vladimirov
Copy link
Contributor Author

test cli-device cli-run cli-smoke cli-debug

@miroslavaivanova
Copy link
Contributor

test cli-device

@rosen-vladimirov rosen-vladimirov merged commit 4fa7e65 into master Aug 28, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-logs branch August 28, 2019 13:39
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.

3 participants