|
| 1 | +name: S2-Pro CI (v1) |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [main] |
| 6 | + types: [labeled, synchronize, reopened, ready_for_review] |
| 7 | + workflow_dispatch: |
| 8 | + |
| 9 | +concurrency: |
| 10 | + group: s2pro-ci-v1-${{ github.event.pull_request.number || github.ref }} |
| 11 | + cancel-in-progress: true |
| 12 | + |
| 13 | +permissions: |
| 14 | + contents: read |
| 15 | + |
| 16 | +# DAG: |
| 17 | +# docs ──► stage-1-non-streaming ──┐ |
| 18 | +# └─► stage-2-streaming ──────┤ |
| 19 | +# └──► stage-3-consistency |
| 20 | + |
| 21 | +jobs: |
| 22 | + docs: |
| 23 | + name: docs |
| 24 | + # CI gate — runs on workflow_dispatch, or on non-draft PRs carrying the `run-ci` label. |
| 25 | + # Keep in sync with the same gate in test.yaml / test-examples.yaml / test-qwen3-omni-ci.yaml. |
| 26 | + if: >- |
| 27 | + github.event_name == 'workflow_dispatch' || |
| 28 | + (!github.event.pull_request.draft && |
| 29 | + contains(github.event.pull_request.labels.*.name, 'run-ci')) |
| 30 | + runs-on: [self-hosted] |
| 31 | + timeout-minutes: 10 |
| 32 | + container: |
| 33 | + image: frankleeeee/sglang-omni:dev |
| 34 | + options: --gpus all --rm -v /dev/shm:/dev/shm |
| 35 | + steps: |
| 36 | + - name: Checkout code |
| 37 | + uses: actions/checkout@v4 |
| 38 | + |
| 39 | + - uses: ./.github/actions/omni-setup |
| 40 | + with: |
| 41 | + venv-name: omni-s2pro |
| 42 | + install-deps: "true" |
| 43 | + |
| 44 | + - name: Run docs tests |
| 45 | + shell: bash |
| 46 | + run: | |
| 47 | + source omni-s2pro/bin/activate |
| 48 | + export PYTHONPATH=$PWD |
| 49 | + pytest tests/docs/s2pro/test_docs_tts_s2pro.py -v -s -x |
| 50 | + env: |
| 51 | + HF_ENDPOINT: https://hf-mirror.com |
| 52 | + SGLANG_OMNI_SERVER_VERSION: v1 |
| 53 | + |
| 54 | + - name: Post-stage cleanup |
| 55 | + if: always() |
| 56 | + uses: ./.github/actions/omni-post-stage |
| 57 | + with: |
| 58 | + stage-label: S2-Pro docs |
| 59 | + |
| 60 | + - name: Save cache |
| 61 | + if: always() |
| 62 | + shell: bash |
| 63 | + run: | |
| 64 | + if omni-s2pro/bin/python -c "import torch" 2>/dev/null; then |
| 65 | + rm -rf /github/home/omni-s2pro |
| 66 | + cp -p -r omni-s2pro /github/home/ |
| 67 | + else |
| 68 | + echo "::warning::Skipping cache save — venv appears corrupted (torch not importable)" |
| 69 | + fi |
| 70 | +
|
| 71 | + stage-1-non-streaming: |
| 72 | + name: stage 1 - non-streaming |
| 73 | + needs: docs |
| 74 | + runs-on: [self-hosted] |
| 75 | + timeout-minutes: 5 |
| 76 | + container: |
| 77 | + image: frankleeeee/sglang-omni:dev |
| 78 | + options: --gpus all --rm -v /dev/shm:/dev/shm |
| 79 | + steps: |
| 80 | + - name: Checkout code |
| 81 | + uses: actions/checkout@v4 |
| 82 | + |
| 83 | + - uses: ./.github/actions/omni-setup |
| 84 | + with: |
| 85 | + venv-name: omni-s2pro |
| 86 | + |
| 87 | + - name: Run benchmark stage |
| 88 | + shell: bash |
| 89 | + run: | |
| 90 | + source omni-s2pro/bin/activate |
| 91 | + export PYTHONPATH=$PWD |
| 92 | + pytest tests/test_model/test_s2pro_tts_ci.py -v -s -x --concurrency 8 --s2pro-stage s2pro-stage-1-nonstream |
| 93 | + env: |
| 94 | + HF_ENDPOINT: https://hf-mirror.com |
| 95 | + SGLANG_SEEDTTS50_DIR: /github/home/seedtts-50 |
| 96 | + S2PRO_STAGE_OUTPUT_ROOT: ${{ github.workspace }}/stage-results/nonstream |
| 97 | + SGLANG_OMNI_SERVER_VERSION: v1 |
| 98 | + |
| 99 | + - name: Post-stage cleanup |
| 100 | + if: always() |
| 101 | + uses: ./.github/actions/omni-post-stage |
| 102 | + with: |
| 103 | + stage-label: S2-Pro stage 1 (non-streaming) |
| 104 | + artifact-search-root: stage-results/nonstream |
| 105 | + artifact-path-globs: | |
| 106 | + */speed_results.json |
| 107 | + */wer_results.json |
| 108 | + artifact-upload-name: s2pro-stage-1-results |
| 109 | + artifact-upload-path: stage-results/nonstream |
| 110 | + artifact-if-no-files-found: error |
| 111 | + |
| 112 | + stage-2-streaming: |
| 113 | + name: stage 2 - streaming |
| 114 | + needs: docs |
| 115 | + runs-on: [self-hosted] |
| 116 | + timeout-minutes: 5 |
| 117 | + container: |
| 118 | + image: frankleeeee/sglang-omni:dev |
| 119 | + options: --gpus all --rm -v /dev/shm:/dev/shm |
| 120 | + steps: |
| 121 | + - name: Checkout code |
| 122 | + uses: actions/checkout@v4 |
| 123 | + |
| 124 | + - uses: ./.github/actions/omni-setup |
| 125 | + with: |
| 126 | + venv-name: omni-s2pro |
| 127 | + |
| 128 | + - name: Run benchmark stage |
| 129 | + shell: bash |
| 130 | + run: | |
| 131 | + source omni-s2pro/bin/activate |
| 132 | + export PYTHONPATH=$PWD |
| 133 | + pytest tests/test_model/test_s2pro_tts_ci.py -v -s -x --concurrency 8 --s2pro-stage s2pro-stage-2-stream |
| 134 | + env: |
| 135 | + HF_ENDPOINT: https://hf-mirror.com |
| 136 | + SGLANG_SEEDTTS50_DIR: /github/home/seedtts-50 |
| 137 | + S2PRO_STAGE_OUTPUT_ROOT: ${{ github.workspace }}/stage-results/stream |
| 138 | + SGLANG_OMNI_SERVER_VERSION: v1 |
| 139 | + |
| 140 | + - name: Post-stage cleanup |
| 141 | + if: always() |
| 142 | + uses: ./.github/actions/omni-post-stage |
| 143 | + with: |
| 144 | + stage-label: S2-Pro stage 2 (streaming) |
| 145 | + artifact-search-root: stage-results/stream |
| 146 | + artifact-path-globs: | |
| 147 | + */speed_results.json |
| 148 | + */wer_results.json |
| 149 | + artifact-upload-name: s2pro-stage-2-results |
| 150 | + artifact-upload-path: stage-results/stream |
| 151 | + artifact-if-no-files-found: error |
| 152 | + |
| 153 | + stage-3-consistency: |
| 154 | + name: stage 3 - consistency |
| 155 | + needs: [stage-1-non-streaming, stage-2-streaming] |
| 156 | + runs-on: [self-hosted] |
| 157 | + timeout-minutes: 5 |
| 158 | + container: |
| 159 | + image: frankleeeee/sglang-omni:dev |
| 160 | + options: --gpus all --rm -v /dev/shm:/dev/shm |
| 161 | + steps: |
| 162 | + - name: Checkout code |
| 163 | + uses: actions/checkout@v4 |
| 164 | + |
| 165 | + - uses: ./.github/actions/omni-setup |
| 166 | + with: |
| 167 | + venv-name: omni-s2pro |
| 168 | + |
| 169 | + - name: Download stage 1 artifact |
| 170 | + uses: actions/download-artifact@v4 |
| 171 | + with: |
| 172 | + name: s2pro-stage-1-results |
| 173 | + path: stage-artifacts/nonstream |
| 174 | + |
| 175 | + - name: Download stage 2 artifact |
| 176 | + uses: actions/download-artifact@v4 |
| 177 | + with: |
| 178 | + name: s2pro-stage-2-results |
| 179 | + path: stage-artifacts/stream |
| 180 | + |
| 181 | + - name: Run benchmark stage |
| 182 | + shell: bash |
| 183 | + run: | |
| 184 | + source omni-s2pro/bin/activate |
| 185 | + export PYTHONPATH=$PWD |
| 186 | + pytest tests/test_model/test_s2pro_tts_ci.py -v -s -x --concurrency 8 --s2pro-stage s2pro-stage-3-consistency |
| 187 | + env: |
| 188 | + HF_ENDPOINT: https://hf-mirror.com |
| 189 | + SGLANG_SEEDTTS50_DIR: /github/home/seedtts-50 |
| 190 | + S2PRO_STAGE1_SPEED_RESULTS_DIR: ${{ github.workspace }}/stage-artifacts/nonstream |
| 191 | + S2PRO_STAGE2_SPEED_RESULTS_DIR: ${{ github.workspace }}/stage-artifacts/stream |
| 192 | + SGLANG_OMNI_SERVER_VERSION: v1 |
| 193 | + |
| 194 | + - name: Post-stage cleanup |
| 195 | + if: always() |
| 196 | + uses: ./.github/actions/omni-post-stage |
| 197 | + with: |
| 198 | + stage-label: S2-Pro stage 3 (consistency inputs) |
| 199 | + artifact-search-root: stage-artifacts |
| 200 | + artifact-path-globs: | |
| 201 | + */speed_results.json |
| 202 | + */wer_results.json |
0 commit comments