From bcb72e08b7df2b5e1b97c49e9a716777ad91760c Mon Sep 17 00:00:00 2001 From: Sohil Kshirsagar Date: Tue, 17 Mar 2026 18:05:14 -0400 Subject: [PATCH 1/2] use github action --- .github/workflows/tusk-drift-api-tests.yml | 23 ++++++++++++++-------- .tusk/config.yaml | 4 ++++ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tusk-drift-api-tests.yml b/.github/workflows/tusk-drift-api-tests.yml index 8c9307f..0108820 100644 --- a/.github/workflows/tusk-drift-api-tests.yml +++ b/.github/workflows/tusk-drift-api-tests.yml @@ -8,22 +8,29 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2404 steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: "3.12" - name: Install dependencies run: pip install -r requirements.txt - - name: Install Tusk CLI - run: curl -fsSL https://cli.usetusk.ai/install.sh | sh + - name: Run Tusk Drift trace tests + uses: Use-Tusk/drift-action@v1 + with: + cache-key: ${{ runner.os }}-tusk-drift-${{ hashFiles('.tusk/config.yaml') }} + api-key: ${{ secrets.TUSK_API_KEY }} + run-command: tusk run -c -p --ci --validate-suite-if-default-branch --enable-service-logs - - name: Run Tusk Drift API tests - env: - TUSK_API_KEY: ${{ secrets.TUSK_DRIFT_API_KEY }} - run: tusk run --cloud --ci --print --validate-suite-if-default-branch --commit-sha=${{ github.sha }} --pr-number=${{ github.event.pull_request.number }} --branch=${{ github.event.pull_request.head.ref }} + - name: Print service logs + if: always() + run: | + for f in .tusk/logs/*.log; do + echo "=== $f ===" + cat "$f" + done diff --git a/.tusk/config.yaml b/.tusk/config.yaml index 7b6bd11..73d471d 100644 --- a/.tusk/config.yaml +++ b/.tusk/config.yaml @@ -25,3 +25,7 @@ tusk_api: # Only recording traces locally, API url not needed # tusk_api: # url: https://api.usetusk.ai + +replay: + sandbox: + mode: strict From 34d5b55fdc10be41c8bc3ca3edbe79b0e6738a3a Mon Sep 17 00:00:00 2001 From: Sohil Kshirsagar Date: Tue, 17 Mar 2026 18:09:39 -0400 Subject: [PATCH 2/2] wrong api key --- .github/workflows/tusk-drift-api-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tusk-drift-api-tests.yml b/.github/workflows/tusk-drift-api-tests.yml index 0108820..1c0a411 100644 --- a/.github/workflows/tusk-drift-api-tests.yml +++ b/.github/workflows/tusk-drift-api-tests.yml @@ -24,7 +24,7 @@ jobs: uses: Use-Tusk/drift-action@v1 with: cache-key: ${{ runner.os }}-tusk-drift-${{ hashFiles('.tusk/config.yaml') }} - api-key: ${{ secrets.TUSK_API_KEY }} + api-key: ${{ secrets.TUSK_DRIFT_API_KEY }} run-command: tusk run -c -p --ci --validate-suite-if-default-branch --enable-service-logs - name: Print service logs