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

Fix crash when --legacy-junit-result set #950

Merged
merged 5 commits into from
Aug 7, 2020

Conversation

adamfilipow92
Copy link
Contributor

@adamfilipow92 adamfilipow92 commented Aug 6, 2020

Fixes #947

Test Plan

How do we know the code works?

When using --legacy-junit-result flank, shouldn't throw an exception.

Checklist

  • Unit tested
  • release_notes.md updated

@adamfilipow92 adamfilipow92 self-assigned this Aug 6, 2020
@adamfilipow92 adamfilipow92 marked this pull request as ready for review August 6, 2020 16:04
@adamfilipow92 adamfilipow92 force-pushed the 947-fix-legacy-junit-flag branch from 2cb5355 to 19863f6 Compare August 7, 2020 12:29
private fun getWebLink(matrices: MatrixMap, xmlFile: File): String = xmlFile.getMatrixPath(matrices.runPath)
?.let { path ->
matrices.map.values.firstOrNull { savedMatrix -> savedMatrix.gcsPath.endsWith(path) }?.webLink
?: "".also { println("WARNING: Matrix path not found in JSON. $path") }
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you extract this to separate method for better readability?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed!

@adamfilipow92 adamfilipow92 merged commit 17b5d8b into master Aug 7, 2020
@adamfilipow92 adamfilipow92 deleted the 947-fix-legacy-junit-flag branch August 7, 2020 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

If --legacy-junit-result set, flank crashing on report uploading
3 participants