Files
alkane-os/.gitea/workflows/fast-pr.yml
T
noahandClaude Opus 4.8 b87fb14b14
source-pr / source (pull_request) Successful in 1m59s
ci: move OS PR gate and build/pages jobs onto the alkane-ci pool
The dead r610 pools behind alkane-fast and alkane-verify were disabled
after their SSD failure, leaving only offline runners on those labels.
The required source-pr gate runs on alkane-fast, so every PR to main is
unmergeable (the check never gets a runner), and next-build/pages jobs on
alkane-verify never run either.

Repoint the four jobs on the dead pools to the healthy GARM-backed
alkane-ci pool, matching main.yml which already runs there:

  - fast-pr.yml   (source-pr gate)  alkane-fast   -> alkane-ci
  - next.yml      (next-build)      alkane-verify -> alkane-ci
  - bench-pages.yml                 alkane-verify -> alkane-ci
  - ci-badge.yml                    alkane-verify -> alkane-ci

The pinned runner-image digest is unchanged, so ci/check-runner-image.py
still passes (verified locally), and workflow/job names are unchanged so
the required context source-pr / source is preserved.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i
2026-11-16 15:54:14 -06:00

77 lines
2.8 KiB
YAML

name: source-pr
on:
pull_request:
branches: [main, next]
workflow_dispatch:
concurrency:
group: alkane-os-source-pr-${{ github.ref }}
cancel-in-progress: true
jobs:
source:
runs-on: alkane-ci
container:
image: gitea.bluefla.re/blueflare/alkane-ci@sha256:ad56db2fc456a3f1c68c715ba44309751cb5c455376d9f797ac346833c011e15
env:
CARGO_TARGET_DIR: target
CARGO_BUILD_JOBS: 2
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check runner image pins
run: python3 ci/check-runner-image.py
- name: Detect README-only change
id: surface
run: |
surface=full
if [ "$GITHUB_EVENT_NAME" = pull_request ] &&
{ [ "$GITHUB_BASE_REF" = main ] || [ "$GITHUB_BASE_REF" = next ]; } &&
base="$(git merge-base HEAD "origin/$GITHUB_BASE_REF" 2>/dev/null)" &&
changed="$(git diff --no-renames --name-only "$base" HEAD)" &&
[ "$changed" = README.md ]; then
surface=documentation
fi
echo "surface=$surface" >> "$GITHUB_OUTPUT"
- name: Check README-only change
if: steps.surface.outputs.surface == 'documentation'
run: |
base="$(git merge-base HEAD "origin/$GITHUB_BASE_REF")"
git diff --check "$base" HEAD -- . ':(exclude)vendor' ':(exclude)third-party'
if git grep -nIE '^[[:space:]]*-----BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY-----[[:space:]]*$' --; then
echo "private key material found in tracked source" >&2
exit 1
else
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: |
rustup component add rustfmt
cargo fmt --check
cargo test --locked
- name: Clean generated source check
if: always()
run: python3 ci/cleanup-generated.py