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

#750 Store test results in gcloud bucket #828

Merged

Conversation

adamfilipow92
Copy link
Contributor

@adamfilipow92 adamfilipow92 commented Jun 1, 2020

Fixes #750

Test Plan

How do we know the code works?

-Should upload reports to gcloud bucket

Checklist

  • Documented
  • Unit tested
  • release_notes.md updated
  • update README.md
  • update flank.yml
  • update flank.ios.yml

@adamfilipow92 adamfilipow92 self-assigned this Jun 1, 2020
@adamfilipow92 adamfilipow92 force-pushed the #750-Automatically-store-reports-in-gcloud-bucket branch from b8c4b70 to 037497c Compare June 4, 2020 13:27
@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2020

Codecov Report

Merging #828 into master will increase coverage by 0.21%.
The diff coverage is 85.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #828      +/-   ##
============================================
+ Coverage     81.23%   81.44%   +0.21%     
- Complexity      637      642       +5     
============================================
  Files           167      167              
  Lines          3240     3250      +10     
  Branches        463      463              
============================================
+ Hits           2632     2647      +15     
+ Misses          343      339       -4     
+ Partials        265      264       -1     

@adamfilipow92 adamfilipow92 marked this pull request as ready for review June 5, 2020 12:26
@adamfilipow92 adamfilipow92 force-pushed the #750-Automatically-store-reports-in-gcloud-bucket branch from b750b9e to 1bbf21a Compare June 17, 2020 12:39
@@ -204,6 +204,9 @@ flank:

## Enable create additional local junit result on local storage with failure nodes on passed flaky tests.
# full-junit-result: false

## Disables flank results upload on gcloud storage.
# disable-results-upload: false
Copy link
Contributor

Choose a reason for hiding this comment

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

Same should be in android section

Copy link
Contributor

Choose a reason for hiding this comment

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

And add info about default value, thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@adamfilipow92 adamfilipow92 force-pushed the #750-Automatically-store-reports-in-gcloud-bucket branch from 4cde50a to 42c0032 Compare June 22, 2020 11:58
@@ -204,6 +204,9 @@ flank:

## Enable create additional local junit result on local storage with failure nodes on passed flaky tests.
# full-junit-result: false

## Disables flank results upload on gcloud storage.
# disable-results-upload: false
Copy link
Contributor

Choose a reason for hiding this comment

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

And add info about default value, thanks!

@@ -41,5 +42,6 @@ object CostReport : IReport {
val output = generate(matrices)
if (printToStdout) print(output)
write(matrices, output, args)
GcStorage.uploadReportResult(output, args, fileName())
Copy link
Contributor

Choose a reason for hiding this comment

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

Just want to confirm, we want to upload all reports or just junit's?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want to upload all reports.

Paths.get(reportPath(matrices, args)).let {
val htmlReport = suites.createHtmlReport()
Files.write(it, htmlReport.toByteArray())
GcStorage.uploadReportResult(htmlReport, args, it.fileName.toString())
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, do we want to have this uploaded?

@adamfilipow92 adamfilipow92 merged commit 22b0370 into master Jun 24, 2020
@adamfilipow92 adamfilipow92 deleted the #750-Automatically-store-reports-in-gcloud-bucket branch June 24, 2020 12:23
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.

Automatically store reports in gcloud bucket
5 participants