Skip to content

Fixes #490 Rename testShards to maxTestShards#514

Merged
bootstraponline merged 1 commit into
Flank:masterfrom
miguelslemos:rename_testshards
Mar 13, 2019
Merged

Fixes #490 Rename testShards to maxTestShards#514
bootstraponline merged 1 commit into
Flank:masterfrom
miguelslemos:rename_testshards

Conversation

@miguelslemos
Copy link
Copy Markdown
Contributor

@miguelslemos miguelslemos commented Mar 7, 2019

This PR rename testShards parameter to maxTestShards

Fix #490

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #514 into master will not change coverage.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #514   +/-   ##
=========================================
  Coverage     79.98%   79.98%           
  Complexity      623      623           
=========================================
  Files            73       73           
  Lines          1944     1944           
  Branches        250      250           
=========================================
  Hits           1555     1555           
  Misses          247      247           
  Partials        142      142

@miguelslemos
Copy link
Copy Markdown
Contributor Author

This PR is breaking change, should I make it retro compatibility or just bump a major version?

@bootstraponline
Copy link
Copy Markdown
Contributor

Thanks for the pull request! I'll take a look at this today.

@bootstraponline
Copy link
Copy Markdown
Contributor

bootstraponline commented Mar 8, 2019

The code looks great.

To make it easy for people to upgrade, I'd like to dynamically rewrite the flank.yml file. If we don't have an auto-migration strategy then this will break immediately after merging since they run from the snapshot.

What do you think of that approach? I can add the code for this if the scope is too large.

The idea would be to read in the input YAML (flank.yml or flank.ios.yml), detect any old keys (such as testShards), and then rename those keys. After the file is rewritten to disk then Flank would proceed normally. We'd want to preserve comments in the YAML file if they exist (and only modify key names).

@bootstraponline
Copy link
Copy Markdown
Contributor

I talked with the team and once #515 is figured out then I'll merge this pull request. It's an open question how to best preserve backwards compatibility.

@bootstraponline bootstraponline merged commit 4b61cb6 into Flank:master Mar 13, 2019
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.

3 participants