9201ef759e
CI / lint (push) Waiting to run
CI / mypy (push) Waiting to run
CI / docs (push) Waiting to run
CI / test on 3.10 (standard) (push) Waiting to run
CI / test on 3.11 (standard) (push) Waiting to run
CI / test on 3.12 (standard) (push) Waiting to run
CI / test on 3.10 (all-extras) (push) Waiting to run
CI / test on 3.11 (all-extras) (push) Waiting to run
CI / test on 3.12 (all-extras) (push) Waiting to run
CI / test on 3.13 (all-extras) (push) Waiting to run
CI / test on 3.14 (pydantic-evals) (push) Waiting to run
CI / test on 3.13 (standard) (push) Waiting to run
CI / test on 3.14 (standard) (push) Waiting to run
CI / test on 3.14 (all-extras) (push) Waiting to run
CI / test on 3.10 (pydantic-ai-slim) (push) Waiting to run
CI / test on 3.11 (pydantic-ai-slim) (push) Waiting to run
CI / test on 3.12 (pydantic-ai-slim) (push) Waiting to run
CI / test on 3.13 (pydantic-ai-slim) (push) Waiting to run
CI / test on 3.14 (pydantic-ai-slim) (push) Waiting to run
CI / test on 3.10 (pydantic-evals) (push) Waiting to run
CI / test on 3.11 (pydantic-evals) (push) Waiting to run
CI / test on 3.12 (pydantic-evals) (push) Waiting to run
CI / test on 3.13 (pydantic-evals) (push) Waiting to run
CI / test on 3.10 (lowest-versions) (push) Waiting to run
CI / test on 3.11 (lowest-versions) (push) Waiting to run
CI / test on 3.12 (lowest-versions) (push) Waiting to run
CI / test on 3.13 (lowest-versions) (push) Waiting to run
CI / test on 3.14 (lowest-versions) (push) Waiting to run
CI / test examples on 3.11 (push) Waiting to run
CI / test examples on 3.12 (push) Waiting to run
CI / test examples on 3.13 (push) Waiting to run
CI / test examples on 3.14 (push) Waiting to run
CI / coverage (push) Blocked by required conditions
CI / check (push) Blocked by required conditions
CI / deploy-docs (push) Blocked by required conditions
CI / deploy-docs-preview (push) Blocked by required conditions
CI / build release artifacts (push) Blocked by required conditions
CI / publish to PyPI (push) Blocked by required conditions
CI / Send tweet (push) Blocked by required conditions
Harness Compat / harness compat (push) Failing after 0s
27 lines
1.2 KiB
Bash
Executable File
27 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Pre-warm the harness's uv script environment on the OPEN network.
|
|
#
|
|
# Runs in each workflow's `pre-agent-steps` — after checkout + Setup uv but
|
|
# before the firewalled agent step — into the same uv dirs the in-sandbox
|
|
# launcher uses, so the agent run reuses the warm cache instead of depending
|
|
# on PyPI access through the AWF firewall.
|
|
#
|
|
# Strictly non-fatal: on any failure the sandboxed `uv run --script` (with
|
|
# the `python` allowlist in each workflow) still installs from scratch.
|
|
set -uo pipefail
|
|
export UV_CACHE_DIR=/tmp/gh-aw/uv/cache
|
|
export UV_PYTHON_INSTALL_DIR=/tmp/gh-aw/uv/python
|
|
export UV_TOOL_DIR=/tmp/gh-aw/uv/tool
|
|
export XDG_DATA_HOME=/tmp/gh-aw/uv/data
|
|
export XDG_CACHE_HOME=/tmp/gh-aw/uv/xdg-cache
|
|
mkdir -p "$UV_CACHE_DIR" "$UV_PYTHON_INSTALL_DIR" "$UV_TOOL_DIR" "$XDG_DATA_HOME" "$XDG_CACHE_HOME"
|
|
runner="${GITHUB_WORKSPACE}/.github/scripts/pydantic-ai-runner"
|
|
uv_bin="$(command -v uv 2>/dev/null || true)"
|
|
if [ -z "${uv_bin}" ]; then
|
|
echo "::warning::uv not found for pre-warm; agent will install under the firewall"
|
|
exit 0
|
|
fi
|
|
echo "[harness-prewarm] using uv=${uv_bin} cache=${UV_CACHE_DIR}"
|
|
"${uv_bin}" sync --script "${runner}" \
|
|
|| echo "::warning::harness uv pre-warm failed; agent will install under the firewall"
|