From a34cf20628db10becb6f5cbbd28446e6ce3e2230 Mon Sep 17 00:00:00 2001 From: Noah <2+noah@noreply.gitea.bluefla.re> Date: Thu, 12 Nov 2026 15:10:28 -0600 Subject: [PATCH] ci: drop the stale source-pr.yml; fold its checks into fast-pr main replaced source-pr.yml with fast-pr.yml (same workflow name, same concurrency group, newer runner image); the merge kept both, so every PR ran two "source-pr / source" jobs that cancelled each other, and fast-pr's runner-image check failed on the stale pin in source-pr.yml. Remove source-pr.yml and carry its checks into fast-pr for non-documentation changes: the patch-whitespace check (vendored trees excluded) and the CI/evidence tool tests. Locally: runner-image pins PASS, ci tests pass, cargo test --locked 250 passed. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i --- .gitea/workflows/fast-pr.yml | 18 +++++++++++ .gitea/workflows/source-pr.yml | 57 ---------------------------------- 2 files changed, 18 insertions(+), 57 deletions(-) delete mode 100644 .gitea/workflows/source-pr.yml diff --git a/.gitea/workflows/fast-pr.yml b/.gitea/workflows/fast-pr.yml index 3e33b26..353f847 100644 --- a/.gitea/workflows/fast-pr.yml +++ b/.gitea/workflows/fast-pr.yml @@ -47,6 +47,24 @@ jobs: status=$? [ "$status" -eq 1 ] fi + - name: Check patch whitespace + if: steps.surface.outputs.surface != 'documentation' + run: | + # Vendored crates (vendor/) and the flare-ui source (third-party/) keep + # their upstream bytes (cargo vendor checksums, byte-exact fixtures). + if [ "$GITHUB_EVENT_NAME" = pull_request ]; then + base="$(git merge-base HEAD "origin/$GITHUB_BASE_REF")" + git diff --check "$base" HEAD -- . ':(exclude)vendor' ':(exclude)third-party' + else + git diff --check HEAD^ HEAD -- . ':(exclude)vendor' ':(exclude)third-party' + fi + - name: Check CI and evidence tools + if: steps.surface.outputs.surface != 'documentation' + run: | + python3 -m compileall -q ci + for test in ci/test-*.py; do python3 "$test"; done + python3 ci/evidence_status.py + python3 ci/experiment_priority.py - name: Check source if: steps.surface.outputs.surface != 'documentation' run: | diff --git a/.gitea/workflows/source-pr.yml b/.gitea/workflows/source-pr.yml deleted file mode 100644 index 81f74e4..0000000 --- a/.gitea/workflows/source-pr.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: source-pr - -on: - pull_request: - branches: [next, main] - workflow_dispatch: - -concurrency: - group: alkane-os-source-pr-${{ github.ref }} - cancel-in-progress: true - -jobs: - source: - runs-on: alkane-fast - container: - image: gitea.bluefla.re/blueflare/alkane-ci@sha256:9d2a992bbcb91014af3c85d2e1ec8c5990701cecf83fd06c8d46f9ef13dbd948 - env: - CARGO_TARGET_DIR: target - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Detect changed surface - id: surface - run: python3 ci/pr_surface.py >> "$GITHUB_OUTPUT" - - name: Check patch whitespace - run: | - if [ "${GITHUB_EVENT_NAME:-}" = pull_request ]; then - base="$(git merge-base HEAD "origin/$GITHUB_BASE_REF")" - git diff --check "$base" HEAD -- . ':(exclude)vendor' ':(exclude)third-party' - else - git diff --check HEAD^ HEAD -- . ':(exclude)vendor' ':(exclude)third-party' - fi - - name: Check CI and evidence tools - if: steps.surface.outputs.surface != 'documentation' - run: | - python3 -m compileall -q ci - for test in ci/test-*.py; do python3 "$test"; done - python3 ci/evidence_status.py - python3 ci/experiment_priority.py - - name: Install source formatter - if: steps.surface.outputs.surface == 'rust' - run: rustup component add rustfmt - - name: Check source formatting - if: steps.surface.outputs.surface == 'rust' - run: cargo fmt --check - - name: Check changed Rust source - if: steps.surface.outputs.surface == 'rust' - run: | - if [ "${GITHUB_BASE_REF:-}" = main ]; then - cargo build --release --offline --locked - else - cargo check --offline --locked - fi - - name: Clean generated build - if: always() - run: python3 ci/cleanup-generated.py