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

Dump dns & port file at data dir #749

Merged
merged 3 commits into from
Sep 3, 2020
Merged

Conversation

july2993
Copy link
Contributor

@july2993 july2993 commented Sep 3, 2020

What problem does this PR solve?

Playground dump dsn&port file at wd.
After we changed not to set wd as instance data dir, playground dump
this file at wd but not instance data dir(not same dir like before).
This broke playground subcommand and "tiup client", which search this
files at ~/.tiup/data/../

What is changed and how it works?

Check List

Tests

  • Integration test
  • Manual test (add detailed scripts or steps below)

Release notes:

Fix dsn and port file not dumped at instance directory of playground

Playground duump dsn&port file at wd.
After we changed not to set wd as instance data dir, playground dump
this file at wd but not instance data dir(not same dir like before).
This broke playground subcommand and "tiup client", which search this
files at ~/.tiup/data/../
@july2993 july2993 added status/PTAL type/bug Categorizes issue as related to a bug. labels Sep 3, 2020
@july2993 july2993 requested review from lonng and lucklove and removed request for lonng September 3, 2020 05:37
Copy link
Contributor

@lonng lonng left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 3, 2020
Copy link
Member

@lucklove lucklove left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Sep 3, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Sep 3, 2020
@codecov-commenter
Copy link

codecov-commenter commented Sep 3, 2020

Codecov Report

Merging #749 into master will increase coverage by 0.72%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #749      +/-   ##
==========================================
+ Coverage   58.07%   58.79%   +0.72%     
==========================================
  Files         255      257       +2     
  Lines       18904    19441     +537     
==========================================
+ Hits        10978    11431     +453     
- Misses       6473     6497      +24     
- Partials     1453     1513      +60     
Flag Coverage Δ
#coverage 58.79% <ø> (+0.72%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ingcap/tiup/components/cluster/command/scale_in.go 75.00% <0.00%> (-7.36%) ⬇️
...pingcap/tiup/components/cluster/command/display.go 35.78% <0.00%> (-7.07%) ⬇️
...m/pingcap/tiup/pkg/cluster/task/update_topology.go 78.57% <0.00%> (-1.83%) ⬇️
...ngcap/tiup/components/cluster/command/scale_out.go 67.92% <0.00%> (-1.47%) ⬇️
...src/github.com/pingcap/tiup/pkg/cluster/manager.go 68.19% <0.00%> (-1.31%) ⬇️
...ithub.com/pingcap/tiup/pkg/cluster/spec/tispark.go 69.52% <0.00%> (-1.07%) ⬇️
....com/pingcap/tiup/pkg/cluster/operation/destroy.go 61.73% <0.00%> (-0.64%) ⬇️
...hub.com/pingcap/tiup/components/playground/main.go 70.56% <0.00%> (-0.53%) ⬇️
...git.luolix.top/pingcap/tiup/pkg/cluster/task/action.go 17.07% <0.00%> (ø)
...ithub.com/pingcap/tiup/components/dm/spec/logic.go 77.65% <0.00%> (ø)
... and 42 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f84a3f...c12c28f. Read the comment docs.

@july2993
Copy link
Contributor Author

july2993 commented Sep 3, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 3, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@july2993 merge failed.

@july2993 july2993 merged commit 760091f into pingcap:master Sep 3, 2020
@july2993 july2993 deleted the play_dump branch September 3, 2020 08:05
lucklove pushed a commit that referenced this pull request Sep 11, 2020
Playground duump dsn&port file at wd.
After we changed not to set wd as instance data dir, playground dump
this file at wd but not instance data dir(not same dir like before).
This broke playground subcommand and "tiup client", which search this
files at ~/.tiup/data/../
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bug Categorizes issue as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants