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

feat: Corellium adapters #1880

Merged
merged 7 commits into from
May 3, 2021
Merged

feat: Corellium adapters #1880

merged 7 commits into from
May 3, 2021

Conversation

jan-goral
Copy link
Contributor

@jan-goral jan-goral commented Apr 27, 2021

Fixes #1837

Test Plan

How do we know the code works?

The example code should execute tests on Corellium devices and stream output from am instrument command

Is not needed to testing this PR carefully because the adapter implementation could change during further integration and the final MVP testing.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 27, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@jan-goral jan-goral self-assigned this Apr 27, 2021
@jan-goral jan-goral marked this pull request as draft April 27, 2021 18:04
@github-actions
Copy link
Contributor

github-actions bot commented Apr 27, 2021

Timestamp: 2021-05-03 07:42:49
Buildscan url for ubuntu-workflow run 806098562
https://gradle.com/s/ulqiu24wa6hyu

@jan-goral
Copy link
Contributor Author

Should be reviewed and merged after #1878

@bootstraponline bootstraponline force-pushed the 1799_Corellium_client branch 2 times, most recently from 2869c94 to 9f7c894 Compare April 28, 2021 16:03
Base automatically changed from 1799_Corellium_client to master April 29, 2021 07:37
@jan-goral jan-goral force-pushed the 1799_Corellium_adapter branch from 4e50f68 to 20c2300 Compare April 29, 2021 07:49
@jan-goral
Copy link
Contributor Author

jan-goral commented Apr 29, 2021

@bootstraponline
The output result of running the selected test cases on the automatically created or invoked android instances:

commit: 372ac24
console output: https://gist.github.com/jan-gogo/f633256cbdf6ca482e5b1577bc67fedb

The ADB log lines from the two consoles are mixed, this behavior will be fixed in further changes.

In the next step probably I will integrate multimodule sharding.

@jan-goral jan-goral marked this pull request as ready for review April 29, 2021 14:12
@bootstraponline
Copy link
Contributor

@jan-gogo sounds good!

Copy link
Contributor

@Sloox Sloox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments 👍

import kotlinx.coroutines.launch

object ExecuteAndroidTestPlan : AndroidTestPlan.Execute {
override suspend fun AndroidTestPlan.Config.invoke(): Flow<String> =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice :)

private suspend fun startNotRunningInstances(
instances: List<Instance>
): Unit = instances
.filter { it.state != "on" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth making "on" a constant as its used in multiple places.
Up to you :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see its been defined already, can it be used here?

@bootstraponline bootstraponline force-pushed the 1799_Corellium_adapter branch 3 times, most recently from dac305b to e68c19a Compare April 30, 2021 12:02
@bootstraponline bootstraponline force-pushed the 1799_Corellium_adapter branch from e68c19a to a8aeb32 Compare May 3, 2021 07:37
@mergify mergify bot merged commit 609b1b8 into master May 3, 2021
@mergify mergify bot deleted the 1799_Corellium_adapter branch May 3, 2021 18:22
@github-actions github-actions bot locked and limited conversation to collaborators May 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simple device managment
4 participants