name: Smoke Tests # Temporarily disabled: this workflow built and linked the legacy CLI # (`cd cli && npm install && npm run build && npm link`) before running the # smoke-test scenarios. The legacy CLI publish chain has been retired in # favor of the SDK CLI at `sdk/apps/cli/`. The scenarios under # `evals/smoke-tests/scenarios/` are CLI-agnostic and should be re-enabled # once the build step is repointed at the new SDK CLI. Until then, only # manual `workflow_dispatch` runs are accepted (and will fail in their # current form). on: workflow_dispatch: permissions: contents: read concurrency: group: smoke-tests-${{ github.ref }} cancel-in-progress: true jobs: smoke-tests: name: Smoke Tests runs-on: ubuntu-latest timeout-minutes: 15 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '22' cache: 'npm' - name: Install dependencies run: npm ci - name: Build and install CLI run: | npm run protos cd cli && npm install && npm run build && npm link echo "$(npm config get prefix)/bin" >> $GITHUB_PATH - name: Verify CLI run: cline --version - name: Run smoke tests env: CLINE_API_KEY: ${{ secrets.CLINE_API_KEY }} run: | cline auth -p cline -k "$CLINE_API_KEY" -m "anthropic/claude-sonnet-4.5" max_attempts=3 for attempt in $(seq 1 $max_attempts); do echo "::group::Attempt $attempt of $max_attempts" if npx tsx evals/smoke-tests/run-smoke-tests.ts --trials 1 --parallel; then echo "::endgroup::" echo "Smoke tests passed on attempt $attempt" exit 0 fi echo "::endgroup::" if [ $attempt -lt $max_attempts ]; then echo "::warning::Smoke tests failed on attempt $attempt, retrying..." sleep 10 fi done echo "::error::Smoke tests failed after $max_attempts attempts" exit 1 - name: Generate summary if: always() run: cat evals/smoke-tests/results/latest/summary.md >> $GITHUB_STEP_SUMMARY - name: Upload results uses: actions/upload-artifact@v4 if: always() with: name: smoke-test-results-${{ github.run_id }} path: evals/smoke-tests/results/latest/ retention-days: 30