Skip to content

Fix Halidoscope Windows bindgen build and skip C++ CI on Halidoscope-only PRs - #9727

Merged
alexreinking merged 1 commit into
mainfrom
alexreinking/fix-halidoscope-ci
Nov 29, 2026
Merged

alexreinking merged 1 commit into
mainfrom
alexreinking/fix-halidoscope-ci

Conversation

@alexreinking

@alexreinking alexreinking commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Fixes two CI issues blocking Halidoscope Dependabot PRs (#9719, #9720, #9721, #9726):

  1. Windows Halidoscope wheel build (STL1000 in bindgen): Drop .clang_args(["-x", "c++", "-std=c++17"]) in tools/halidoscope/src-tauri/build.rs so bindgen parses src/runtime/HalideRuntime.h in its default C mode. Recent windows-2025-vs2026 GitHub Actions runners updated MSVC to 14.52, whose yvals_core.h fails with STL1000: Unexpected compiler version, expected Clang 22 or newer under the runner's older libclang. Since build.rs only derives the C struct layout of halide_trace_packet_t, C mode avoids pulling in MSVC's C++ STL headers.
  2. Skip C++ test workflows on Halidoscope-only changes: Add tools/halidoscope/** to paths-ignore in testing-arm-linux.yml, testing-linux.yml, testing-macos.yml, testing-make.yml, and testing-windows.yml. Nothing in the CMake/Make Halide builds or C++ test suites depends on tools/halidoscope/**, and running them on Dependabot lockfile PRs triggers unnecessary CI load, flaky performance tests, and Codecov failures on macOS / arm-64 / coverage (where CODECOV_TOKEN is unavailable).

Once merged, we can @dependabot rebase #9719, #9720, #9721, and #9726 to pick up both fixes and rerun CI cleanly.

Checklist

  • Tests added or updated (not required for docs, CI config, or typo fixes)
  • Documentation updated (if public API changed)
  • Python bindings updated (if public API changed)
  • Benchmarks are included here if the change is intended to affect performance.
  • Commits include AI attribution where applicable (see Code of Conduct)

Generated with Antigravity

…only PRs

1. Drop .clang_args(["-x", "c++", "-std=c++17"]) in tools/halidoscope/src-tauri/build.rs
   so bindgen parses HalideRuntime.h in its default C mode. Recent Windows GitHub
   Actions runners (windows-2025-vs2026) updated MSVC to 14.52, whose yvals_core.h
   fails with STL1000 when parsed by an older libclang in C++ mode. bindgen only
   derives the C struct layout of halide_trace_packet_t, so C mode avoids pulling
   in MSVC's C++ STL headers.

2. Add tools/halidoscope/** to paths-ignore in the five C++ test workflows
   (testing-{arm-linux,linux,macos,make,windows}.yml) so Halidoscope-only PRs
   (including Dependabot lockfile updates) don't run the full Halide C++ test
   suite or fail macOS Codecov uploads due to missing Dependabot secrets.

Co-authored-by: Antigravity <antigravity@google.com>
@alexreinking
alexreinking force-pushed the alexreinking/fix-halidoscope-ci branch from 69fe300 to 03c7996 Compare November 28, 2026 22:44
@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.32%. Comparing base (52f9f66) to head (03c7996).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9727      +/-   ##
==========================================
+ Coverage   73.28%   73.32%   +0.03%     
==========================================
  Files         266      266              
  Lines       83977    83977              
  Branches    20616    20616              
==========================================
+ Hits        61544    61577      +33     
+ Misses      15943    15928      -15     
+ Partials     6490     6472      -18     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexreinking alexreinking added backport:pending Needs to be cherry-picked to the active release branch and removed backport labels Nov 29, 2026
@alexreinking
alexreinking merged commit 1b37204 into main Nov 29, 2026
32 checks passed
@alexreinking
alexreinking deleted the alexreinking/fix-halidoscope-ci branch November 29, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:pending Needs to be cherry-picked to the active release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants