Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e287c1f
feat(provider): sandbox setup re-checks the add-on's plan on a set-up…
Gajesh2007 Nov 3, 2026
1d9a9f5
Release dev into master: provider 0.10.7 (#1754)
davidtai Nov 3, 2026
7512eee
Prepare provider 0.10.7 (#1756)
jonathan308 Nov 3, 2026
d0eeeee
ci: cache .git and SwiftPM repositories; only master pushes save cach…
Gajesh2007 Nov 4, 2026
7178a32
Merge master into dev (2026-11-03)
Gajesh2007 Nov 4, 2026
db9583a
Remove the changelog fragments that the 0.10.7 render already holds
Gajesh2007 Nov 4, 2026
402b6f1
ci: route the macOS CI jobs through Darkbloom again (Blacksmith fallb…
Gajesh2007 Nov 4, 2026
3dc24c9
Merge ci/macos-darkbloom-route into the master sync (macOS CI jobs ro…
Gajesh2007 Nov 4, 2026
e8e817e
ci: refactor pass: call the shard lane test-provider-<shard>; reflow …
Gajesh2007 Nov 4, 2026
55f7b72
Merge ci/macos-darkbloom-route into the master sync (refactor-pass wo…
Gajesh2007 Nov 4, 2026
a57897a
ci: split CI into ci-dev.yml and ci-master.yml over one reusable test…
davidtai Nov 4, 2026
e415192
ci: fewer, fuller macOS jobs; loose build-cache tier; macOS lane cap
davidtai Nov 4, 2026
5b20862
Merge origin/dev into ci/sandbox-lanes
davidtai Nov 4, 2026
37fbaba
ci: refactor-pass fixes for the sandbox lanes
davidtai Nov 4, 2026
1ff4158
Merge origin/dev (#1785 test removals and weights) into ci/sandbox-lanes
davidtai Nov 4, 2026
5dc8e15
ci: remove the Provider SDK Tests lane (David, 2026-11-04)
davidtai Nov 4, 2026
a166d9e
ci: the cold-retry test follows the two remaining build directories
davidtai Nov 5, 2026
dca0185
ci: test each tree once, one plan routes every job, no audit-only Macs
davidtai Nov 5, 2026
882e6a2
ci: a third Swift build cache tier keyed on the toolchain and the MLX…
davidtai Nov 5, 2026
6936ace
Merge origin/dev into ci/sandbox-lanes
davidtai Nov 5, 2026
f872dca
ci: the Release Integrity pin allows its one condition, !cancelled()
davidtai Nov 5, 2026
3408548
ci: the entry-point test sets the per-shard audit and coverage steps …
davidtai Nov 5, 2026
5b36cb7
ci: the per-job audit test gives each of its 4 selections a suite
davidtai Nov 5, 2026
deeab2d
ci: component-path tests follow the per-push concurrency and read job…
davidtai Nov 5, 2026
7b984ef
ci: CI (dev) has the plan and the tests jobs
davidtai Nov 5, 2026
cdf00a4
ci: darkbloom-watchdog.yml, darkbloom-sandbox's GitHub-side watchdog,…
davidtai Nov 5, 2026
bb84da5
Merge origin/dev into ci/sandbox-lanes
davidtai Nov 5, 2026
4242896
ci: bind tested-change records, full master selection, plan checks on…
davidtai Nov 5, 2026
2dfe425
ci: run a selection once more when SwiftPM finds build.db locked
davidtai Nov 5, 2026
33f082d
ci: retry a locked-build.db selection only when every test passed
davidtai Nov 5, 2026
bf58c88
ci: the gate checks the CI plans even after a failed test job
davidtai Nov 5, 2026
a7bc370
Merge remote-tracking branch 'origin/dev' into ci/sandbox-lanes
davidtai Nov 5, 2026
8e9cf3c
ci: run the share probe in cluster shard 1 after base; weights skip a…
davidtai Nov 5, 2026
f0c1914
ci: test the CI workflows' pull_request filters from their on: blocks
davidtai Nov 5, 2026
3cb53ea
ci: fix two plan self-test pins found on a Linux run of the gate's ch…
davidtai Nov 5, 2026
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
100 changes: 72 additions & 28 deletions .github/actions/provider-ci-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ name: Provider CI Build
description: Build full debug test products with lane-specific caches and source-matched Metal
inputs:
lane:
description: provider, sdk or cluster; each owns independent build outputs
description: provider or cluster; each owns independent build outputs
required: true
save-caches:
description: "'true' to save this lane's caches; provider-tests.yml passes true only for pushes to master and dev"
default: 'false'
strict-cache:
description: "'true' to restore only an entry of this exact recipe (provider-tests.yml passes true for master)"
default: 'false'
runs:
using: composite
steps:
Expand All @@ -13,7 +19,7 @@ runs:
LANE: ${{ inputs.lane }}
run: |
case "$LANE" in
provider|sdk|cluster) ;;
provider|cluster) ;;
*) echo "Unknown provider CI lane: $LANE" >&2; exit 2 ;;
esac
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
Expand All @@ -33,22 +39,57 @@ runs:
shell: bash
env:
LANE: ${{ inputs.lane }}
run: python3 scripts/provider-ci-cache.py keys --lane "$LANE" >> "$GITHUB_OUTPUT"
run: |
python3 scripts/provider-ci-cache.py keys --lane "$LANE" >> "$GITHUB_OUTPUT"
# actions/cache stores a path outside the workspace relative to the
# workspace, so SwiftPM's cache is shared only between equal layouts.
echo "home-layout=$(printf '%s\n' "$HOME" "$GITHUB_WORKSPACE" | shasum -a 256 | cut -c1-12)" >> "$GITHUB_OUTPUT"
echo "actions/cache compressor: $(command -v zstd >/dev/null && echo zstd || echo gzip)"
# Dependency clones for a cold build; the lane's own build cache already
# holds them when it is restored.
- name: Restore SwiftPM repositories
id: spm-repos
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/Library/Caches/org.swift.swiftpm/repositories
key: spm-repos-v1-${{ runner.os }}-${{ steps.keys.outputs.home-layout }}-${{ inputs.lane }}-${{ hashFiles('**/Package.resolved', '!**/.build/**') }}
restore-keys: spm-repos-v1-${{ runner.os }}-${{ steps.keys.outputs.home-layout }}-${{ inputs.lane }}-
# A Darkbloom host keeps the entries it saved, 10 GiB per repository, so a
# push saves at most one build per lane and UTC day there; every other
# runner keys the build by commit.
- name: Choose the Swift test build's cache key
id: build-key
shell: bash
env:
PREFIX: ${{ steps.keys.outputs.swift-prefix }}
COMMIT_KEY: ${{ steps.keys.outputs.swift-key }}
run: |
case "${RUNNER_NAME:-}" in
darkbloom-*) echo "key=${PREFIX}day-$(date -u +%F)" >> "$GITHUB_OUTPUT" ;;
*) echo "key=$COMMIT_KEY" >> "$GITHUB_OUTPUT" ;;
esac
# Restore tiers: this recipe's newest entry; then any recipe's with the
# same toolchain, dependencies and checkout path; then any entry with the
# same toolchain, checkout path and MLX pins, whose MLX objects stay valid.
# The build steps build once more from nothing if a looser entry fails.
# strict-cache (master) keeps only the first tier.
- name: Restore lane-specific Swift test build
id: swift-cache
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
provider-swift/.build
libs/mlx-swift-lm/.build
libs/darkbloom-cluster/.build
key: ${{ steps.keys.outputs.swift-key }}
restore-keys: ${{ steps.keys.outputs.swift-prefix }}
key: ${{ steps.build-key.outputs.key }}
restore-keys: |
${{ steps.keys.outputs.swift-prefix }}
${{ inputs.strict-cache != 'true' && steps.keys.outputs.swift-loose-prefix || '' }}
${{ inputs.strict-cache != 'true' && steps.keys.outputs.swift-mlx-prefix || '' }}
- name: Revalidate source timestamps and discard cached runtime resources
shell: bash
run: |
python3 scripts/provider-release-cache.py restore-mtimes
for root in provider-swift/.build libs/mlx-swift-lm/.build libs/darkbloom-cluster/.build; do
for root in provider-swift/.build libs/darkbloom-cluster/.build; do
[ -d "$root" ] || continue
find "$root" -type f -name mlx.metallib -delete
find "$root" -mindepth 3 -maxdepth 3 -type d \
Expand All @@ -59,43 +100,47 @@ runs:
id: provider-build
shell: bash
working-directory: provider-swift
env:
PROVIDER_CI_MATCHED_KEY: ${{ steps.swift-cache.outputs.cache-matched-key }}
PROVIDER_CI_STRICT_PREFIX: ${{ steps.keys.outputs.swift-prefix }}
# Instrumented for the coverage report. Both builds use the same flags,
# so neither rebuilds the other.
run: |
swift build --build-tests --enable-code-coverage
swift build --product darkbloom-fan-helper --enable-code-coverage
- name: Build all SDK test products against local MLX
if: inputs.lane == 'sdk'
id: sdk-build
shell: bash
working-directory: libs/mlx-swift-lm
run: |
swift package unedit --force mlx-swift >/dev/null 2>&1 || true
swift package edit --path ../mlx-swift mlx-swift
swift build --build-tests
build() {
swift build --build-tests --enable-code-coverage &&
swift build --product darkbloom-fan-helper --enable-code-coverage
}
build || { ../scripts/provider-ci-cold-retry.sh && build; }
- name: Build all cluster test products
if: inputs.lane == 'cluster'
id: cluster-build
shell: bash
working-directory: libs/darkbloom-cluster
run: swift build --build-tests
env:
PROVIDER_CI_MATCHED_KEY: ${{ steps.swift-cache.outputs.cache-matched-key }}
PROVIDER_CI_STRICT_PREFIX: ${{ steps.keys.outputs.swift-prefix }}
run: swift build --build-tests || { ../../scripts/provider-ci-cold-retry.sh && swift build --build-tests; }
- name: Record timestamps for successfully built sources
if: ${{ !cancelled() && (steps.provider-build.outcome == 'success' || steps.sdk-build.outcome == 'success' || steps.cluster-build.outcome == 'success') }}
if: ${{ !cancelled() && (steps.provider-build.outcome == 'success' || steps.cluster-build.outcome == 'success') }}
id: timestamps
shell: bash
run: python3 scripts/provider-release-cache.py snapshot-mtimes
# Pushes save their build. A pull request saves only when it restored
# nothing, so its later pushes do not each add an entry that evicts the
# base branch's entry from the repository cache.
# Only callers' trusted pushes save (save-caches): a pull request's entry
# is scoped to its merge ref, where nothing else restores it.
- name: Save lane-specific Swift test build
if: ${{ !cancelled() && steps.timestamps.outcome == 'success' && steps.swift-cache.outputs.cache-hit != 'true' && (github.event_name != 'pull_request' || steps.swift-cache.outputs.cache-matched-key == '') }}
if: ${{ !cancelled() && inputs.save-caches == 'true' && steps.timestamps.outcome == 'success' && steps.swift-cache.outputs.cache-hit != 'true' }}
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
provider-swift/.build
libs/mlx-swift-lm/.build
libs/darkbloom-cluster/.build
key: ${{ steps.keys.outputs.swift-key }}
key: ${{ steps.build-key.outputs.key }}
- name: Save SwiftPM repositories
if: ${{ !cancelled() && inputs.save-caches == 'true' && steps.timestamps.outcome == 'success' && steps.spm-repos.outputs.cache-hit != 'true' }}
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/Library/Caches/org.swift.swiftpm/repositories
key: ${{ steps.spm-repos.outputs.cache-primary-key }}
- name: Restore source-matched Metal cache
id: metallib-cache
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
Expand All @@ -111,14 +156,13 @@ runs:
run: |
cmake --version
case "$LANE" in
sdk) package=libs/mlx-swift-lm ;;
cluster) package=libs/darkbloom-cluster ;;
*) package=provider-swift ;;
esac
bin=$(swift build --package-path "$package" --show-bin-path)
./scripts/stage-test-metallib.sh "$bin"
- name: Save validated source-matched Metal cache
if: ${{ !cancelled() && steps.metallib.outcome == 'success' && steps.metallib-cache.outputs.cache-hit != 'true' }}
if: ${{ !cancelled() && inputs.save-caches == 'true' && steps.metallib.outcome == 'success' && steps.metallib-cache.outputs.cache-hit != 'true' }}
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ${{ runner.temp }}/metallib-cache
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI (dev)

