Skip to content

fix: wrong clang/toolchain for windows - #16191

Merged
JinHai-CN merged 2 commits into
infiniflow:mainfrom
Haruko386:mutex
Jun 18, 2026
Merged

JinHai-CN merged 2 commits into
infiniflow:mainfrom
Haruko386:mutex

Conversation

@Haruko386

Copy link
Copy Markdown
Member

What problem does this PR solve?

As title

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

@Haruko386 Haruko386 added 🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration labels Jun 18, 2026
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 18, 2026
@coderabbitai

coderabbitai Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9cfd1e02-d898-46fc-b3cf-37e1ee1a1dff

📥 Commits

Reviewing files that changed from the base of the PR and between 962f617 and 775464c.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

📝 Walkthrough

Walkthrough

The Windows CLI release workflow is updated to use explicit MSYS2 Clang compiler paths. The build_cli matrix now installs lld alongside Clang for both x86_64 (CLANG64) and ARM64 (CLANGARM64) configurations, and sets the cc variable to absolute executable paths. The Windows build step then uses this cc value, verifies the compiler exists, and explicitly sets all CGO and Go environment variables before invoking go build.

Changes

Windows CLI Clang Compiler Setup

Layer / File(s) Summary
MSYS2 Clang matrix configuration with lld
.github/workflows/release.yml
x86_64 (CLANG64) and arm64 (CLANGARM64) matrix entries install lld packages alongside the Clang toolchain and set cc to the corresponding absolute MSYS2 Clang executable paths (/clang64/bin/clang and /clangarm64/bin/clang).
Build step compiler validation and CGO environment
.github/workflows/release.yml
The Windows CLI build step now derives $cc from matrix.cc, validates that the compiler executable exists before proceeding, explicitly sets CGO_ENABLED, CC, CGO_CFLAGS, CGO_LDFLAGS, GOOS, and GOARCH, and outputs the compiler path and version information.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • infiniflow/ragflow#16082: Modifies the same build_cli job in release.yml for Windows x86_64/ARM64 matrix entries and introduces compiler/toolchain configuration.
  • infiniflow/ragflow#16184: Updates .github/workflows/release.yml's Windows CLI build step with explicit CGO environment variables (CGO_CFLAGS, CGO_LDFLAGS, GOOS, GOARCH).
  • infiniflow/ragflow#16160: Modifies .github/workflows/release.yml's Windows/Go release-binary handling and workflow structure.

Poem

🐇 Hoppity-hop through the Windows build,
With Clang and lld, our toolkit's filled!
Paths explicit, no more guessing games,
CGO flags dance with their proper names.
The compiler knows just where to go—
A fluffy fix that steals the show! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is incomplete. It references the title ('As title') instead of providing substantive details about the problem being solved, the specific issue encountered, or why the changes fix it. Expand the description with concrete details: what was wrong with the previous clang/toolchain setup, what symptoms or failures resulted, and how the changes to the MSYS2 matrix and build script resolve the issue.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix: wrong clang/toolchain for windows' directly summarizes the main change - correcting clang/toolchain configuration for Windows builds in the CI workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.16%. Comparing base (a70c7e8) to head (775464c).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16191   +/-   ##
=======================================
  Coverage   93.16%   93.16%           
=======================================
  Files          10       10           
  Lines         717      717           
  Branches      118      118           
=======================================
  Hits          668      668           
  Misses         29       29           
  Partials       20       20           

☔ 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.

@JinHai-CN
JinHai-CN merged commit 1a8ee8b into infiniflow:main Jun 18, 2026
3 checks passed
This was referenced Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants