Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
self-hosted-runner:
labels:
- darkbloom-linux-arm64
- darkbloom-macos-arm64
32 changes: 9 additions & 23 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/forkdiff-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/forkdiff-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
40 changes: 21 additions & 19 deletions FORKDIFF.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
24 changes: 13 additions & 11 deletions fork.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
Loading