# Pull requests into any branch but master (dev, and stacked feature
# branches) and pushes to dev run the provider and cluster tests
# (.github/workflows/provider-tests.yml) and nothing else: Release Integrity,
# Docs Lint and the contribution gates run only for master
# (.github/workflows/ci-master.yml, docs-impact.yml).
on:
push:
# Pushes to dev save the caches that pull requests into dev restore.
branches: [dev]
pull_request:
branches-ignore: [master, main]

permissions:
contents: read

# Only revisions of the same PR supersede each other; pushes stay independent.
# A push whose tree a pull request run already tested runs no test job
# (provider-plan.yml), so most push runs are a few GitHub-hosted steps.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
plan:
uses: ./.github/workflows/provider-plan.yml
permissions:
contents: read
actions: read

tests:
name: Tests
needs: plan
if: ${{ !cancelled() }}
uses: ./.github/workflows/provider-tests.yml
permissions:
contents: read
with:
provider: ${{ needs.plan.outputs.provider }}
cluster: ${{ needs.plan.outputs.cluster }}
mimo_audio: ${{ needs.plan.outputs.mimo_audio }}
changed_provider: ${{ needs.plan.outputs.changed_provider }}
changed_cluster: ${{ needs.plan.outputs.changed_cluster }}
changes_result: ${{ needs.plan.outputs.changes_result }}
skip: ${{ needs.plan.outputs.skip }}
tested_run: ${{ needs.plan.outputs.tested_run }}
tree: ${{ needs.plan.outputs.tree }}
base: ${{ needs.plan.outputs.base }}
head: ${{ needs.plan.outputs.head }}
routes: ${{ needs.plan.outputs.routes }}
strict_cache: false
Loading
Loading