-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: replace pingcap/ticdc with pingcap/tiflow in workflow (#3965)
- Loading branch information
Showing
7 changed files
with
21 additions
and
21 deletions.
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
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
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
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 |
---|---|---|
|
@@ -117,7 +117,7 @@ jobs: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFY }} | ||
uses: Ilshidur/[email protected] | ||
with: | ||
args: "chaos job failed, see https://github.com/pingcap/ticdc/actions/runs/{{ GITHUB_RUN_ID }}" | ||
args: "chaos job failed, see https://github.com/pingcap/tiflow/actions/runs/{{ GITHUB_RUN_ID }}" | ||
|
||
# Debug via SSH if previous steps failed | ||
- name: Set up tmate session | ||
|
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 |
---|---|---|
|
@@ -304,7 +304,7 @@ jobs: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFY }} | ||
uses: Ilshidur/[email protected] | ||
with: | ||
args: "chaos job failed, see https://github.com/pingcap/ticdc/actions/runs/{{ GITHUB_RUN_ID }}" | ||
args: "chaos job failed, see https://github.com/pingcap/tiflow/actions/runs/{{ GITHUB_RUN_ID }}" | ||
|
||
# Debug via SSH if previous steps failed | ||
- name: Set up tmate session | ||
|
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 |
---|---|---|
|
@@ -81,7 +81,7 @@ jobs: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFY }} | ||
uses: Ilshidur/[email protected] | ||
with: | ||
args: "upstream-switch job failed, see https://github.com/pingcap/ticdc/actions/runs/{{ GITHUB_RUN_ID }}" | ||
args: "upstream-switch job failed, see https://github.com/pingcap/tiflow/actions/runs/{{ GITHUB_RUN_ID }}" | ||
|
||
# Debug via SSH if previous steps failed | ||
- name: Set up tmate session | ||
|
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
name: From V1 | ||
runs-on: ubuntu-18.04 | ||
env: | ||
working-directory: ${{ github.workspace }}/go/src/github.com/pingcap/ticdc | ||
working-directory: ${{ github.workspace }}/go/src/github.com/pingcap/tiflow | ||
|
||
steps: | ||
- name: Set up Go 1.16 | ||
|
@@ -37,13 +37,13 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/pingcap/ticdc | ||
path: go/src/github.com/pingcap/tiflow | ||
|
||
- name: Check out code by workflow dispatch | ||
if: ${{ github.event.inputs.pr != '' }} | ||
uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/pingcap/ticdc | ||
path: go/src/github.com/pingcap/tiflow | ||
ref: refs/pull/${{ github.event.inputs.pr }}/head | ||
|
||
- name: Setup containers | ||
|
@@ -56,7 +56,7 @@ jobs: | |
working-directory: ${{ env.working-directory }} | ||
run: | | ||
cd ${{ env.working-directory }}/dm/tests/tiup/docker | ||
docker-compose exec -T control bash -c "cd /go/src/github.com/pingcap/ticdc/dm && ./tests/tiup/upgrade-from-v1.sh" | ||
docker-compose exec -T control bash -c "cd /go/src/github.com/pingcap/tiflow/dm && ./tests/tiup/upgrade-from-v1.sh" | ||
# 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. | ||
|
@@ -66,7 +66,7 @@ jobs: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFY }} | ||
uses: Ilshidur/[email protected] | ||
with: | ||
args: "upgrade job failed, see https://github.com/pingcap/ticdc/actions/runs/{{ GITHUB_RUN_ID }}" | ||
args: "upgrade job failed, see https://github.com/pingcap/tiflow/actions/runs/{{ GITHUB_RUN_ID }}" | ||
|
||
# Debug via SSH if previous steps failed | ||
- name: Set up tmate session | ||
|
@@ -78,7 +78,7 @@ jobs: | |
name: From V2 | ||
runs-on: ubuntu-18.04 | ||
env: | ||
working-directory: ${{ github.workspace }}/go/src/github.com/pingcap/ticdc | ||
working-directory: ${{ github.workspace }}/go/src/github.com/pingcap/tiflow | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -94,13 +94,13 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/pingcap/ticdc | ||
path: go/src/github.com/pingcap/tiflow | ||
|
||
- name: Check out code by workflow dispatch | ||
if: ${{ github.event.inputs.pr != '' }} | ||
uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/pingcap/ticdc | ||
path: go/src/github.com/pingcap/tiflow | ||
ref: refs/pull/${{ github.event.inputs.pr }}/head | ||
|
||
- name: Build | ||
|
@@ -154,7 +154,7 @@ jobs: | |
working-directory: ${{ env.working-directory }} | ||
run: | | ||
cd ${{ env.working-directory }}/dm/tests/tiup/docker | ||
docker-compose exec -e ref=${{ github.ref }} -e id=${{ github.event.inputs.pr }} -T control bash -c "cd /go/src/github.com/pingcap/ticdc/dm && ./tests/tiup/upgrade-from-v2.sh ${{ matrix.previous_v2 }} nightly" | ||
docker-compose exec -e ref=${{ github.ref }} -e id=${{ github.event.inputs.pr }} -T control bash -c "cd /go/src/github.com/pingcap/tiflow/dm && ./tests/tiup/upgrade-from-v2.sh ${{ matrix.previous_v2 }} nightly" | ||
# if above step is passed, logs will be removed by tiup dm destroy | ||
- name: Copy logs to hack permission | ||
|
@@ -184,7 +184,7 @@ jobs: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFY }} | ||
uses: Ilshidur/[email protected] | ||
with: | ||
args: "upgrade-via-tiup job failed, see https://github.com/pingcap/ticdc/actions/runs/{{ GITHUB_RUN_ID }}" | ||
args: "upgrade-via-tiup job failed, see https://github.com/pingcap/tiflow/actions/runs/{{ GITHUB_RUN_ID }}" | ||
|
||
# Debug via SSH if previous steps failed | ||
- name: Set up tmate session | ||
|
@@ -196,7 +196,7 @@ jobs: | |
name: Upgrade TiDB | ||
runs-on: ubuntu-18.04 | ||
env: | ||
working-directory: ${{ github.workspace }}/go/src/github.com/pingcap/ticdc | ||
working-directory: ${{ github.workspace }}/go/src/github.com/pingcap/tiflow | ||
steps: | ||
- name: Set up Go 1.16 | ||
uses: actions/setup-go@v2 | ||
|
@@ -206,7 +206,7 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/pingcap/ticdc | ||
path: go/src/github.com/pingcap/tiflow | ||
|
||
# TODO: support more versions | ||
- name: Setup containers | ||
|
@@ -220,7 +220,7 @@ jobs: | |
working-directory: ${{ env.working-directory }} | ||
run: | | ||
cd ${{ env.working-directory }}/dm/tests/tiup/docker | ||
docker-compose exec -T control bash -c "cd /go/src/github.com/pingcap/ticdc && ./dm/tests/tiup/upgrade-tidb.sh before_upgrade nightly" | ||
docker-compose exec -T control bash -c "cd /go/src/github.com/pingcap/tiflow && ./dm/tests/tiup/upgrade-tidb.sh before_upgrade nightly" | ||
- name: Upgrade TiDB | ||
working-directory: ${{ env.working-directory }} | ||
|
@@ -233,7 +233,7 @@ jobs: | |
working-directory: ${{ env.working-directory }} | ||
run: | | ||
cd ${{ env.working-directory }}/dm/tests/tiup/docker | ||
docker-compose exec -T control bash -c "source /root/.profile && cd /go/src/github.com/pingcap/ticdc && ./dm/tests/tiup/upgrade-tidb.sh after_upgrade nightly" | ||
docker-compose exec -T control bash -c "source /root/.profile && cd /go/src/github.com/pingcap/tiflow && ./dm/tests/tiup/upgrade-tidb.sh after_upgrade nightly" | ||
# 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. | ||
|
@@ -243,7 +243,7 @@ jobs: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFY }} | ||
uses: Ilshidur/[email protected] | ||
with: | ||
args: "upgrade job failed, see https://github.com/pingcap/ticdc/actions/runs/{{ GITHUB_RUN_ID }}" | ||
args: "upgrade job failed, see https://github.com/pingcap/tiflow/actions/runs/{{ GITHUB_RUN_ID }}" | ||
|
||
# Debug via SSH if previous steps failed | ||
- name: Set up tmate session | ||
|