Files
3da69fdea9 chore: bump all workflow actions to Node 24 majors (#3078)
* chore: bump sync-docs actions to Node 24 majors

checkout v5 and repository-dispatch v4 are the Node 24 runtime bumps;
the v4/v3 majors target deprecated Node 20 and warn on every run.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore: bump all workflow actions to Node 24 majors

Every action pinned in .github/workflows targeted the deprecated
Node 20 runtime (or Node 12 in docker-push.yaml). Each moves to its
first Node 24 major to minimize behavior change:

- actions/checkout v3/v4 -> v5
- actions/upload-artifact v4 -> v5, download-artifact v4 -> v6
- actions/github-script v7 -> v8
- astral-sh/setup-uv v5 -> v7 (v6's cache/input breaks don't apply:
  we pass enable-cache + cache-dependency-glob explicitly)
- astral-sh/ruff-action v3 -> v4
- docker/login-action v1/v3 -> v4, setup-buildx v1/v3 -> v4,
  build-push v2/v5 -> v7
- crazy-max/ghaction-docker-meta v2 -> docker/metadata-action v6
  (successor repo, identical inputs/outputs)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore: pin ruff-action to v4.1.0

ruff-action v4+ publishes immutable releases only - there is no
floating v4 major tag to resolve.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-17 17:58:13 -07:00

107 lines
4.4 KiB
YAML

name: Nightly Tests
on:
# Allow to manually trigger the workflow
workflow_dispatch:
inputs:
test_file:
description: "Single nightly test file to run (e.g. tests/nightly/test_my_exp.py). Leave empty to run all."
required: false
default: ""
# Scheduled run at 3AM PST (11AM UTC)
schedule:
- cron: "0 11 * * *"
jobs:
discover-experiments:
name: Discover experiments
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.build-matrix.outputs.matrix }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
submodules: false
- name: Build matrix from nightly test files
id: build-matrix
run: |
# Find all nightly test files
files=$(ls tests/nightly/test_*.py)
# Filter to specific test file if provided in workflow_dispatch
if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ -n "${{ github.event.inputs.test_file }}" ]; then
# Filter to only the specified test file
filtered=$(echo "$files" | grep -F "${{ github.event.inputs.test_file }}" || true)
if [ -z "$filtered" ]; then
echo "Error: Test file '${{ github.event.inputs.test_file }}' not found"
exit 1
fi
files="$filtered"
fi
echo "Discovered nightly tests:"
echo "$files"
# Build JSON of the form: { "test_file": ["tests/nightly/test_a.py", ...] }
json=$(printf '%s\n' "$files" | jq -R . | jq -sc '{test_file: .}')
echo "matrix=$json" >> "$GITHUB_OUTPUT"
run-experiment:
name: Run experiment
needs: discover-experiments
runs-on: research-cluster
container:
image: pytorch/pytorch:2.10.0-cuda13.0-cudnn9-devel
# --shm-size: vLLM V1's DP engine/API-server IPC uses POSIX shm-backed
# MessageQueue (~160MB per queue); Docker's default 64MB /dev/shm triggers
# SIGBUS in DP engine cores on VLM runs (mm data overflows tmpfs).
options: --gpus all --shm-size=16g
timeout-minutes: 1440 # 24 hours
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.discover-experiments.outputs.matrix) }}
steps:
- name: Install Git
run: |
apt-get update
apt-get install -y git
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout repository
uses: actions/checkout@v5
with:
submodules: false
- name: Init public submodules
run: |
git config --global url."https://github.com/".insteadOf "git@github.com:"
git submodule update --init --recursive -- deps/verifiers deps/renderers deps/research-environments deps/pydantic-config
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: uv sync --all-extras --all-packages --locked
- name: Run experiment
env:
USERNAME_CI: CI_RUNNER
WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }}
# Set WANDB_MODE to online only if WANDB_API_KEY is available, otherwise set to offline
# This is to allow running tests on forks without WANDB_API_KEY
WANDB_MODE: ${{ secrets.WANDB_API_KEY && 'online' || 'offline' }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PRIME_API_KEY: ${{ secrets.PRIME_API_KEY }}
PRIME_BASE_URL: ${{ secrets.PRIME_BASE_URL }}
PRIME_TEAM_ID: ${{ secrets.PRIME_TEAM_ID }}
GITHUB_REF_NAME: ${{ github.ref_name }}
GITHUB_HEAD_REF: ${{ github.head_ref }}
run: |
echo "Running test file: ${{ matrix.test_file }}"
uv run pytest "${{ matrix.test_file }}"