Skip to content

ci: narrow macOS test scope to datafusion-ffi, run benchmarks on amd64#22048

Merged
blaginin merged 1 commit intomainfrom
db/speed-up-ci-macos-scope
May 6, 2026
Merged

ci: narrow macOS test scope to datafusion-ffi, run benchmarks on amd64#22048
blaginin merged 1 commit intomainfrom
db/speed-up-ci-macos-scope

Conversation

@blaginin
Copy link
Copy Markdown
Member

@blaginin blaginin commented May 6, 2026

Follow up #21941

The macos-aarch64 job took ~22 min - 68% compile, 25% test. An audit of macos-only PR failures over Mar-May 2026 (1000 failed PR runs, 30 with macOS as the sole signal) found that nearly all the unique signal was either:

  • flaky sqllogictest metrics (~67%, e.g. push_down_filter / explain_analyze .slt files with platform-dependent scan_efficiency_ratio numbers),
  • real bugs in datafusion-benchmarks (which amd64 was excluding), or
  • one genuinely macOS-specific FFI cdylib loading bug (datafusion/ffi/src/tests/utils.rs path resolution).

So the only thing macOS uniquely catches is FFI dylib loading. Scope the macOS job down to cargo test -p datafusion-ffi --features integration-tests and let amd64 pick up the datafusion-benchmarks coverage that was being dropped by the linux-test --exclude list.

The macos-aarch64 job took ~22 min — 68% compile, 25% test. An audit of
macos-only PR failures over Mar–May 2026 (1000 failed PR runs, 30 with
macOS as the sole signal) found that nearly all the unique signal was
either:
  - flaky sqllogictest metrics (~67%, e.g. push_down_filter / explain_analyze
    .slt files with platform-dependent scan_efficiency_ratio numbers),
  - real bugs in datafusion-benchmarks (which amd64 was excluding), or
  - one genuinely macOS-specific FFI cdylib loading bug
    (datafusion/ffi/src/tests/utils.rs path resolution).

So the only thing macOS uniquely catches is FFI dylib loading. Scope the
macOS job down to `cargo test -p datafusion-ffi --features integration-tests`
and let amd64 pick up the datafusion-benchmarks coverage that was being
dropped by the linux-test --exclude list.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@blaginin blaginin self-assigned this May 6, 2026
@github-actions github-actions Bot added the development-process Related to development process of DataFusion label May 6, 2026
@blaginin blaginin marked this pull request as ready for review May 6, 2026 17:46
@alamb
Copy link
Copy Markdown
Contributor

alamb commented May 6, 2026

I think we should try this to save some carbon and if it has issues we can add it back

@blaginin blaginin added this pull request to the merge queue May 6, 2026
Merged via the queue into main with commit 8d9ec68 May 6, 2026
102 of 109 checks passed
@blaginin blaginin deleted the db/speed-up-ci-macos-scope branch May 6, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process Related to development process of DataFusion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants