feat: durable, reconnectable sandboxed agent runs #3467
Workflow file for this run
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: PR | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup Tools | |
| uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main | |
| - name: Get base and head commits for `nx affected` | |
| uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0 | |
| with: | |
| main-branch-name: main | |
| - name: Run Checks | |
| run: pnpm run test:pr | |
| env: | |
| # The runner image ships a running Docker daemon, and the | |
| # `@tanstack/ai-sandbox-docker` suites are the ONLY matrix in this repo | |
| # that exercises BusyBox 1.37 (`alpine:3`) — the authority on the | |
| # journal age gate's portability, since the local-process provider | |
| # execs through GNU-flavoured shells. `it.skip` always exits 0, so | |
| # without this a runner-image change that removed Docker would silently | |
| # demote that authority to a `↓` line and still report green. Set here, | |
| # an unreachable daemon fails the run instead. See | |
| # `packages/ai-sandbox-docker/tests/docker-daemon.ts`. | |
| REQUIRE_DOCKER: '1' | |
| preview: | |
| name: Preview | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Tools | |
| uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main | |
| - name: Build Packages | |
| run: pnpm run build:all | |
| - name: Publish Previews | |
| run: pnpx pkg-pr-new publish --pnpm './packages/*' | |
| version-preview: | |
| name: Version Preview | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Tools | |
| uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main | |
| - name: Changeset Preview | |
| uses: TanStack/config/.github/changeset-preview@190f659075ff0845850e330883eb26d7ffd0671f # main |