|
| 1 | +name: nightly-CI |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: "17 9 * * *" |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +permissions: |
| 9 | + contents: read |
| 10 | + |
| 11 | +concurrency: |
| 12 | + group: nightly-ci-${{ github.ref }} |
| 13 | + cancel-in-progress: false |
| 14 | + |
| 15 | +jobs: |
| 16 | + ground-truth: |
| 17 | + name: ground truth shard ${{ matrix.shard_index }} |
| 18 | + runs-on: ubuntu-24.04 |
| 19 | + timeout-minutes: 360 |
| 20 | + strategy: |
| 21 | + fail-fast: false |
| 22 | + matrix: |
| 23 | + shard_index: |
| 24 | + - 0 |
| 25 | + - 1 |
| 26 | + - 2 |
| 27 | + - 3 |
| 28 | + - 4 |
| 29 | + - 5 |
| 30 | + - 6 |
| 31 | + - 7 |
| 32 | + - 8 |
| 33 | + - 9 |
| 34 | + - 10 |
| 35 | + - 11 |
| 36 | + - 12 |
| 37 | + - 13 |
| 38 | + - 14 |
| 39 | + - 15 |
| 40 | + - 16 |
| 41 | + - 17 |
| 42 | + - 18 |
| 43 | + - 19 |
| 44 | + env: |
| 45 | + BUNDLE_IMAGE: eval-cc-swe:nightly |
| 46 | + NUM_SHARDS: 20 |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@v4 |
| 49 | + |
| 50 | + - uses: astral-sh/setup-uv@v5 |
| 51 | + with: |
| 52 | + enable-cache: true |
| 53 | + |
| 54 | + - uses: docker/setup-buildx-action@v3 |
| 55 | + |
| 56 | + - uses: actions/cache@v4 |
| 57 | + with: |
| 58 | + path: ~/.cache/huggingface |
| 59 | + key: swebench-verified-hf-${{ runner.os }} |
| 60 | + |
| 61 | + - name: lock eval example |
| 62 | + working-directory: examples/eval-cc-swe |
| 63 | + run: uv lock |
| 64 | + |
| 65 | + - name: build eval bundle |
| 66 | + working-directory: examples/eval-cc-swe |
| 67 | + run: uv run agentix build . --name "$BUNDLE_IMAGE" --platform linux/amd64 |
| 68 | + |
| 69 | + - name: evaluate ground-truth patches |
| 70 | + working-directory: examples/eval-cc-swe |
| 71 | + env: |
| 72 | + SHARD_INDEX: ${{ matrix.shard_index }} |
| 73 | + run: | |
| 74 | + uv run python -m runner \ |
| 75 | + --ground-truth \ |
| 76 | + --fail-on-unresolved \ |
| 77 | + --bundle-image "$BUNDLE_IMAGE" \ |
| 78 | + --num-shards "$NUM_SHARDS" \ |
| 79 | + --shard-index "$SHARD_INDEX" \ |
| 80 | + --out "runs/ground-truth-shard-${SHARD_INDEX}" |
| 81 | +
|
| 82 | + - uses: actions/upload-artifact@v4 |
| 83 | + if: always() |
| 84 | + with: |
| 85 | + name: swebench-verified-ground-truth-${{ matrix.shard_index }} |
| 86 | + path: examples/eval-cc-swe/runs/ground-truth-shard-${{ matrix.shard_index }}/ |
0 commit comments