gpu-smoke #3
This file contains hidden or 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
| name: gpu-smoke | |
| # Request a real gfx1100 smoke on the Radeon Cloud box. This workflow runs on a | |
| # GitHub-hosted CPU runner ONLY to post a `pending` commit STATUS with context | |
| # `gpu-smoke (gfx1100)`; the box-side poller at src/hunyuan_ocr/ci/poller.py (a | |
| # user OAuth token can read AND write statuses, unlike check-runs which need a | |
| # GitHub App) picks it up, runs the smoke, and posts success/failure. workflow_dispatch | |
| # only (never on push/PR); a maintainer triggers it on main or a release tag. | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: "Ref (branch/tag/sha) to smoke-test" | |
| required: false | |
| default: "main" | |
| permissions: | |
| contents: read | |
| statuses: write | |
| jobs: | |
| request: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.inputs.ref || github.ref }} | |
| fetch-depth: 0 | |
| - id: sha | |
| run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" | |
| - name: post pending gpu-smoke commit status | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SHA: ${{ steps.sha.outputs.sha }} | |
| RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
| run: | | |
| set -euo pipefail | |
| gh api --method POST "repos/${GITHUB_REPOSITORY}/statuses/$SHA" \ | |
| -f state="pending" \ | |
| -f context="gpu-smoke (gfx1100)" \ | |
| -f "description=waiting for the gfx1100 runner on Radeon Cloud" \ | |
| -f "target_url=$RUN_URL" | |
| - name: summary | |
| run: echo "Requested gpu-smoke on ${{ steps.sha.outputs.sha }} — the box poller will post the result." |