-
Notifications
You must be signed in to change notification settings - Fork 4
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
refactor(pingcap/tiflow,pingcap/tidb-tools): refactor the building of sync-diff-inspector tool #548
base: main
Are you sure you want to change the base?
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>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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:
|
@@ -25,6 +25,11 @@ function test_get_builder() { | |||
local components="tidb tiflow tiflash tikv pd ctl monitoring ng-monitoring tidb-tools" | |||
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?
Changes
pingcap/tidb-tools
topingcap/tiflow
repo.sync-diff-inspector
.docker.io/pingcap/sync-diff-inspector
.sync-diff-inspector
rather thansync_diff_inspector
raw binary file.Close #546