-
Notifications
You must be signed in to change notification settings - Fork 288
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
dm: fix binlog 999999 test #11726
Merged
Merged
dm: fix binlog 999999 test #11726
Changes from 23 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
7bcb187
install tool by apt-get
River2000i 1c510b9
use sudo
River2000i d073514
trigger test
River2000i 1b6b7e9
use sudo
River2000i ecb9465
setup docker
River2000i 36e8d02
fix
River2000i 35bb830
fix
River2000i cee651e
fix
River2000i 5270aa1
debug
River2000i 8be5212
f
River2000i e5c2b7f
fix
River2000i 262eb1d
fix
River2000i 990ed71
fix
River2000i 6b28c35
f
River2000i 1736487
Merge branch 'master' into fix-binlog_999999
River2000i f947e8d
ff
River2000i a32e20f
f
River2000i 28de8ad
fix
River2000i 4f7e319
f
River2000i 54d15d9
fix
River2000i 36e25d2
f
River2000i 2816e20
f
River2000i b3cc645
fix
River2000i 8a601d7
f
River2000i d316863
f
River2000i 5ea5127
address comment
River2000i File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -14,6 +14,11 @@ jobs: | |||||
test-binlog-999999: | ||||||
name: Test binlog 999999 | ||||||
runs-on: ubuntu-20.04 | ||||||
services: | ||||||
docker: | ||||||
image: docker:19.03.12 | ||||||
options: >- | ||||||
--privileged | ||||||
|
||||||
steps: | ||||||
- name: Set up Go env | ||||||
|
@@ -30,6 +35,14 @@ jobs: | |||||
with: | ||||||
ref: refs/pull/${{ github.event.inputs.pr }}/head | ||||||
|
||||||
- name: Set DOCKER_HOST | ||||||
run: echo "export DOCKER_HOST=unix:///var/run/docker.sock" >> $GITHUB_ENV | ||||||
|
||||||
- name: Install docker-compose | ||||||
run: | | ||||||
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||||||
sudo chmod +x /usr/local/bin/docker-compose | ||||||
|
||||||
- name: Cache go modules | ||||||
uses: actions/cache@v2 | ||||||
with: | ||||||
|
@@ -48,7 +61,9 @@ jobs: | |||||
|
||||||
- name: Setup CI environment | ||||||
run: | | ||||||
docker-compose -f ./dm/tests/binlog_999999/docker-compose.yml up -d | ||||||
sudo apt-get update | ||||||
sudo apt-get install -y curl | ||||||
sudo docker-compose -f ./dm/tests/binlog_999999/docker-compose.yml up -d | ||||||
curl http://download.pingcap.org/tidb-enterprise-tools-nightly-linux-amd64.tar.gz | tar xz | ||||||
mv tidb-enterprise-tools-nightly-linux-amd64/bin/sync_diff_inspector bin/ | ||||||
curl http://download.pingcap.org/tidb-nightly-linux-amd64.tar.gz | tar xz | ||||||
|
@@ -57,7 +72,7 @@ jobs: | |||||
chmod +x minio | ||||||
mv minio bin/ | ||||||
|
||||||
- name: change binlog sequence number to 999998 | ||||||
- name: Change binlog sequence number to 999998 | ||||||
run: | | ||||||
while ! mysqladmin -h127.0.0.1 -P3306 -p123456 -uroot ping --connect-timeout=1 > /dev/null 2>&1 ; do | ||||||
echo "wait mysql" | ||||||
|
@@ -90,8 +105,10 @@ jobs: | |||||
- name: Run test cases | ||||||
run: | | ||||||
RESET_MASTER=false make dm_integration_test CASE=incremental_mode | ||||||
echo "show binary logs;" | mysql -uroot -h127.0.0.1 -P3306 -p123456 | grep -q "mysql-bin.1000000" | ||||||
echo "show binary logs;" | mysql -uroot -h127.0.0.1 -P3307 -p123456 | grep -q "mysql-bin.1000000" | ||||||
echo "show binary logs;" | mysql -uroot -h127.0.0.1 -P3306 -p123456 | ||||||
echo "show binary logs;" | mysql -uroot -h127.0.0.1 -P3307 -p123456 | ||||||
echo "show binary logs;" | mysql -uroot -h127.0.0.1 -P3306 -p123456 | grep -q "mysql-bin.1000003" | ||||||
echo "show binary logs;" | mysql -uroot -h127.0.0.1 -P3307 -p123456 | grep -q "mysql-bin.1000002" | ||||||
|
||||||
- name: Copy logs to hack permission | ||||||
if: ${{ always() }} | ||||||
|
@@ -112,12 +129,14 @@ jobs: | |||||
path: | | ||||||
./logs | ||||||
|
||||||
# send Slack notify if failed. | ||||||
# NOTE: With the exception of `GITHUB_TOKEN`, secrets are not passed to the runner when a workflow is triggered from a forked repository. | ||||||
- name: Slack notification | ||||||
# Send feishu notification if failed. | ||||||
- name: Feishu notification | ||||||
continue-on-error: true | ||||||
uses: foxundermoon/feishu-action@v2 | ||||||
if: ${{ failure() }} | ||||||
env: | ||||||
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFY }} | ||||||
uses: Ilshidur/action-slack@2.1.0 | ||||||
with: | ||||||
args: "binlog 999999 failed, see https://github.com/pingcap/tiflow/actions/runs/{{ GITHUB_RUN_ID }}" | ||||||
url: ${{ secrets.ENGINE_FEISHU_NOTIFY_URL }} | ||||||
msg_type: text | ||||||
content: | | ||||||
text: | | ||||||
dataflow engine chaos job failed, see https://github.com/pingcap/tiflow/actions/runs/${{ github.run_id }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Mysql 3306 trigger 4 times
flush logs
in case and restart 1 time. Mysql 3307 trigger 3 timesflush logs
in case and restart 1 time. The origin binlog file ismysql-bin.999998
.