Skip to content

ci : cover GGML_BACKEND_DL in ubuntu-22-clang-arm64 - #4047

Merged
danbev merged 2 commits into
ggml-org:masterfrom
apollo-2006:ci/backend-dl-regression-guard
Sep 24, 2026
Merged

danbev merged 2 commits into
ggml-org:masterfrom
apollo-2006:ci/backend-dl-regression-guard

Conversation

@apollo-2006

@apollo-2006 apollo-2006 commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #4031, which ended by saying a ctest step on a GGML_BACKEND_DL job would cover the combination but belonged in its own change. This is that change.

#4030 shipped because no workflow pairs the two. build-clang.yml, build-gcc.yml and build-sanitize.yml run ctest -L gh but never set GGML_BACKEND_DL; release.yml sets it but runs no tests. So three of the four tests that initialise a context aborted on GGML_ASSERT(device) under GGML_BACKEND_DL=ON and CI stayed green the whole time.

Three lines in build-clang.yml:

  • ubuntu-22-clang-arm64 matrix gains backend_dl: ['OFF', 'ON']
  • the cmake line gains -DGGML_BACKEND_DL=${{ matrix.backend_dl }}
  • the ccache key gains -dl-${{ matrix.backend_dl }}

Two legs become four.

Why this job

Native arm64 runner, no Docker and no QEMU. It already runs ctest -L gh and already triggers on push, pull_request and workflow_dispatch, so the coverage arrives without touching anything else in the workflow.

Does the guard catch #4030

Reverting #4031 on a -DGGML_BACKEND_DL=ON build, ctest -L gh:

test #4031 reverted master
test-whisper-zero-samples aborted passes
test-parakeet aborted passes
total 2 of 4 4 of 4

The ON legs go red on a tree carrying the bug and green on master. That is the whole argument for the change.

Why the values are quoted

YAML reads bare ON/OFF as booleans. Unquoted they reach cmake as true/false and render as dl-true in job names. Quoted they stay OFF/ON, and the job names on the fork run read (Debug, OFF) and (Release, ON).

Why the ccache key changes

GGML_CCACHE is option(...) ON at ggml/CMakeLists.txt:125, and ggml/src/CMakeLists.txt:68 auto-detects ccache into RULE_LAUNCH_COMPILE. So this job uses ccache even though its cmake line never sets a COMPILER_LAUNCHER. Without the key change the OFF and ON legs would race to save one entry on a master push. save: is gated to push-on-master, so PRs only restore.

Verification

Fork run 34251240356 on ubuntu-22.04-arm, four legs, all green. Both ON legs log -DGGML_BACKEND_DL=ON in the configure step and finish 100% tests passed, 0 tests failed out of 4.

Not in this PR

build-gcc.yml and build-sanitize.yml could take the same axis. One job is enough to guard the combination and extra legs cost runner time, so I have left them alone. The release path is separate: release.yml sets GGML_BACKEND_DL=ON and runs no tests, and macos-cpu is the only place that flag meets GGML_CPU_ALL_VARIANTS=ON on Apple hardware. That is #4029.

Copilot AI lite review requested due to automatic review settings September 8, 2026 16:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment thread .github/workflows/build-clang.yml Outdated
fail-fast: false
matrix:
build: [Debug, Release]
backend_dl: ['OFF', 'ON']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think running this two additional times might be a bit wasteful (we have to be a bit mindful about our resources in CI). I think it would be enough to just run one additional job with GGML_BACKEND_DL=ON.

I tried something like this and it seems to work:

  ubuntu-22-clang-arm64:
    name: ubuntu-22-clang-arm64 (${{ matrix.build }}, backend DL ${{ matrix.backend_dl }})
    runs-on: ubuntu-22.04-arm

    strategy:
      fail-fast: false
      matrix:
        build: [Debug, Release]
        backend_dl: ['OFF']
        include:
          - build: Debug
            backend_dl: 'ON'

This also includes setting the name as it makes it easier to read it in github actions.

@apollo-2006

Copy link
Copy Markdown
Contributor Author

Thanks @danbev, applied your suggested matrix as is. It's down to 3 jobs now: Debug/OFF, Release/OFF and Debug/ON. The ccache key already includes the dl suffix, so no change was needed there.

@apollo-2006
apollo-2006 requested a review from danbev September 23, 2026 16:46
@danbev
danbev merged commit d09f61a into ggml-org:master Sep 24, 2026
41 checks passed
@danbev

danbev commented Sep 24, 2026

Copy link
Copy Markdown
Member

@apollo-2006 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants