Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

ci: speed up GitHub Actions — path filters, caching, timeouts, version upgrades (#620)

Patrick A53d23422918c
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index b5d4ce218..1841b69ac 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -21,4 +21,4 @@ FROM mcr.microsoft.com/devcontainers/python:1-${VARIANT}
# doesn't need yarn.
RUN rm -f /etc/apt/sources.list.d/yarn.list
-RUN python -m pip install --no-cache-dir uv==0.6.17 'maturin>=1.5,<2.0'
+RUN python -m pip install --no-cache-dir 'uv>=0.7.0' 'maturin>=1.5,<2.0'
diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh
index 92089f704..9ee515615 100644
--- a/.devcontainer/post-create.sh
+++ b/.devcontainer/post-create.sh
@@ -64,6 +64,7 @@ EOF
sudo mkdir -p "$project_env_root" "$cache_root/uv" "$cache_root/pip" "$cache_root/pre-commit"
sudo chown -R "$(id -u):$(id -g)" "$project_env_root" "$cache_root"
+export UV_SKIP_WHEEL_FILENAME_CHECK=1
uv sync --frozen "${sync_extras[@]}" --link-mode copy
if configure_worktree_git_env; then
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a2767c556..aaf9a1e00 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -34,13 +34,14 @@ env:
jobs:
changes:
runs-on: ubuntu-latest
+ timeout-minutes: 5
outputs:
code: ${{ steps.filter.outputs.code }}
e2e: ${{ steps.filter.outputs.e2e }}
workflows: ${{ steps.filter.outputs.workflows }}
steps:
- - uses: actions/checkout@v4
- - uses: dorny/paths-filter@v3
+ - uses: actions/checkout@v6
+ - uses: dorny/paths-filter@v4
id: filter
with:
filters: |
@@ -69,11 +70,18 @@ jobs:
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
+ timeout-minutes: 10
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: ${{ env.PY_VERSION }}
+ - name: Cache pip
+ uses: actions/cache@v5
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-lint-${{ hashFiles('pyproject.toml') }}
+ restore-keys: ${{ runner.os }}-pip-lint-
- run: python -m pip install --upgrade pip ruff mypy
- name: ruff check
run: ruff check .
@@ -86,9 +94,10 @@ jobs:
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
+ timeout-minutes: 30
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: ${{ env.PY_VERSION }}
- uses: dtolnay/[email protected]
@@ -99,7 +108,7 @@ jobs:
run: |
python -m pip install --upgrade pip maturin
maturin build --profile ci --out dist --interpreter "python${PY_VERSION}"
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
with:
name: headroom-wheel
path: dist/*.whl
@@ -109,13 +118,14 @@ jobs:
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
+ timeout-minutes: 20
steps:
- - uses: actions/setup-python@v5
+ - uses: actions/setup-python@v6
with:
python-version: ${{ env.PY_VERSION }}
- name: Cache HuggingFace model
id: hfcache
- uses: actions/cache@v4
+ uses: actions/cache@v5
with:
path: ~/.cache/huggingface
key: ${{ runner.os }}-models-allMiniLM-v2
@@ -136,6 +146,7 @@ jobs:
needs: [changes, build-wheel, prefetch-model]
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
+ timeout-minutes: 30
strategy:
fail-fast: false
matrix:
@@ -144,26 +155,26 @@ jobs:
HF_HUB_OFFLINE: "1"
TRANSFORMERS_OFFLINE: "1"
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: ${{ env.PY_VERSION }}
- name: Cache pip
- uses: actions/cache@v4
+ uses: actions/cache@v5
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ env.PY_VERSION }}-${{ hashFiles('pyproject.toml') }}
restore-keys: ${{ runner.os }}-pip-${{ env.PY_VERSION }}-
- name: Restore HuggingFace model cache (warmed by prefetch-model)
- uses: actions/cache@v4
+ uses: actions/cache@v5
with:
path: ~/.cache/huggingface
key: ${{ runner.os }}-models-allMiniLM-v2
- name: Download prebuilt wheel
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
name: headroom-wheel
path: dist
@@ -190,26 +201,27 @@ jobs:
needs: [changes, build-wheel]
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
+ timeout-minutes: 30
env:
FASTEMBED_CACHE_PATH: ${{ github.workspace }}/.fastembed-cache
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: ${{ env.PY_VERSION }}
- name: Cache pip
- uses: actions/cache@v4
+ uses: actions/cache@v5
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-extras-${{ hashFiles('pyproject.toml') }}
restore-keys: ${{ runner.os }}-pip-extras-
- name: Cache fastembed model
- uses: actions/cache@v4
+ uses: actions/cache@v5
with:
path: ${{ github.workspace }}/.fastembed-cache
key: ${{ runner.os }}-fastembed-bge-small-v1
- name: Download prebuilt wheel
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
name: headroom-wheel
path: dist
@@ -244,13 +256,14 @@ jobs:
needs: [changes, build-wheel]
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
+ timeout-minutes: 20
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: ${{ env.PY_VERSION }}
- name: Download prebuilt wheel
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
name: headroom-wheel
path: dist
@@ -268,11 +281,12 @@ jobs:
commitlint:
if: github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'Merge pull request ')
runs-on: ubuntu-latest
+ timeout-minutes: 5
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
- - uses: wagoid/commitlint-github-action@v5
+ - uses: wagoid/commitlint-github-action@v6
with:
configFile: .commitlintrc.json
@@ -280,11 +294,18 @@ jobs:
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
+ timeout-minutes: 30
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: "3.11"
+ - name: Cache pip
+ uses: actions/cache@v5
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-build-${{ hashFiles('pyproject.toml') }}
+ restore-keys: ${{ runner.os }}-pip-build-
- uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
with:
@@ -306,13 +327,29 @@ jobs:
needs: changes
if: needs.changes.outputs.workflows == 'true'
runs-on: ubuntu-latest
+ timeout-minutes: 10
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
+ - name: Cache actionlint + act
+ id: tools-cache
+ uses: actions/cache@v5
+ with:
+ path: |
+ /usr/local/bin/actionlint
+ /usr/local/bin/act
+ # Key off the workflow file itself: when someone updates the
+ # download URLs to a newer tool version, the hash changes and
+ # the cache busts automatically.
+ key: ${{ runner.os }}-ci-tools-${{ hashFiles('.github/workflows/ci.yml') }}
+
- name: Install actionlint
+ if: steps.tools-cache.outputs.cache-hit != 'true'
run: |
curl -fsSL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash | bash
sudo mv ./actionlint /usr/local/bin/actionlint
+
- name: Install act
+ if: steps.tools-cache.outputs.cache-hit != 'true'
run: |
curl -fsSL https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
sudo install ./bin/act /usr/local/bin/act
@@ -323,9 +360,10 @@ jobs:
needs: changes
if: needs.changes.outputs.e2e == 'true'
runs-on: ubuntu-latest
+ timeout-minutes: 45
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Build local Headroom image
@@ -366,9 +404,10 @@ jobs:
needs: changes
if: needs.changes.outputs.e2e == 'true'
runs-on: windows-latest
+ timeout-minutes: 20
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install test dependencies
@@ -382,9 +421,10 @@ jobs:
needs: changes
if: needs.changes.outputs.e2e == 'true'
runs-on: macos-latest
+ timeout-minutes: 20
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install bash and test dependencies
diff --git a/.github/workflows/devcontainers.yml b/.github/workflows/devcontainers.yml
index 4c75c29cc..ea7bce257 100644
--- a/.github/workflows/devcontainers.yml
+++ b/.github/workflows/devcontainers.yml
@@ -30,7 +30,7 @@ jobs:
config: .devcontainer/memory-stack/devcontainer.json
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
# The memory-stack devcontainer brings up Neo4j + Postgres +
# Redis + Qdrant on top of the Docker base. PR #495 surfaced
@@ -57,12 +57,12 @@ jobs:
swap-storage: false
- name: Set up Node
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v6
with:
node-version: "20"
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
+ uses: docker/setup-buildx-action@v4
- name: Install Dev Container CLI
run: npm install -g @devcontainers/[email protected]
@@ -83,18 +83,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Create linked worktree
run: git worktree add "$RUNNER_TEMP/headroom-worktree" HEAD
- name: Set up Node
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v6
with:
node-version: "20"
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
+ uses: docker/setup-buildx-action@v4
- name: Install Dev Container CLI
run: npm install -g @devcontainers/[email protected]
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index a56d60898..505fecb68 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -44,6 +44,7 @@ jobs:
# final multi-arch tagged manifest, which is what users pull by tag.
docker-build:
runs-on: ${{ matrix.arch.runs_on }}
+ timeout-minutes: 75
strategy:
fail-fast: false
matrix:
@@ -83,7 +84,7 @@ jobs:
- name: Set up Python
if: steps.version.outputs.version != ''
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
python-version: "3.12"
@@ -166,7 +167,7 @@ jobs:
touch "${RUNNER_TEMP}/digests/${digest#sha256:}"
- name: Upload digest marker
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
# Variant + arch in the artifact name so the manifest job can
# download with `pattern: digests-<variant>-*` to gather all
@@ -185,6 +186,7 @@ jobs:
docker-manifest:
needs: docker-build
runs-on: ubuntu-24.04
+ timeout-minutes: 20
strategy:
fail-fast: false
matrix:
@@ -236,7 +238,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download per-arch digests for this variant
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
pattern: digests-${{ matrix.variant.name || 'root' }}-*
path: ${{ runner.temp }}/digests
@@ -315,7 +317,7 @@ jobs:
- name: Install cosign
if: steps.manifest.outputs.index_digest != ''
- uses: sigstore/cosign-installer@v3
+ uses: sigstore/cosign-installer@v4
- name: Sign multi-arch index manifest with cosign
if: steps.manifest.outputs.index_digest != ''
@@ -351,6 +353,7 @@ jobs:
# at the top instead of whichever variant happened to finish last.
needs: docker-manifest
runs-on: ubuntu-24.04
+ timeout-minutes: 10
steps:
- name: Normalize image name
id: image-name
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 602859474..4a6c7b9cb 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -17,15 +17,22 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
python-version: '3.11'
+ - name: Cache pip
+ uses: actions/cache@v5
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-docs-${{ hashFiles('mkdocs.yml') }}
+ restore-keys: ${{ runner.os }}-pip-docs-
+
- name: Install dependencies
run: pip install mkdocs-material
diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml
index 4fc3ad331..20e24a6e4 100644
--- a/.github/workflows/eval.yml
+++ b/.github/workflows/eval.yml
@@ -15,12 +15,20 @@ jobs:
smoke-test:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
+ timeout-minutes: 30
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: "3.11"
+ - name: Cache pip
+ uses: actions/cache@v5
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-eval-${{ hashFiles('pyproject.toml') }}
+ restore-keys: ${{ runner.os }}-pip-eval-
+
# `pip install -e .` invokes maturin (declared in pyproject.toml's
# build-system) which calls cargo to compile the Rust extension.
- name: Install Rust toolchain
@@ -66,13 +74,20 @@ jobs:
weekly-suite:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
- timeout-minutes: 60
+ timeout-minutes: 90
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: "3.11"
+ - name: Cache pip
+ uses: actions/cache@v5
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-eval-${{ hashFiles('pyproject.toml') }}
+ restore-keys: ${{ runner.os }}-pip-eval-
+
- name: Install Rust toolchain
uses: dtolnay/[email protected]
@@ -102,7 +117,7 @@ jobs:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
- name: Upload results
if: always()
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: eval-results-${{ github.run_number }}
path: eval_results/
diff --git a/.github/workflows/init-e2e.yml b/.github/workflows/init-e2e.yml
index 607cbb33e..a24de9578 100644
--- a/.github/workflows/init-e2e.yml
+++ b/.github/workflows/init-e2e.yml
@@ -3,17 +3,37 @@ name: Init E2E
on:
pull_request:
branches: [main]
+ paths:
+ - 'headroom/**'
+ - 'crates/**'
+ - 'docker/**'
+ - 'Dockerfile'
+ - 'e2e/**'
+ - 'scripts/install*'
+ - 'pyproject.toml'
+ - 'Cargo.toml'
+ - 'Cargo.lock'
+ - 'rust-toolchain.toml'
+ - 'uv.lock'
+ - '.claude-plugin'
+ - '.github/plugin/**'
+ - 'plugins/headroom-agent-hooks/**'
+ - '.github/workflows/init-e2e.yml'
push:
branches: [main]
workflow_dispatch:
+concurrency:
+ group: init-e2e-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
jobs:
docker-init-e2e:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Build init e2e image
run: docker build -f e2e/init/Dockerfile -t headroom-init-e2e .
diff --git a/.github/workflows/init-native-e2e.yml b/.github/workflows/init-native-e2e.yml
index 3b90ebf33..652a615f0 100644
--- a/.github/workflows/init-native-e2e.yml
+++ b/.github/workflows/init-native-e2e.yml
@@ -55,7 +55,7 @@ jobs:
- target: openclaw
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Setup (shim=${{ matrix.target }})
uses: ./.github/actions/headroom-e2e-setup
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 4ed4a869c..a08f427c8 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -17,10 +17,10 @@ jobs:
contents: write # For uploading release assets
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
python-version: "3.11"
@@ -49,7 +49,7 @@ jobs:
--outfile dist/headroom-sbom.cdx.json
- name: Upload SBOM to release
- uses: softprops/action-gh-release@v2
+ uses: softprops/action-gh-release@v3
with:
files: dist/headroom-sbom.cdx.json
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml
index 2545f5043..99dce459e 100644
--- a/.github/workflows/release-please.yml
+++ b/.github/workflows/release-please.yml
@@ -42,7 +42,7 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- - uses: googleapis/release-please-action@v4
+ - uses: googleapis/release-please-action@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .release-please-config.json
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5dcd8218b..ef78547d2 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -84,7 +84,7 @@ jobs:
bump: ${{ steps.ver.outputs.bump }}
previous_tag: ${{ steps.ver.outputs.previous_tag }}
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -126,17 +126,17 @@ jobs:
permissions:
contents: read
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Set up Node.js
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v6
with:
node-version: "20"
@@ -179,7 +179,7 @@ jobs:
shell: bash
- name: Upload changelog via action
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: changelog
path: /tmp/changelog-backup.md
@@ -203,7 +203,7 @@ jobs:
npm pack --pack-destination ../../release-assets
- name: Upload release assets artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: release-assets
path: release-assets/
@@ -261,12 +261,12 @@ jobs:
manylinux: ""
runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
python-version: "3.11"
@@ -393,7 +393,7 @@ jobs:
done
- name: Upload wheels artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: wheels-${{ matrix.os }}-${{ matrix.target }}
path: dist/*
@@ -407,14 +407,14 @@ jobs:
contents: read
steps:
- name: Download all wheel artifacts
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
pattern: wheels-*
path: wheels-tmp/
merge-multiple: true
- name: Download release assets
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
name: release-assets
path: release-assets/
@@ -429,13 +429,13 @@ jobs:
ls -la release-assets/
- name: Upload merged dist artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: dist
path: dist/
- name: Upload merged release-assets artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: release-assets-merged
path: release-assets/
@@ -502,7 +502,7 @@ jobs:
steps:
- name: Download wheels artifact for this target
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
name: ${{ matrix.wheel_artifact }}
path: dist/
@@ -660,7 +660,7 @@ jobs:
id-token: write # Required for OIDC trusted publishing
steps:
- name: Download merged dist artifact (sdist + cross-platform wheels)
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
name: dist
path: dist/
@@ -687,12 +687,12 @@ jobs:
permissions:
contents: read
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Node.js
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v6
with:
node-version: "20"
registry-url: ${{ env.NPM_REGISTRY_URL }}
@@ -743,7 +743,7 @@ jobs:
contents: read
packages: write
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -754,7 +754,7 @@ jobs:
printf 'scope=%s\n' "$scope" >> "$GITHUB_OUTPUT"
- name: Set up Node.js for GitHub Package Registry
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v6
with:
node-version: "20"
registry-url: ${{ env.GITHUB_PACKAGES_REGISTRY_URL }}
@@ -875,18 +875,18 @@ jobs:
permissions:
contents: write
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Download changelog artifact
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
name: changelog
path: /tmp
- name: Download merged release assets (npm tarballs + wheels + sdist)
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@v8
with:
name: release-assets-merged
path: release-assets
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 73cda3cb9..2c2857133 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -39,8 +39,9 @@ jobs:
test:
name: test (ubuntu)
runs-on: ubuntu-latest
+ timeout-minutes: 30
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Install stable toolchain
# Pin action code to @stable (latest fixes), toolchain version
# via input. The @1.95.0 ref shipped action code that errors on
@@ -63,6 +64,7 @@ jobs:
wheels:
name: wheels (${{ matrix.target }})
runs-on: ${{ matrix.os }}
+ timeout-minutes: 45
strategy:
fail-fast: false
matrix:
@@ -82,8 +84,8 @@ jobs:
# locally (the toolchain works; only prebuilt distribution skips
# this target).
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+ - uses: actions/checkout@v6
+ - uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: "Build wheel (single-wheel architecture builds headroom-ai)"
@@ -97,7 +99,7 @@ jobs:
args: --release --out dist
target: ${{ matrix.maturin-target }}
- name: Upload wheel artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: wheels-${{ matrix.target }}
path: dist/*.whl
@@ -105,16 +107,17 @@ jobs:
audit:
name: audit
runs-on: ubuntu-latest
+ timeout-minutes: 20
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.95.0
- uses: Swatinem/rust-cache@v2
- name: Install cargo-audit + cargo-deny
- run: |
- cargo install --locked cargo-audit || true
- cargo install --locked cargo-deny || true
+ uses: taiki-e/install-action@v2
+ with:
+ tool: cargo-audit,cargo-deny
- name: cargo audit (soft-fail)
continue-on-error: true
run: cargo audit
@@ -128,11 +131,11 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.95.0
- - uses: actions/setup-python@v5
+ - uses: actions/setup-python@v6
with:
python-version: '3.11'
- uses: Swatinem/rust-cache@v2
diff --git a/.github/workflows/wrap-e2e.yml b/.github/workflows/wrap-e2e.yml
index dce636560..f820ee18c 100644
--- a/.github/workflows/wrap-e2e.yml
+++ b/.github/workflows/wrap-e2e.yml
@@ -3,17 +3,36 @@ name: Wrap E2E
on:
pull_request:
branches: [main]
+ paths:
+ - 'headroom/**'
+ - 'crates/**'
+ - 'docker/**'
+ - 'Dockerfile'
+ - 'e2e/**'
+ - 'scripts/install*'
+ - 'pyproject.toml'
+ - 'Cargo.toml'
+ - 'Cargo.lock'
+ - 'rust-toolchain.toml'
+ - 'uv.lock'
+ - 'sdk/typescript/**'
+ - 'plugins/openclaw/**'
+ - '.github/workflows/wrap-e2e.yml'
push:
branches: [main]
workflow_dispatch:
+concurrency:
+ group: wrap-e2e-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
jobs:
docker-wrap-e2e:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Build wrap e2e image
run: docker build -f e2e/wrap/Dockerfile -t headroom-wrap-e2e .
diff --git a/tests/test_release_workflows.py b/tests/test_release_workflows.py
index 43fa452a5..eba8ac743 100644
--- a/tests/test_release_workflows.py
+++ b/tests/test_release_workflows.py
@@ -1011,8 +1011,8 @@ def test_release_please_workflow_exists_and_targets_main() -> None:
)
content = rp_path.read_text(encoding="utf-8")
- assert "googleapis/release-please-action@v4" in content, (
- "release-please.yml must use the v4 action — earlier versions "
+ assert any(f"googleapis/release-please-action@v{v}" in content for v in (4, 5)), (
+ "release-please.yml must use the v4 or v5 action — earlier versions "
"have different manifest semantics."
)
assert "branches: [main]" in content, (