Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

dmctl: use dmctl binary directly in integration test #135

Merged
merged 34 commits into from
May 22, 2019

Conversation

amyangfei
Copy link
Contributor

@amyangfei amyangfei commented May 7, 2019

What problem does this PR solve?

add integration test for dmctl
DNM until #142 is merged, this pr has same fix code in #142

What is changed and how it works?

  1. build a test entrance for dmctl
  2. run all dmctl command from bash in non-interactive mode
  3. add tests for part of dmctl API, the added tests are treated as dmctl_basic test. Other dmctl related tests will be added later in more PRs

Check List

Tests

  • Integration test

@amyangfei amyangfei added priority/normal Minor change, requires approval from ≥1 primary reviewer status/WIP This PR is still work in progress type/enhancement Performance improvement or refactoring type/qa relate to quality assurance labels May 7, 2019
@amyangfei
Copy link
Contributor Author

/run-all-tests

@amyangfei
Copy link
Contributor Author

/run-all-tests

@amyangfei
Copy link
Contributor Author

/run-all-tests

@amyangfei
Copy link
Contributor Author

/run-all-tests

@codecov
Copy link

codecov bot commented May 14, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@7152fa0). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             master      #135   +/-   ##
==========================================
  Coverage          ?   34.267%           
==========================================
  Files             ?       121           
  Lines             ?     13602           
  Branches          ?         0           
==========================================
  Hits              ?      4661           
  Misses            ?      8412           
  Partials          ?       529

tests/dmctl_basic/check_list/check_task.sh Outdated Show resolved Hide resolved
tests/dmctl_basic/check_list/update_relay.sh Outdated Show resolved Hide resolved
tests/dmctl_basic/check_list/update_task.sh Outdated Show resolved Hide resolved
@IANTHEREAL
Copy link
Collaborator

/run-all-tests

@zhouqiang-cl
Copy link
Contributor

/run-all-tests

2 similar comments
@zhouqiang-cl
Copy link
Contributor

/run-all-tests

@zhouqiang-cl
Copy link
Contributor

/run-all-tests

Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

LGTM

@csuzhangxc csuzhangxc added status/LGT1 One reviewer already commented LGTM and removed status/PTAL This PR is ready for review. Add this label back after committing new changes labels May 21, 2019
// return binlog-pos, sql-pattern, sharding, error
func extractBinlogPosSQLPattern(cmd *cobra.Command) (string, string, bool, error) {
func ExtractBinlogPosSQLPattern(cmd *cobra.Command) (string, string, bool, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we still put this function into dm/master, it seems we wouldn't use it somewhere else, because of cmd argument

Copy link
Member

Choose a reason for hiding this comment

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

I have the same question, but I did not raise it.:satisfied:

Copy link
Contributor Author

@amyangfei amyangfei May 21, 2019

Choose a reason for hiding this comment

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

addressed @GregoryIan PTAL

IANTHEREAL
IANTHEREAL previously approved these changes May 21, 2019
Copy link
Collaborator

@IANTHEREAL IANTHEREAL left a comment

Choose a reason for hiding this comment

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

Good Job! LGTM

@amyangfei
Copy link
Contributor Author

/run-all-tests

1 similar comment
@amyangfei
Copy link
Contributor Author

/run-all-tests

@csuzhangxc csuzhangxc added status/LGT2 Two reviewers already commented LGTM, ready for merge and removed status/LGT1 One reviewer already commented LGTM labels May 22, 2019
@amyangfei amyangfei merged commit f6f0566 into pingcap:master May 22, 2019
@amyangfei amyangfei deleted the add-dmctl-test branch May 22, 2019 02:45
lichunzhu pushed a commit to lichunzhu/dm that referenced this pull request Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority/normal Minor change, requires approval from ≥1 primary reviewer status/LGT2 Two reviewers already commented LGTM, ready for merge type/enhancement Performance improvement or refactoring type/qa relate to quality assurance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants