|
| 1 | +name: Solheim provider smoke |
| 2 | + |
| 3 | +# Project A: infrastructure validation only. No PR diff, review judgment, router, |
| 4 | +# deterministic review rule, or GitHub posting. Only trusted main-branch code runs. |
| 5 | +on: |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +permissions: |
| 9 | + contents: read |
| 10 | + |
| 11 | +concurrency: |
| 12 | + group: solheim-provider-smoke |
| 13 | + cancel-in-progress: false |
| 14 | + |
| 15 | +jobs: |
| 16 | + smoke: |
| 17 | + if: github.ref == 'refs/heads/main' |
| 18 | + runs-on: ubuntu-24.04 |
| 19 | + timeout-minutes: 25 |
| 20 | + # Retain the existing protected environment and secret names for compatibility. |
| 21 | + # The environment requires reviewer approval, matching the deploy |
| 22 | + # environment. The job guard above restricts runs to main, so the |
| 23 | + # secret is released only for an approved main run. See |
| 24 | + # scripts/solheim-smoke/README.md. |
| 25 | + environment: final-vscode-review-smoke |
| 26 | + steps: |
| 27 | + - name: Checkout exact trusted main revision |
| 28 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 29 | + with: |
| 30 | + ref: ${{ github.sha }} |
| 31 | + persist-credentials: false |
| 32 | + |
| 33 | + - name: Setup Node.js and pnpm |
| 34 | + uses: ./.github/actions/setup-node-pnpm |
| 35 | + with: |
| 36 | + install-args: "--frozen-lockfile" |
| 37 | + |
| 38 | + - name: Build trusted extension and webview |
| 39 | + run: | |
| 40 | + pnpm -w bundle |
| 41 | + pnpm --filter @roo-code/vscode-webview build |
| 42 | +
|
| 43 | + - name: Install display dependencies |
| 44 | + run: sudo apt-get update && sudo apt-get install -y xvfb ffmpeg libasound2t64 |
| 45 | + |
| 46 | + - name: Run Solheim provider smoke |
| 47 | + id: provider |
| 48 | + timeout-minutes: 8 |
| 49 | + env: |
| 50 | + SOLHEIM_API_KEY: ${{ secrets.FINAL_SMOKE_OPENAI_API_KEY }} |
| 51 | + SOLHEIM_SMOKE_OUT_DIR: ${{ runner.temp }}/solheim-provider-smoke |
| 52 | + run: xvfb-run -a -s "-screen 0 1280x720x24 -nolisten tcp" bash scripts/solheim-smoke/record.sh |
| 53 | + |
| 54 | + # The recorder publishes smoke.mp4 only through an atomic rename |
| 55 | + # after a nonempty check and ffprobe validation, so the published |
| 56 | + # final is the commit marker: present and nonempty means complete. |
| 57 | + # There is no separate persisted status marker. |
| 58 | + - name: Verify recording integrity |
| 59 | + if: ${{ !cancelled() && (steps.provider.outcome == 'success' || steps.provider.outcome == 'failure') }} |
| 60 | + env: |
| 61 | + SOLHEIM_SMOKE_OUT_DIR: ${{ runner.temp }}/solheim-provider-smoke |
| 62 | + run: | |
| 63 | + test -s "$SOLHEIM_SMOKE_OUT_DIR/smoke.mp4" |
| 64 | + echo "Recording published and nonempty: $SOLHEIM_SMOKE_OUT_DIR/smoke.mp4" |
| 65 | +
|
| 66 | + # Verdict and trace evidence must survive even when the recording |
| 67 | + # is missing, so metadata and video are uploaded separately. |
| 68 | + - name: Upload provider smoke verdict and trace |
| 69 | + if: ${{ !cancelled() && (steps.provider.outcome == 'success' || steps.provider.outcome == 'failure') }} |
| 70 | + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
| 71 | + with: |
| 72 | + name: solheim-provider-smoke-${{ github.sha }} |
| 73 | + path: | |
| 74 | + ${{ runner.temp }}/solheim-provider-smoke/verdict.json |
| 75 | + ${{ runner.temp }}/solheim-provider-smoke/trace.json |
| 76 | + if-no-files-found: error |
| 77 | + retention-days: 7 |
| 78 | + |
| 79 | + # Exact validated final path only; the recorder leaves no temporary |
| 80 | + # file behind, so a failed upload here reports the missing recording. |
| 81 | + - name: Upload provider smoke recording |
| 82 | + if: ${{ !cancelled() && (steps.provider.outcome == 'success' || steps.provider.outcome == 'failure') }} |
| 83 | + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
| 84 | + with: |
| 85 | + name: solheim-provider-smoke-recording-${{ github.sha }} |
| 86 | + path: ${{ runner.temp }}/solheim-provider-smoke/smoke.mp4 |
| 87 | + if-no-files-found: error |
| 88 | + retention-days: 7 |
0 commit comments