1# Generated from xtask::workflows::run_cron_unit_evals
2# Rebuild with `cargo xtask workflows`.
3name: run_cron_unit_evals
4env:
5 CARGO_TERM_COLOR: always
6 CARGO_INCREMENTAL: '0'
7 RUST_BACKTRACE: '1'
8 ZED_CLIENT_CHECKSUM_SEED: ${{ secrets.ZED_CLIENT_CHECKSUM_SEED }}
9on:
10 schedule:
11 - cron: 47 1 * * 2
12 workflow_dispatch: {}
13jobs:
14 cron_unit_evals:
15 runs-on: namespace-profile-16x32-ubuntu-2204
16 steps:
17 - name: steps::checkout_repo
18 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
19 with:
20 clean: false
21 - name: steps::setup_cargo_config
22 run: |
23 mkdir -p ./../.cargo
24 cp ./.cargo/ci-config.toml ./../.cargo/config.toml
25 shell: bash -euxo pipefail {0}
26 - name: steps::cache_rust_dependencies_namespace
27 uses: namespacelabs/nscloud-cache-action@v1
28 with:
29 cache: rust
30 - name: steps::setup_linux
31 run: ./script/linux
32 shell: bash -euxo pipefail {0}
33 - name: steps::install_mold
34 run: ./script/install-mold
35 shell: bash -euxo pipefail {0}
36 - name: steps::download_wasi_sdk
37 run: ./script/download-wasi-sdk
38 shell: bash -euxo pipefail {0}
39 - name: steps::cargo_install_nextest
40 uses: taiki-e/install-action@nextest
41 - name: steps::clear_target_dir_if_large
42 run: ./script/clear-target-dir-if-larger-than 250
43 shell: bash -euxo pipefail {0}
44 - name: ./script/run-unit-evals
45 run: ./script/run-unit-evals
46 shell: bash -euxo pipefail {0}
47 env:
48 ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
49 OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
50 GOOGLE_AI_API_KEY: ${{ secrets.GOOGLE_AI_API_KEY }}
51 GOOGLE_CLOUD_PROJECT: ${{ secrets.GOOGLE_CLOUD_PROJECT }}
52 - name: steps::cleanup_cargo_config
53 if: always()
54 run: |
55 rm -rf ./../.cargo
56 shell: bash -euxo pipefail {0}
57 - name: run_agent_evals::cron_unit_evals::send_failure_to_slack
58 if: ${{ failure() }}
59 uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52
60 with:
61 method: chat.postMessage
62 token: ${{ secrets.SLACK_APP_ZED_UNIT_EVALS_BOT_TOKEN }}
63 payload: |
64 channel: C04UDRNNJFQ
65 text: "Unit Evals Failed: https://github.com/zed-industries/zed/actions/runs/${{ github.run_id }}"
66concurrency:
67 group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
68 cancel-in-progress: true