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: Fix output report error with dump shards #1680

Merged
merged 2 commits into from
Mar 11, 2021

Conversation

pawelpasterz
Copy link
Contributor

@pawelpasterz pawelpasterz commented Mar 11, 2021

When a user tries to dump shards AND the output report is enabled an error is thrown. This is due to the fact flank is trying to create outputReport.json file inside result directory which does not exist for dump shard run, to reproduce run on the current master:

  1. add output-report: json to the config file
  2. start flank with --dump-shards
  3. see FileNotFound error

Test Plan

How do we know the code works?

  1. add output-report: json to the config file
  2. start flank with --dump-shards
  3. no error is thrown and flank finishes run normally

Checklist

  • Unit tested

@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2021

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

@bootstraponline bootstraponline force-pushed the fix-output-report-error-with-dump-shards branch from a70efd2 to 67f0a5a Compare March 11, 2021 06:10
@pawelpasterz pawelpasterz force-pushed the fix-output-report-error-with-dump-shards branch from 67f0a5a to b4b8ee5 Compare March 11, 2021 06:10
@pawelpasterz
Copy link
Contributor Author

@flank-it

@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2021

Integration tests succeed for all OSes ✅
Windows Build scan:
MacOS Build scan: https://gradle.com/s/omt5emaxbbhei
Linux Build scan: https://gradle.com/s/ss6pc6tktygws
Workflow run https://github.com/Flank/flank/actions/runs/641817788

@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2021

Timestamp: 2021-03-11 11:02:42
Buildscan url for ubuntu-workflow run 642525252
https://gradle.com/s/ghtktcfifhbem

@pawelpasterz pawelpasterz enabled auto-merge (squash) March 11, 2021 09:47
@@ -111,7 +111,7 @@ fun File.hasAllFiles(fileList: List<String>): Boolean {

fun String.fileExists(): Boolean = Paths.get(this).exists()

fun osPathSeperator() = (if (isWindows) "\\" else "/")
fun osPathSeparator() = (if (isWindows) "\\" else "/")
Copy link
Contributor

Choose a reason for hiding this comment

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

Am i blind what actually changed on this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was a typo sepErator. I've changed it to sepArator

Copy link
Contributor

Choose a reason for hiding this comment

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

is it different from File.pathSeparator ?

@bootstraponline bootstraponline force-pushed the fix-output-report-error-with-dump-shards branch from b4b8ee5 to 1473b3a Compare March 11, 2021 10:56
Copy link
Contributor

@adamfilipow92 adamfilipow92 left a comment

Choose a reason for hiding this comment

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

  • Code looks good
  • Tested and works
    👍

@pawelpasterz pawelpasterz merged commit e16db03 into master Mar 11, 2021
@pawelpasterz pawelpasterz deleted the fix-output-report-error-with-dump-shards branch March 11, 2021 12:26
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 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.

4 participants