Skip to content
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

Add a CI step to avoid running the tmate session on the self-hosted machine #2529

Merged
merged 1 commit into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/gaia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ jobs:
with:
submodules: true

- name: Detect the tmate session
run: |
if grep -v "grep" .github/workflows/gaia.yml | grep "action-tmate"; then
echo 'WARNING!!!the self-hosted machine can not run tmate session, please debug it manually'
exit 1
fi

- uses: actions/cache@v3
with:
path: ~/.m2/repository
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/gss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
if: ${{ github.repository == 'alibaba/GraphScope' }}
steps:
- uses: actions/checkout@v3

- name: Detect the tmate session
run: |
if grep -v "grep" .github/workflows/gss.yml | grep "action-tmate"; then
echo 'WARNING!!!the self-hosted machine can not run tmate session, please debug it manually'
exit 1
fi

- uses: actions/cache@v3
with:
path: ~/.m2/repository
Expand Down Expand Up @@ -110,6 +118,13 @@ jobs:
with:
submodules: true

- name: Detect the tmate session
run: |
if grep -v "grep" .github/workflows/gss.yml | grep "action-tmate"; then
echo 'WARNING!!!the self-hosted machine can not run tmate session, please debug it manually'
exit 1
fi

- uses: actions/download-artifact@v3
with:
name: groot.tar.gz
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/k8s-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ jobs:
steps:
# For push it's necessary to checkout the code
- uses: actions/checkout@v3

- name: Detect the tmate session
run: |
if grep -v "grep" .github/workflows/k8s-ci.yml | grep "action-tmate"; then
echo 'WARNING!!!the self-hosted machine can not run tmate session, please debug it manually'
exit 1
fi

# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
id: filter
Expand Down Expand Up @@ -220,6 +228,7 @@ jobs:
if: ${{ github.repository == 'alibaba/GraphScope' }}
steps:
- uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: ~/.m2/repository
Expand Down Expand Up @@ -253,6 +262,7 @@ jobs:
if: ${{ github.repository == 'alibaba/GraphScope' }}
steps:
- uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: ~/.m2/repository
Expand Down Expand Up @@ -438,10 +448,6 @@ jobs:
--cov-report=term --exitfirst -s -vvv --log-cli-level=INFO \
./graphscope/tests/kubernetes

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: false

- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -594,6 +600,7 @@ jobs:
if: ${{ github.repository == 'alibaba/GraphScope' }}
steps:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3
with:
name: gie-experimental
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/local-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ jobs:
steps:
# For push it's necessary to checkout the code
- uses: actions/checkout@v3

- name: Detect the tmate session
run: |
# hack here: get all field of build-wheels which run on self-hosted machine
if sed -n '/self-hosted/,/mini-test/ p' .github/workflows/local-ci.yml | \
grep -v "grep" - | grep "action-tmate"; then
echo 'WARNING!!!the self-hosted machine can not run tmate session, please debug it manually'
exit 1
fi

# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
id: filter
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/pegasus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Detect the tmate session
run: |
if grep -v "grep" .github/workflows/pegasus.yml | grep "action-tmate"; then
echo 'WARNING!!!the self-hosted machine can not run tmate session, please debug it manually'
exit 1
fi

- name : Prepare Image
run: |
docker pull registry-vpc.cn-hongkong.aliyuncs.com/graphscope/pegasus-base:latest
Expand Down