-
Notifications
You must be signed in to change notification settings - Fork 118
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
Handle duplicated apks names #854
Conversation
7aa3e78
to
9c226ff
Compare
83e8487
to
733b5a0
Compare
7b00daa
to
23e059c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation looks great. Now will be nice to have dedicated yml config and bundle with apks (probably in fixtures) to easly reproduce this case. Also we need unit test for file name conversion.
d5ba692
@@ -22,7 +23,7 @@ import java.nio.file.Paths | |||
import java.util.concurrent.ConcurrentHashMap | |||
|
|||
object GcStorage { | |||
|
|||
@VisibleForTesting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is not true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I tested something and forgot remove it before commit. Thanks!
@@ -73,3 +77,13 @@ private suspend fun executeAndroidTestMatrix( | |||
} | |||
} | |||
} | |||
|
|||
private val regex = ".*_(\\d)\\.apk".toRegex() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
regex
-> apkFileRegex
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, done!
Enhanced solution presented in #858 |
Potential fix for #818
Test Plan
All tests are correctly launched when additional test apks have the same name. Appended numbers to test apks names correspond with

matrix_[number]
.Robo test matrix directory has new name:
matrix_robo_[number]
.Instrumentation and robo matrices have separated counters.
flank.yml
++++ Before fix ++++
Bucket (note only one test apk):

gcs bucket
Matrices:


matrix-3czoyl2reb5zb -- SUCCESS
matrix-1syf6utonh6av -- FAILED
matrix-1ih4gd2jimkhi -- FAILED
matrix-mgl0d9m5f0oia -- FAILED
++++ After fix ++++
Bucket (multiple test apk with suffix

_[number].apk
):gcs bucket
Matrices:
matrix-67npvezinaqva -- SUCCESS
matrix-20mfp8bhyycmh -- SUCCESS
matrix-3vfuw3av7vxld -- SUCCESS
matrix-11a8n4gbhe2i0 -- SUCCESS
JUnitResults.xml
JUnitReport.zip
Checklist