From bb64436dc6e6a78997245742084ec3d7496c4c84 Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 18 Oct 2026 19:47:38 -0600 Subject: [PATCH 1/7] Consolidate setup and gate benchmark publication --- .gitea/workflows/release.yml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 3991d695..1fcce6d9 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -49,8 +49,8 @@ jobs: run: | apt-get update -qq apt-get install -y -qq --no-install-recommends \ - libssl-dev pkg-config ca-certificates >/dev/null - echo "libssl-dev + pkg-config installed (openssl-sys needs them)" + libssl-dev pkg-config ca-certificates openssh-client \ + xvfb xauth dbus-x11 fonts-dejavu-core >/dev/null - name: Cache vendored wxWidgets build uses: actions/cache@v4 @@ -103,19 +103,8 @@ jobs: python3 ci/bench-badge.py --current bench-current.txt \ --baseline badges/bench-baseline.json --no-write - - name: Record private benchmark history - env: - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} - run: python3 ci/bench_history.py publish - - - uses: https://github.com/ChristopherHX/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 - with: - name: alkane-toolkit-benchmark-site-preview - path: bench-site/index.html - name: Headless UI self-test run: | - apt-get update -qq && apt-get install -y -qq --no-install-recommends \ - xvfb xauth dbus-x11 fonts-dejavu-core >/dev/null BIN=target/release/alkane-toolkit xvfb-run -a env GDK_BACKEND=x11 ALKANE_SELFTEST=1 "$BIN" @@ -180,6 +169,21 @@ jobs: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: python3 ci/publish-metrics.py + - name: Record private benchmark history + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + run: python3 ci/bench_history.py publish + + - uses: https://github.com/ChristopherHX/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 + with: + name: alkane-toolkit-benchmark-site-preview + path: bench-site/index.html + - name: Publish public benchmark page + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + BENCH_PAGES_DEPLOY_KEY: ${{ secrets.BENCH_PAGES_DEPLOY_KEY }} + run: python3 ci/publish-bench-pages.py toolkit + - name: Package artifact if: steps.ver.outputs.release == 'true' id: pkg -- 2.54.0 From 392a7b8d7270f6e76ddcff5072bc2d9bd8602475 Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 18 Oct 2026 19:53:08 -0600 Subject: [PATCH 2/7] Use lightweight checks for Toolkit feature and next changes --- .gitea/workflows/verify.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/verify.yml b/.gitea/workflows/verify.yml index 00c67455..6a9c7983 100644 --- a/.gitea/workflows/verify.yml +++ b/.gitea/workflows/verify.yml @@ -1,17 +1,29 @@ name: verify -# Pre-merge quality gate: clippy + build + tests + microbenchmarks + the headless -# UI self-test, plus a best-effort dependency audit. Runs on pull requests and on -# pushes to any branch EXCEPT main (main is gated by release.yml, which repeats -# these checks before it cuts a release -- so no work is duplicated on main). +# Full quality gate for pull requests to main. Feature pushes and pull requests +# to next receive source checks; both release branches keep their own gates. on: pull_request: - branches-ignore: [next] + branches: [main, next] push: branches-ignore: [main, next] jobs: + source: + if: github.event_name == 'push' || github.base_ref == 'next' + runs-on: alkane-ci + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Source checks + run: | + cargo test -p alkane-artifacts -p alkane-flash -p alkane-cli --offline + - name: Clean generated Toolkit build + if: always() + run: python3 ci/cleanup-generated.py + verify: + if: github.event_name == 'pull_request' && github.base_ref == 'main' runs-on: alkane-ci env: CARGO_TARGET_DIR: target -- 2.54.0 From 4f715c2b0cf191aabd3e7d0349c34bf23e55012c Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 18 Oct 2026 19:56:11 -0600 Subject: [PATCH 3/7] Route short Toolkit checks to Alkane fast runner --- .gitea/workflows/ci-badge.yml | 2 +- .gitea/workflows/verify.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci-badge.yml b/.gitea/workflows/ci-badge.yml index c2c89735..3a8e9c7b 100644 --- a/.gitea/workflows/ci-badge.yml +++ b/.gitea/workflows/ci-badge.yml @@ -7,7 +7,7 @@ on: jobs: publish: - runs-on: alkane-ci + runs-on: alkane-fast permissions: actions: read contents: write diff --git a/.gitea/workflows/verify.yml b/.gitea/workflows/verify.yml index 6a9c7983..aa53a6c8 100644 --- a/.gitea/workflows/verify.yml +++ b/.gitea/workflows/verify.yml @@ -11,7 +11,9 @@ on: jobs: source: if: github.event_name == 'push' || github.base_ref == 'next' - runs-on: alkane-ci + runs-on: alkane-fast + env: + CARGO_BUILD_JOBS: 2 steps: - name: Checkout uses: actions/checkout@v4 -- 2.54.0 From 21ff301578b344cbae2a390218b12badff2babc3 Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 18 Oct 2026 19:58:47 -0600 Subject: [PATCH 4/7] Separate fast Toolkit checks from full main verification --- .gitea/workflows/source.yml | 24 ++++++++++++++++++++++++ .gitea/workflows/verify.yml | 23 ++--------------------- 2 files changed, 26 insertions(+), 21 deletions(-) create mode 100644 .gitea/workflows/source.yml diff --git a/.gitea/workflows/source.yml b/.gitea/workflows/source.yml new file mode 100644 index 00000000..104cae79 --- /dev/null +++ b/.gitea/workflows/source.yml @@ -0,0 +1,24 @@ +name: source + +on: + pull_request: + branches: [next] + push: + branches-ignore: [main, next] + +concurrency: + group: alkane-toolkit-source-${{ github.ref }} + cancel-in-progress: true + +jobs: + check: + runs-on: alkane-fast + env: + CARGO_BUILD_JOBS: 2 + steps: + - uses: actions/checkout@v4 + - name: Source checks + run: cargo test -p alkane-artifacts -p alkane-flash -p alkane-cli --offline + - name: Clean generated Toolkit build + if: always() + run: python3 ci/cleanup-generated.py diff --git a/.gitea/workflows/verify.yml b/.gitea/workflows/verify.yml index aa53a6c8..c4d3489c 100644 --- a/.gitea/workflows/verify.yml +++ b/.gitea/workflows/verify.yml @@ -1,31 +1,12 @@ name: verify -# Full quality gate for pull requests to main. Feature pushes and pull requests -# to next receive source checks; both release branches keep their own gates. +# Full quality gate for pull requests to main. on: pull_request: - branches: [main, next] - push: - branches-ignore: [main, next] + branches: [main] jobs: - source: - if: github.event_name == 'push' || github.base_ref == 'next' - runs-on: alkane-fast - env: - CARGO_BUILD_JOBS: 2 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Source checks - run: | - cargo test -p alkane-artifacts -p alkane-flash -p alkane-cli --offline - - name: Clean generated Toolkit build - if: always() - run: python3 ci/cleanup-generated.py - verify: - if: github.event_name == 'pull_request' && github.base_ref == 'main' runs-on: alkane-ci env: CARGO_TARGET_DIR: target -- 2.54.0 From f7688ed29b628f249525fa275150d7e184882c16 Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 18 Oct 2026 20:03:45 -0600 Subject: [PATCH 5/7] Stop scheduled Toolkit benchmark republishing --- .gitea/workflows/bench-pages.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitea/workflows/bench-pages.yml b/.gitea/workflows/bench-pages.yml index 3523f64d..48b89c40 100644 --- a/.gitea/workflows/bench-pages.yml +++ b/.gitea/workflows/bench-pages.yml @@ -1,8 +1,6 @@ name: public-benchmark-pages on: - schedule: - - cron: '*/15 * * * *' workflow_dispatch: concurrency: -- 2.54.0 From 6e7509518f34d79daf59ed8b994aa4266e9401ed Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 18 Oct 2026 20:13:17 -0600 Subject: [PATCH 6/7] Isolate Toolkit pull request verification from release queue --- .gitea/workflows/verify.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/verify.yml b/.gitea/workflows/verify.yml index c4d3489c..826c8361 100644 --- a/.gitea/workflows/verify.yml +++ b/.gitea/workflows/verify.yml @@ -7,9 +7,10 @@ on: jobs: verify: - runs-on: alkane-ci + runs-on: alkane-verify env: CARGO_TARGET_DIR: target + CARGO_BUILD_JOBS: 2 WX_PREFIX: /root/.cache/wx-3.3.3-linux WX_RS_WXCONFIG: /root/.cache/wx-3.3.3-linux/bin/wx-config steps: -- 2.54.0 From 6331baa724baca0049ecfcc7316acb841898cae9 Mon Sep 17 00:00:00 2001 From: noah Date: Sun, 18 Oct 2026 20:15:24 -0600 Subject: [PATCH 7/7] Key wxWidgets cache to source and toolchain inputs --- .gitea/workflows/next.yml | 5 ++++- .gitea/workflows/release.yml | 6 +++++- .gitea/workflows/verify.yml | 6 +++++- ci/wx-cache-key.sh | 21 +++++++++++++++++++++ 4 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 ci/wx-cache-key.sh diff --git a/.gitea/workflows/next.yml b/.gitea/workflows/next.yml index 0d664317..e112ce13 100644 --- a/.gitea/workflows/next.yml +++ b/.gitea/workflows/next.yml @@ -26,10 +26,13 @@ jobs: run: | apt-get update -qq apt-get install -y -qq --no-install-recommends libssl-dev pkg-config ca-certificates + - name: Compute wxWidgets cache key + id: wx-key + run: bash ci/wx-cache-key.sh - uses: actions/cache@v4 with: path: /root/.cache/wx-3.3.3-linux - key: wx-3.3.3-${{ runner.os }}-${{ hashFiles('thirdparty/wx-rs/VERSION') }} + key: ${{ steps.wx-key.outputs.key }} - name: Build wxWidgets run: | if [ ! -x "$WX_PREFIX/bin/wx-config" ]; then diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 1fcce6d9..2fdb91d7 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -52,11 +52,15 @@ jobs: libssl-dev pkg-config ca-certificates openssh-client \ xvfb xauth dbus-x11 fonts-dejavu-core >/dev/null + - name: Compute wxWidgets cache key + id: wx-key + run: bash ci/wx-cache-key.sh + - name: Cache vendored wxWidgets build uses: actions/cache@v4 with: path: /root/.cache/wx-3.3.3-linux - key: wx-3.3.3-${{ runner.os }}-${{ hashFiles('thirdparty/wx-rs/VERSION') }} + key: ${{ steps.wx-key.outputs.key }} - name: Build wxWidgets (once, then cached) run: | diff --git a/.gitea/workflows/verify.yml b/.gitea/workflows/verify.yml index 826c8361..81104c0b 100644 --- a/.gitea/workflows/verify.yml +++ b/.gitea/workflows/verify.yml @@ -23,11 +23,15 @@ jobs: apt-get install -y -qq --no-install-recommends \ libssl-dev pkg-config ca-certificates >/dev/null + - name: Compute wxWidgets cache key + id: wx-key + run: bash ci/wx-cache-key.sh + - name: Cache vendored wxWidgets build uses: actions/cache@v4 with: path: /root/.cache/wx-3.3.3-linux - key: wx-3.3.3-${{ runner.os }}-${{ hashFiles('thirdparty/wx-rs/VERSION') }} + key: ${{ steps.wx-key.outputs.key }} - name: Build wxWidgets (once, then cached) run: | diff --git a/ci/wx-cache-key.sh b/ci/wx-cache-key.sh new file mode 100644 index 00000000..65f37d68 --- /dev/null +++ b/ci/wx-cache-key.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: MIT +# Key the native wxWidgets prefix to its tracked source and build toolchain. +set -euo pipefail + +material="$({ + git rev-parse HEAD:thirdparty/wxwidgets/wxWidgets-3.3.3 + git rev-parse HEAD:scripts/build-wx-linux.sh + cat thirdparty/wx-rs/VERSION + gcc -dumpmachine + gcc -dumpfullversion + pkg-config --modversion gtk+-3.0 + getconf GNU_LIBC_VERSION +} )" +digest="$(printf '%s\n' "$material" | sha256sum | cut -c1-24)" +key="wx-3.3.3-$digest" +if [ -n "${GITHUB_OUTPUT:-}" ]; then + printf 'key=%s\n' "$key" >> "$GITHUB_OUTPUT" +else + printf '%s\n' "$key" +fi -- 2.54.0