Skip to content

Commit 1bd446c

Browse files
committed
add debug workflow
Signed-off-by: Dan Huang <[email protected]>
1 parent ea06434 commit 1bd446c

File tree

2 files changed

+108
-13
lines changed

2 files changed

+108
-13
lines changed

.github/workflows/debug.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: debug workflow
2+
on:
3+
4+
push:
5+
branches:
6+
- infraupdate
7+
8+
# makes workflow manually callable
9+
workflow_dispatch:
10+
inputs:
11+
gitref:
12+
description: "git commit hash or branch name"
13+
type: string
14+
required: true
15+
test_label:
16+
description: "requested runner label"
17+
type: string
18+
required: true
19+
python:
20+
description: "python version, e.g. 3.10.12"
21+
type: string
22+
required: true
23+
timeout:
24+
description: "time limit for run in minutes "
25+
type: string
26+
required: true
27+
run_id:
28+
description: run id of the BUILD job that generated the assets
29+
type: string
30+
31+
jobs:
32+
33+
DEBUG:
34+
35+
name: DEBUG (${{ inputs.python}}, ${{ inputs.test_label }})
36+
runs-on: ${{ inputs.test_label || 'gcp-k8s-vllm-util' }}
37+
timeout-minutes: ${{ fromJson('60') }}
38+
permissions:
39+
contents: 'read'
40+
id-token: 'write'
41+
env:
42+
HF_HOME: /model-cache
43+
HF_TOKEN: ${{ secrets.HF_RED_HAT_READ_ONLY }}
44+
PYTHON_VERSION: ${{ inputs.python || '3.12' }}
45+
GITREF: ${{ inputs.gitref || 'main' }}
46+
RUNID: ${{ inputs.run_id || '18690758970' }}
47+
48+
steps:
49+
50+
- name: set python
51+
id: set_python
52+
uses: actions/setup-python@v6
53+
with:
54+
python-version: ${{ env.PYTHON_VERSION }}
55+
56+
- name: verify python
57+
id: verify_python
58+
uses: neuralmagic/nm-actions/actions/[email protected]
59+
with:
60+
python-version: ${{ env.PYTHON_VERSION }}
61+
62+
- name: install system dependencies
63+
run: |-
64+
sudo apt-get update
65+
sudo apt-get install -y --no-install-recommends g++ gcc make
66+
shell: bash
67+
68+
- name: checkout code
69+
id: checkout
70+
uses: actions/checkout@v4
71+
with:
72+
ref: ${{ env.GITREF }}
73+
74+
- name: create virtualenv
75+
id: create_venv
76+
uses: neuralmagic/nm-actions/actions/[email protected]
77+
with:
78+
venv: TEST
79+
80+
# GCP
81+
- name: 'Authenticate to Google Cloud'
82+
id: auth
83+
uses: google-github-actions/[email protected]
84+
with:
85+
project_id: ${{ secrets.GCP_VLLM_PROJECT }}
86+
workload_identity_provider: ${{ secrets.GCP_VLLM_PROJECT_WORKLOAD_IDENTITY_PROVIDER }}
87+
service_account: ${{ secrets.GCP_VLLM_PROJECT_GHA_SA }}
88+
89+
- name: 'Set up Cloud SDK'
90+
uses: 'google-github-actions/setup-gcloud@v2'
91+
with:
92+
version: '>= 473.0.0'
93+
94+
- name: download assets
95+
if: ${{ env.RUNID != '' }}
96+
uses: neuralmagic/nm-actions/actions/[email protected]
97+
with:
98+
bucket_source: ${{ secrets.GCP_VLLM_PROJECT_BUILD_ASSETS }}
99+
run_id: ${{ env.RUNID }}
100+
101+
- name: Wait for debugging
102+
run: |
103+
echo "⏳ Waiting forever until the job times out..."
104+
while true; do
105+
sleep 60s
106+
done

.github/workflows/trigger-all.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ on:
1111
description: "workflow category, must be 'NIGHTLY' or 'RELEASE' (default: NIGHTLY)"
1212
type: string
1313
default: NIGHTLY
14-
push_to_pypi:
15-
description: "when set and tests pass, then '.whl' & '.tar.gz' will be pushed to public pypi"
16-
type: boolean
17-
default: false
1814
gitref:
1915
description: "git commit hash or tag name"
2016
type: string
@@ -29,10 +25,6 @@ on:
2925
- NIGHTLY
3026
- RELEASE
3127
default: NIGHTLY
32-
push_to_pypi:
33-
description: "when set and tests pass, then '.whl' & '.tar.gz' will be pushed to public pypi"
34-
type: boolean
35-
default: false
3628
gitref:
3729
description: "git commit hash or tag name"
3830
type: string
@@ -46,9 +38,6 @@ jobs:
4638
with:
4739
wf_category: ${{ inputs.wf_category || 'NIGHTLY' }}
4840
gitref: ${{ inputs.gitref || 'main' }}
49-
push_to_pypi: ${{ (github.event.schedule == '30 0 * * *') || inputs.push_to_pypi || false }}
50-
test_configs: '[{"python":"3.11.4","label":"gcp-k8s-vllm-util","timeout":"40","code_coverage":true},
51-
{"python":"3.10.12","label":"gcp-k8s-vllm-util","timeout":"40"},
52-
{"python":"3.13","label":"gcp-k8s-vllm-l4-solo","timeout":"40"},
53-
{"python":"3.12.6","label":"gcp-k8s-vllm-l4-duo","timeout":"40"}]'
41+
test_configs: '[{"python":"3.13,"label":"ubuntu-latest","timeout":"40","code_coverage":true},
42+
{"python":"3.10.12","label":"ubuntu-22.04","timeout":"40"}]'
5443
secrets: inherit

0 commit comments

Comments
 (0)