diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml index 666e9f2a61..9ec7e61821 100644 --- a/.github/actionlint.yaml +++ b/.github/actionlint.yaml @@ -1,3 +1,4 @@ self-hosted-runner: labels: + - darkbloom-linux-arm64 - darkbloom-macos-arm64 diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index b89f897402..5f02363de9 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -17,17 +17,9 @@ concurrency: cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: - route: - uses: ./.github/workflows/darkbloom-route.yml - permissions: {} - with: - lanes: | - lint linux_arm64 ubuntu-22.04 - check_lint: name: Check Lint - needs: route - runs-on: ${{ fromJSON(needs.route.outputs.routes)['lint'] }} + runs-on: [self-hosted, linux, ARM64, darkbloom-linux-arm64] timeout-minutes: 20 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 @@ -63,25 +55,19 @@ jobs: sanitizer: [ASAN, UBSAN] # todo 12/16/2025: enable TSAN later + consider enabling ASAN for GPU backend tests. # sanitizer: [ASAN, UBSAN, TSAN] - runs-on: ubuntu-22.04-arm + runs-on: [self-hosted, linux, ARM64, darkbloom-linux-arm64] steps: - name: Checkout code uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - - name: Install Dependencies + - name: Check the native sanitizer image tools run: | - export DEBIAN_FRONTEND=noninteractive - sudo apt-get update -y - sudo apt-get install -y \ - build-essential \ - libblas-dev \ - liblapacke-dev \ - libopenblas-dev \ - cmake \ - clang \ - git - sudo apt-get clean - sudo rm -rf /var/lib/apt/lists/* + [[ "$RUNNER_NAME" == darkbloom-* ]] + [[ "$(uname -s)" == Linux && "$(uname -m)" == aarch64 ]] + cmake --version + clang --version + c++ --version + command -v make git - name: Linux Build and Test with ${{ matrix.sanitizer }} run: | diff --git a/.github/workflows/forkdiff-check.yml b/.github/workflows/forkdiff-check.yml index aae1a60653..bcaef3e0d1 100644 --- a/.github/workflows/forkdiff-check.yml +++ b/.github/workflows/forkdiff-check.yml @@ -28,17 +28,9 @@ permissions: contents: read jobs: - route: - uses: ./.github/workflows/darkbloom-route.yml - permissions: {} - with: - lanes: | - forkdiff linux_arm64 ubuntu-latest - analysis-up-to-date: name: fork.yaml describes the fork - needs: route - runs-on: ${{ fromJSON(needs.route.outputs.routes)['forkdiff'] }} + runs-on: [self-hosted, linux, ARM64, darkbloom-linux-arm64] timeout-minutes: 20 steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/forkdiff-pages.yml b/.github/workflows/forkdiff-pages.yml index 619f521d19..ceb6ae3d5c 100644 --- a/.github/workflows/forkdiff-pages.yml +++ b/.github/workflows/forkdiff-pages.yml @@ -18,17 +18,9 @@ concurrency: cancel-in-progress: true jobs: - route: - uses: ./.github/workflows/darkbloom-route.yml - permissions: {} - with: - lanes: | - forkdiff-render linux_arm64 ubuntu-latest - render: name: Render fork diff - needs: route - runs-on: ${{ fromJSON(needs.route.outputs.routes)['forkdiff-render'] }} + runs-on: [self-hosted, linux, ARM64, darkbloom-linux-arm64] timeout-minutes: 20 steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/FORKDIFF.md b/FORKDIFF.md index aa7739beeb..993fa47584 100644 --- a/FORKDIFF.md +++ b/FORKDIFF.md @@ -18,25 +18,27 @@ Settings → Pages → Source: **GitHub Actions**. The workflow token cannot do this itself. Until it's done the deploy workflow still builds the page (kept as a run artifact, `forkdiff-page`) and exits with a notice instead of failing. -## Native Mac CI - -All eight Mac jobs in `fork-tests.yml` use only Darkbloom macOS ARM64 runners -with the approved 12-core, 32-GiB profile. They keep their original steps, tests -and job timeouts. When compatible capacity is busy they wait; these jobs have -no GitHub-hosted or Blacksmith fallback. - -The current profile qualification lifetime is one hour. The existing watchdog -can cancel or retry a job after its 30-minute wait threshold. It can rerun a -stranded workflow once, then cancel another stranded attempt. A rerun keeps -these native labels; it cannot send the Mac jobs to hosted runners. These bounds -are not a promise of a 24-hour native queue. The `DARKBLOOM_ROUTING` variable -controls the separate dynamic route workflow; it does not turn off these Mac -jobs. - -Linux lint, the fork-diff check and page renderer keep their dynamic routing. -The sanitizer and Fedora jobs keep their existing hosted runners. The protected -Pages publisher stays hosted, and native CodeQL keeps its separate activation -gate. +## Native CI + +The Linux lint job, ASAN/UBSAN tests, fork-diff check and page renderer use only +Darkbloom Linux ARM64 runners. All eight Mac jobs in `fork-tests.yml` use only +Darkbloom macOS ARM64 runners with the approved 12-core, 32-GiB profile. +They keep their original steps, tests and job timeouts. +The sanitizer jobs use the qualified image's compilers and dependencies, with a +tool preflight in place of installing packages through sudo. When compatible +capacity is busy they wait; these jobs have no GitHub-hosted or Blacksmith +fallback. The current profile qualification lifetime is one hour, and the +existing watchdog can cancel or retry a job after its 30-minute wait threshold. +The watchdog can rerun a stranded workflow once, then cancel another stranded +attempt. These jobs keep native labels on a rerun; the watchdog cannot send them +to hosted runners. These bounds are not a promise of a 24-hour native queue. +The `DARKBLOOM_ROUTING` variable controls the separate dynamic route workflow; +it does not turn off these native-only jobs. + +The GitHub-hosted Pages job still packages and publishes the rendered artifact +through its protected environment. The Fedora jobs still use their existing +hosted runners. The disabled native CodeQL workflow keeps its separate routing +and activation rules. ## The gate diff --git a/fork.yaml b/fork.yaml index 45acf803cc..9281cd9459 100644 --- a/fork.yaml +++ b/fork.yaml @@ -758,19 +758,19 @@ def: All eight Mac jobs in `fork-tests.yml` use native macOS ARM64 labels and the approved 12-core, 32-GiB profile. They wait for compatible capacity - without a hosted fallback. Their steps, tests and timeouts stay unchanged. - `FORKDIFF.md` describes the qualification and watchdog time bounds. - `darkbloom-watchdog.yml` remains unchanged; a rerun keeps these static - labels. On a Darkbloom Sandbox that has + without a hosted fallback. The Linux lint, ASAN/UBSAN, fork-diff check + and Pages renderer also use native-only labels. The sanitizer jobs use + the qualified compiler image and a tool preflight, retaining their + original test script. Fedora jobs remain separate, and the protected + Pages publisher stays hosted. `FORKDIFF.md` describes the qualification, + job and watchdog time bounds. `darkbloom-watchdog.yml` remains unchanged; + a rerun keeps these static labels. On a Darkbloom Sandbox that has no Darkbloom cache, `fork-build-cache` sets `CI_ACTIONS_CACHE=off` and every cache step is skipped, so that the sandbox does not write GitHub's Actions - cache. The Darkbloom macOS image has Xcode 27.2 on macOS 27. - No job selects an Xcode. The lint job of `build_and_test.yml`, the fork-diff - check and the Pages renderer ask for Linux ARM64 sandboxes, with GitHub-hosted - labels as fallbacks. Lint uses a Python 3.12 virtual environment and keeps its - pre-commit cache separate by runner architecture. It skips Actions caching when - the sandbox has no Darkbloom cache. The Linux sanitizer, Fedora and protected - Pages publishing jobs still use GitHub-hosted runners. + cache. The Darkbloom macOS image has Xcode 27.2 on macOS 27. No job selects + an Xcode. Lint uses a Python 3.12 virtual environment and keeps its pre-commit + cache separate by runner architecture. It skips Actions caching when the + sandbox has no Darkbloom cache. The native CodeQL workflow remains disabled until the operator switches from GitHub default setup and enables `CODEQL_NATIVE`. Its read-only ARM @@ -794,6 +794,8 @@ def: `qqmm` and `gather_qmm`) check on the CPU pass that the documented error is raised. globs: - ".github/actionlint.yaml" + - ".github/workflows/forkdiff-check.yml" + - ".github/workflows/forkdiff-pages.yml" - "CMakeLists.txt" - ".github/actions/build/action.yml" - ".github/actions/build-docs/action.yml"