Skip to content

Commit

Permalink
Enhancement: support debug workflow (#275)
Browse files Browse the repository at this point in the history
When the workflow fails to run, the execution will be blocked.
Developers can find the ssh command to log in to the runner machine
in the workflow running log. This is convenient for developers to debug.
  • Loading branch information
smartyhero authored Nov 3, 2023
1 parent 479d65f commit aabdd27
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 8 deletions.
41 changes: 33 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: cbdb pipeline
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
branches:
- main

env:
BUILD_TYPE: "debug"
FTS_MODE: "internal_fts"
Expand Down Expand Up @@ -32,6 +32,13 @@ jobs:
with:
name: cbdb-package
path: /tmp/server-build*
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: failure()
with:
limit-access-to-actor: true
limit-access-to-users: hashdata-build
wait-timeout-minutes: 60
icw-test:
needs: build
runs-on: [self-hosted, example]
Expand Down Expand Up @@ -62,7 +69,7 @@ jobs:
if: failure()
with:
name: icw-test
path: |
path: |
/code/gpdb_src/src/test/regress/regression.out
/code/gpdb_src/src/test/regress/regression.diffs
/code/gpdb_src/src/test/regress/results/
Expand All @@ -79,6 +86,13 @@ jobs:
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: failure()
with:
limit-access-to-actor: true
limit-access-to-users: hashdata-build
wait-timeout-minutes: 60
icw-orca-test:
needs: build
runs-on: [self-hosted, example]
Expand Down Expand Up @@ -109,7 +123,7 @@ jobs:
if: failure()
with:
name: icw-orca-test
path: |
path: |
/code/gpdb_src/src/test/regress/regression.out
/code/gpdb_src/src/test/regress/regression.diffs
/code/gpdb_src/src/test/regress/results/
Expand All @@ -126,6 +140,13 @@ jobs:
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: failure()
with:
limit-access-to-actor: true
limit-access-to-users: hashdata-build
wait-timeout-minutes: 60
icw-parallel-test:
needs: build
runs-on: [self-hosted, example]
Expand Down Expand Up @@ -156,7 +177,7 @@ jobs:
if: failure()
with:
name: icw-parallel-test
path: |
path: |
/code/gpdb_src/src/test/regress/regression.out
/code/gpdb_src/src/test/regress/regression.diffs
/code/gpdb_src/src/test/regress/results/
Expand All @@ -173,6 +194,10 @@ jobs:
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: failure()
with:
limit-access-to-actor: true
limit-access-to-users: hashdata-build
wait-timeout-minutes: 60
28 changes: 28 additions & 0 deletions .github/workflows/build_external_fts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
with:
name: cbdb-package
path: /tmp/server-build*
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: failure()
with:
limit-access-to-actor: true
limit-access-to-users: hashdata-build
wait-timeout-minutes: 60
icw-test:
needs: build
runs-on: [self-hosted, example]
Expand Down Expand Up @@ -79,6 +86,13 @@ jobs:
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: failure()
with:
limit-access-to-actor: true
limit-access-to-users: hashdata-build
wait-timeout-minutes: 60
icw-orca-test:
needs: build
runs-on: [self-hosted, example]
Expand Down Expand Up @@ -126,6 +140,13 @@ jobs:
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: failure()
with:
limit-access-to-actor: true
limit-access-to-users: hashdata-build
wait-timeout-minutes: 60
icw-parallel-test:
needs: build
runs-on: [self-hosted, example]
Expand Down Expand Up @@ -173,3 +194,10 @@ jobs:
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/code/gpdb_src/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: failure()
with:
limit-access-to-actor: true
limit-access-to-users: hashdata-build
wait-timeout-minutes: 60

0 comments on commit aabdd27

Please sign in to comment.