From 03270739da51d7b3b85441965b3bd22cded9b782 Mon Sep 17 00:00:00 2001 From: GoDeskio <62771363+GoDeskio@users.noreply.github.com> Date: Sat, 14 Nov 2026 14:16:08 -0700 Subject: [PATCH 1/3] CI: run Linux jobs on GoDesk self-hosted runners Move Linux GitHub Actions jobs to [self-hosted, godesk], add concurrency, and install language toolchains with setup-* actions so the jobs do not assume a GitHub-hosted image. Do not merge until the GoDesk runners are confirmed online. --- .github/workflows/ci.yml | 28 ++++++++++++++++++---------- .github/workflows/release.yml | 6 +++++- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f943383..219864e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,10 +8,14 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: lint: name: lint - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 15 steps: - uses: actions/checkout@v5 @@ -27,7 +31,7 @@ jobs: pytest: name: pytest - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 15 steps: - uses: actions/checkout@v5 @@ -44,7 +48,7 @@ jobs: compose-config: name: compose-config - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 15 steps: - uses: actions/checkout@v5 @@ -56,7 +60,7 @@ jobs: gitleaks: name: gitleaks - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 15 steps: - uses: actions/checkout@v5 @@ -72,7 +76,7 @@ jobs: built-shell-assert: name: built-shell-assert - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 20 steps: - uses: actions/checkout@v5 @@ -82,7 +86,7 @@ jobs: rust-core: name: rust-core - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 20 defaults: run: @@ -90,8 +94,12 @@ jobs: steps: - uses: actions/checkout@v5 - - name: Toolchain - run: rustup toolchain install stable --profile minimal -c clippy && rustup default stable + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - uses: actions/setup-python@v5 + with: + python-version: "3.12" - name: License fields and Cargo package metadata are Apache-2.0 working-directory: . @@ -113,7 +121,7 @@ jobs: license-metadata: name: license-metadata - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 10 steps: - uses: actions/checkout@v5 @@ -127,7 +135,7 @@ jobs: e2e: name: e2e - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 20 steps: - uses: actions/checkout@v5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27c31f6..0f54652 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,10 +7,14 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') }} + jobs: version: name: tag matches VERSION - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 10 steps: - uses: actions/checkout@v5 From 4b17607ac7afd5232d8999863168d55807924c43 Mon Sep 17 00:00:00 2001 From: GoDeskio <62771363+GoDeskio@users.noreply.github.com> Date: Sat, 14 Nov 2026 15:35:38 -0700 Subject: [PATCH 2/3] CI: install Python with uv and Playwright deps on Debian 13 actions/setup-python has no Debian 13 builds. Use a uv-seeded venv, and replace playwright --with-deps with an apt install of the needed libraries plus playwright install, because --with-deps falls back to Ubuntu 20.04 packages and fails. --- .github/workflows/ci.yml | 132 ++++++++++++++++++++++++++++++++++----- 1 file changed, 116 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 219864e..232674c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,9 +20,25 @@ jobs: steps: - uses: actions/checkout@v5 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" + # actions/setup-python has no Debian 13 builds. Install CPython 3.12 + # with uv into a venv (uv-managed interpreters reject ensurepip/pip). + - name: Set up Python 3.12 + env: + PYTHON_VERSION: "3.12" + run: | + set -euo pipefail + export PATH="$HOME/.local/bin:$PATH" + if ! command -v uv >/dev/null 2>&1; then + curl -LsSf https://astral.sh/uv/install.sh | sh + fi + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + uv python install "$PYTHON_VERSION" + VENV="$RUNNER_TEMP/python" + # --seed installs pip/setuptools/wheel; uv venvs omit pip by default. + uv venv --seed --python "$PYTHON_VERSION" "$VENV" + echo "$VENV/bin" >> "$GITHUB_PATH" + "$VENV/bin/python" --version + "$VENV/bin/python" -m pip install --upgrade pip - name: Ruff run: | @@ -36,9 +52,25 @@ jobs: steps: - uses: actions/checkout@v5 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" + # actions/setup-python has no Debian 13 builds. Install CPython 3.12 + # with uv into a venv (uv-managed interpreters reject ensurepip/pip). + - name: Set up Python 3.12 + env: + PYTHON_VERSION: "3.12" + run: | + set -euo pipefail + export PATH="$HOME/.local/bin:$PATH" + if ! command -v uv >/dev/null 2>&1; then + curl -LsSf https://astral.sh/uv/install.sh | sh + fi + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + uv python install "$PYTHON_VERSION" + VENV="$RUNNER_TEMP/python" + # --seed installs pip/setuptools/wheel; uv venvs omit pip by default. + uv venv --seed --python "$PYTHON_VERSION" "$VENV" + echo "$VENV/bin" >> "$GITHUB_PATH" + "$VENV/bin/python" --version + "$VENV/bin/python" -m pip install --upgrade pip - name: Pytest working-directory: api @@ -97,9 +129,25 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: components: clippy - - uses: actions/setup-python@v5 - with: - python-version: "3.12" + # actions/setup-python has no Debian 13 builds. Install CPython 3.12 + # with uv into a venv (uv-managed interpreters reject ensurepip/pip). + - name: Set up Python 3.12 + env: + PYTHON_VERSION: "3.12" + run: | + set -euo pipefail + export PATH="$HOME/.local/bin:$PATH" + if ! command -v uv >/dev/null 2>&1; then + curl -LsSf https://astral.sh/uv/install.sh | sh + fi + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + uv python install "$PYTHON_VERSION" + VENV="$RUNNER_TEMP/python" + # --seed installs pip/setuptools/wheel; uv venvs omit pip by default. + uv venv --seed --python "$PYTHON_VERSION" "$VENV" + echo "$VENV/bin" >> "$GITHUB_PATH" + "$VENV/bin/python" --version + "$VENV/bin/python" -m pip install --upgrade pip - name: License fields and Cargo package metadata are Apache-2.0 working-directory: . @@ -126,9 +174,25 @@ jobs: steps: - uses: actions/checkout@v5 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" + # actions/setup-python has no Debian 13 builds. Install CPython 3.12 + # with uv into a venv (uv-managed interpreters reject ensurepip/pip). + - name: Set up Python 3.12 + env: + PYTHON_VERSION: "3.12" + run: | + set -euo pipefail + export PATH="$HOME/.local/bin:$PATH" + if ! command -v uv >/dev/null 2>&1; then + curl -LsSf https://astral.sh/uv/install.sh | sh + fi + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + uv python install "$PYTHON_VERSION" + VENV="$RUNNER_TEMP/python" + # --seed installs pip/setuptools/wheel; uv venvs omit pip by default. + uv venv --seed --python "$PYTHON_VERSION" "$VENV" + echo "$VENV/bin" >> "$GITHUB_PATH" + "$VENV/bin/python" --version + "$VENV/bin/python" -m pip install --upgrade pip - name: License fields are Apache-2.0 run: python3 scripts/check-license-metadata.py @@ -140,9 +204,25 @@ jobs: steps: - uses: actions/checkout@v5 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" + # actions/setup-python has no Debian 13 builds. Install CPython 3.12 + # with uv into a venv (uv-managed interpreters reject ensurepip/pip). + - name: Set up Python 3.12 + env: + PYTHON_VERSION: "3.12" + run: | + set -euo pipefail + export PATH="$HOME/.local/bin:$PATH" + if ! command -v uv >/dev/null 2>&1; then + curl -LsSf https://astral.sh/uv/install.sh | sh + fi + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + uv python install "$PYTHON_VERSION" + VENV="$RUNNER_TEMP/python" + # --seed installs pip/setuptools/wheel; uv venvs omit pip by default. + uv venv --seed --python "$PYTHON_VERSION" "$VENV" + echo "$VENV/bin" >> "$GITHUB_PATH" + "$VENV/bin/python" --version + "$VENV/bin/python" -m pip install --upgrade pip - uses: actions/setup-node@v4 with: @@ -154,7 +234,27 @@ jobs: - name: Playwright working-directory: e2e - run: npm install && npx playwright install --with-deps chromium + run: | + set -euo pipefail + npm install + # Debian 13 is not in Playwright's official dependency matrix. + # --with-deps falls back to Ubuntu 20.04 packages and fails. + # Passwordless sudo on these runners covers apt only. + sudo apt-get update + pkgs=( + libnss3 libnspr4 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 + libxfixes3 libxrandr2 libgbm1 libpango-1.0-0 libcairo2 + libx11-6 libx11-xcb1 libxcb1 libxext6 libxshmfence1 ca-certificates + ) + for base in libatk1.0-0 libatk-bridge2.0-0 libcups2 libasound2 libatspi2.0-0 libgtk-3-0; do + if apt-cache show "${base}t64" >/dev/null 2>&1; then + pkgs+=("${base}t64") + else + pkgs+=("$base") + fi + done + sudo apt-get install -y --no-install-recommends "${pkgs[@]}" + npx playwright install chromium - name: Console flows working-directory: e2e From 6a4d3233051f0f2e561fadae3da8fc536b35819e Mon Sep 17 00:00:00 2001 From: GoDeskio <62771363+GoDeskio@users.noreply.github.com> Date: Sat, 14 Nov 2026 16:29:29 -0700 Subject: [PATCH 3/3] CI: prefer preinstalled CPython and isolate rustup on self-hosted runners --- .github/workflows/ci.yml | 105 +++++++++++++++++++++++++++++++-------- 1 file changed, 85 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 232674c..57a8ab3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,15 +27,27 @@ jobs: PYTHON_VERSION: "3.12" run: | set -euo pipefail - export PATH="$HOME/.local/bin:$PATH" + export PATH="/usr/local/bin:$HOME/.local/bin:$PATH" + echo "/usr/local/bin" >> "$GITHUB_PATH" + echo "$HOME/.local/bin" >> "$GITHUB_PATH" if ! command -v uv >/dev/null 2>&1; then curl -LsSf https://astral.sh/uv/install.sh | sh + export PATH="$HOME/.local/bin:$PATH" + fi + # Prefer CPython preinstalled on gh-runner-g5 + # (/usr/local/bin/python3.11 and python3.12). Fall back to uv. + PY="" + if [ -x "/usr/local/bin/python${PYTHON_VERSION}" ]; then + PY="/usr/local/bin/python${PYTHON_VERSION}" + elif command -v "python${PYTHON_VERSION}" >/dev/null 2>&1; then + PY="$(command -v "python${PYTHON_VERSION}")" + else + uv python install "$PYTHON_VERSION" + PY="$(uv python find "$PYTHON_VERSION")" fi - echo "$HOME/.local/bin" >> "$GITHUB_PATH" - uv python install "$PYTHON_VERSION" VENV="$RUNNER_TEMP/python" # --seed installs pip/setuptools/wheel; uv venvs omit pip by default. - uv venv --seed --python "$PYTHON_VERSION" "$VENV" + uv venv --seed --python "$PY" "$VENV" echo "$VENV/bin" >> "$GITHUB_PATH" "$VENV/bin/python" --version "$VENV/bin/python" -m pip install --upgrade pip @@ -59,15 +71,27 @@ jobs: PYTHON_VERSION: "3.12" run: | set -euo pipefail - export PATH="$HOME/.local/bin:$PATH" + export PATH="/usr/local/bin:$HOME/.local/bin:$PATH" + echo "/usr/local/bin" >> "$GITHUB_PATH" + echo "$HOME/.local/bin" >> "$GITHUB_PATH" if ! command -v uv >/dev/null 2>&1; then curl -LsSf https://astral.sh/uv/install.sh | sh + export PATH="$HOME/.local/bin:$PATH" + fi + # Prefer CPython preinstalled on gh-runner-g5 + # (/usr/local/bin/python3.11 and python3.12). Fall back to uv. + PY="" + if [ -x "/usr/local/bin/python${PYTHON_VERSION}" ]; then + PY="/usr/local/bin/python${PYTHON_VERSION}" + elif command -v "python${PYTHON_VERSION}" >/dev/null 2>&1; then + PY="$(command -v "python${PYTHON_VERSION}")" + else + uv python install "$PYTHON_VERSION" + PY="$(uv python find "$PYTHON_VERSION")" fi - echo "$HOME/.local/bin" >> "$GITHUB_PATH" - uv python install "$PYTHON_VERSION" VENV="$RUNNER_TEMP/python" # --seed installs pip/setuptools/wheel; uv venvs omit pip by default. - uv venv --seed --python "$PYTHON_VERSION" "$VENV" + uv venv --seed --python "$PY" "$VENV" echo "$VENV/bin" >> "$GITHUB_PATH" "$VENV/bin/python" --version "$VENV/bin/python" -m pip install --upgrade pip @@ -126,6 +150,11 @@ jobs: steps: - uses: actions/checkout@v5 + - name: Isolate rustup and cargo homes + run: | + echo "RUSTUP_HOME=$RUNNER_TEMP/rustup" >> "$GITHUB_ENV" + echo "CARGO_HOME=$RUNNER_TEMP/cargo" >> "$GITHUB_ENV" + echo "$RUNNER_TEMP/cargo/bin" >> "$GITHUB_PATH" - uses: dtolnay/rust-toolchain@stable with: components: clippy @@ -136,15 +165,27 @@ jobs: PYTHON_VERSION: "3.12" run: | set -euo pipefail - export PATH="$HOME/.local/bin:$PATH" + export PATH="/usr/local/bin:$HOME/.local/bin:$PATH" + echo "/usr/local/bin" >> "$GITHUB_PATH" + echo "$HOME/.local/bin" >> "$GITHUB_PATH" if ! command -v uv >/dev/null 2>&1; then curl -LsSf https://astral.sh/uv/install.sh | sh + export PATH="$HOME/.local/bin:$PATH" + fi + # Prefer CPython preinstalled on gh-runner-g5 + # (/usr/local/bin/python3.11 and python3.12). Fall back to uv. + PY="" + if [ -x "/usr/local/bin/python${PYTHON_VERSION}" ]; then + PY="/usr/local/bin/python${PYTHON_VERSION}" + elif command -v "python${PYTHON_VERSION}" >/dev/null 2>&1; then + PY="$(command -v "python${PYTHON_VERSION}")" + else + uv python install "$PYTHON_VERSION" + PY="$(uv python find "$PYTHON_VERSION")" fi - echo "$HOME/.local/bin" >> "$GITHUB_PATH" - uv python install "$PYTHON_VERSION" VENV="$RUNNER_TEMP/python" # --seed installs pip/setuptools/wheel; uv venvs omit pip by default. - uv venv --seed --python "$PYTHON_VERSION" "$VENV" + uv venv --seed --python "$PY" "$VENV" echo "$VENV/bin" >> "$GITHUB_PATH" "$VENV/bin/python" --version "$VENV/bin/python" -m pip install --upgrade pip @@ -181,15 +222,27 @@ jobs: PYTHON_VERSION: "3.12" run: | set -euo pipefail - export PATH="$HOME/.local/bin:$PATH" + export PATH="/usr/local/bin:$HOME/.local/bin:$PATH" + echo "/usr/local/bin" >> "$GITHUB_PATH" + echo "$HOME/.local/bin" >> "$GITHUB_PATH" if ! command -v uv >/dev/null 2>&1; then curl -LsSf https://astral.sh/uv/install.sh | sh + export PATH="$HOME/.local/bin:$PATH" + fi + # Prefer CPython preinstalled on gh-runner-g5 + # (/usr/local/bin/python3.11 and python3.12). Fall back to uv. + PY="" + if [ -x "/usr/local/bin/python${PYTHON_VERSION}" ]; then + PY="/usr/local/bin/python${PYTHON_VERSION}" + elif command -v "python${PYTHON_VERSION}" >/dev/null 2>&1; then + PY="$(command -v "python${PYTHON_VERSION}")" + else + uv python install "$PYTHON_VERSION" + PY="$(uv python find "$PYTHON_VERSION")" fi - echo "$HOME/.local/bin" >> "$GITHUB_PATH" - uv python install "$PYTHON_VERSION" VENV="$RUNNER_TEMP/python" # --seed installs pip/setuptools/wheel; uv venvs omit pip by default. - uv venv --seed --python "$PYTHON_VERSION" "$VENV" + uv venv --seed --python "$PY" "$VENV" echo "$VENV/bin" >> "$GITHUB_PATH" "$VENV/bin/python" --version "$VENV/bin/python" -m pip install --upgrade pip @@ -211,15 +264,27 @@ jobs: PYTHON_VERSION: "3.12" run: | set -euo pipefail - export PATH="$HOME/.local/bin:$PATH" + export PATH="/usr/local/bin:$HOME/.local/bin:$PATH" + echo "/usr/local/bin" >> "$GITHUB_PATH" + echo "$HOME/.local/bin" >> "$GITHUB_PATH" if ! command -v uv >/dev/null 2>&1; then curl -LsSf https://astral.sh/uv/install.sh | sh + export PATH="$HOME/.local/bin:$PATH" + fi + # Prefer CPython preinstalled on gh-runner-g5 + # (/usr/local/bin/python3.11 and python3.12). Fall back to uv. + PY="" + if [ -x "/usr/local/bin/python${PYTHON_VERSION}" ]; then + PY="/usr/local/bin/python${PYTHON_VERSION}" + elif command -v "python${PYTHON_VERSION}" >/dev/null 2>&1; then + PY="$(command -v "python${PYTHON_VERSION}")" + else + uv python install "$PYTHON_VERSION" + PY="$(uv python find "$PYTHON_VERSION")" fi - echo "$HOME/.local/bin" >> "$GITHUB_PATH" - uv python install "$PYTHON_VERSION" VENV="$RUNNER_TEMP/python" # --seed installs pip/setuptools/wheel; uv venvs omit pip by default. - uv venv --seed --python "$PYTHON_VERSION" "$VENV" + uv venv --seed --python "$PY" "$VENV" echo "$VENV/bin" >> "$GITHUB_PATH" "$VENV/bin/python" --version "$VENV/bin/python" -m pip install --upgrade pip