-
Notifications
You must be signed in to change notification settings - Fork 14
refactor(pingcap/tiflow,pingcap/tidb-tools): refactor the building of sync-diff-inspector tool #548
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
Conversation
… sync-diff-inspector tool - migrate building from `pingcap/tidb-tools` to `pingcap/tiflow` repo. - publish tiup package: `sync-diff-inspector`. - build and deliver image to `docker.io/pingcap/sync-diff-inspector`. - compose offline toolkit package with tiup package `sync-diff-inspector` rather than `sync_diff_inspector` raw binary file. Close #546 Signed-off-by: wuhuizuo <wuhuizuo@126.com>
The pull request mainly focuses on refactoring the build process of the Key changes include:
Possible issues:
Suggestions to fix:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just copy from dockerfiles/products/tidb-tools/Dockerfile
| - name: sync-diff-inspector # from raw binary to tiup pkg from v9.0.0 | ||
| src: { type: tiup-clone, version: "{{ .Release.version }}" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just this component is different with ">=8.4.0-0, < v9.0.0-0" route.
packages/offline-packages.yaml.tmpl
Outdated
| # sync_diff_inspector stop builds after v8.5.1 on tidb-tools repo. So we use the latest v8.5.x version for patch version lower then v9.0.0. | ||
| "{{ .Release.registry }}/pingcap/tidb-tools/package:v8.5.1_{{.Release.os }}_{{ .Release.arch }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for history patch version we pin the version as v8.5.1 that will be used to compose offline toolkit package.
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
This pull request is to refactor the building of the
Potential problems:
Fixing Suggestions:
|
|
/hold hold it for enough approvals. |
The Pull Request (PR) is titled "refactor(pingcap/tiflow,pingcap/tidb-tools): refactor the building of sync-diff-inspector tool" and primarily deals with refactoring the build process of the Key changes introduced in the PR are:
Potential Problems:
Fixing Suggestions:
|
| path: bin/sync_diff_inspector | ||
| tiup: | ||
| description: >- | ||
| sync-diff-inspector is a tool used to verify the consistency across different MySQL-compatible data sources. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @joechenrh
packages/offline-packages.yaml.tmpl
Outdated
| # version release on master branch. | ||
| url: "{{ .Release.registry }}/pingcap/tidb-tools/package:master_{{ .Release.os }}_{{ .Release.arch }}" | ||
| # sync_diff_inspector stop builds after v8.5.1 on tidb-tools repo. So we use the latest v8.5.x version for patch version lower then v9.0.0. | ||
| "{{ .Release.registry }}/pingcap/tidb-tools/package:v8.5.1_{{.Release.os }}_{{ .Release.arch }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "{{ .Release.registry }}/pingcap/tidb-tools/package:v8.5.1_{{.Release.os }}_{{ .Release.arch }}" | |
| url: "{{ .Release.registry }}/pingcap/tidb-tools/package:v8.5.1_{{.Release.os }}_{{ .Release.arch }}" |
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
The pull request primarily revolves around the refactoring of the building process of the sync-diff-inspector tool. The key changes in the pull request are as follows:
Potential Problems:
Suggestions to fix:
|
| for cm in $components; do | ||
| for version in $versions; do | ||
| # Skip tidb-tools for version v9.0.0 | ||
| if [[ $cm == "tidb-tools" && $version == "v9.0.0" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only skip for version 9.0.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, It's just a CI test script, Now the biggest version in test matrix is v9.0.0.
Thanks for you question.
|
@joechenrh: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Benjamin2037
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@Benjamin2037: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/unhold |
purelind
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[LGTM Timeline notifier]Timeline:
|
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Benjamin2037, joechenrh, purelind, wuhuizuo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
pingcap/tidb-toolstopingcap/tiflowrepo.sync-diff-inspector.docker.io/pingcap/sync-diff-inspector.sync-diff-inspectorrather thansync_diff_inspectorraw binary file.Close #546