Skip to content

fix: hard-coded paths for Windows C compiler - #16193

Merged
asiroliu merged 2 commits into
infiniflow:mainfrom
Haruko386:main
Jun 18, 2026
Merged

asiroliu merged 2 commits into
infiniflow:mainfrom
Haruko386:main

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)

@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: 3c2651af-c6de-4ae9-891c-5e47b510e90f

📥 Commits

Reviewing files that changed from the base of the PR and between 563d855 and 48521f4.

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

📝 Walkthrough

Walkthrough

The release workflow's Windows build_cli matrix entries are updated to remove hardcoded cc compiler paths and add output_ext and arm64 MSYS2 package fields. The "Configure Windows C compiler" step is rewritten to run under the MSYS2 shell, locate clang.exe at runtime, write the resolved path to GITHUB_ENV as CC, and print the compiler version. The "Build Go CLI release binaries" step then reads CC from the environment and fails early if it is unset.

Changes

Runtime clang resolution for Windows CLI builds

Layer / File(s) Summary
Matrix cleanup, runtime CC resolution, and build validation
.github/workflows/release.yml
Matrix entries drop hardcoded cc fields and gain output_ext and MSYS2 package fields. The configure step switches to an MSYS2 shell to resolve clang.exe and write CC to GITHUB_ENV. The build step reads $env:CC and aborts if CC is null or blank.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • infiniflow/ragflow#16082: Modifies the same build_cli job in .github/workflows/release.yml for Windows CLI release builds, directly related to the clang/CC toolchain logic this PR changes.
  • infiniflow/ragflow#16191: Also modifies the Windows CI release workflow's build_cli matrix and CC/clang selection, making it a direct predecessor to this fix.

Suggested labels

🐞 bug, ci, size:XS

🐇 Hop, hop, no more hardcoded path,
The clang is found along the MSYS2 path!
which clang.exe — ah, there you are,
Written to GITHUB_ENV like a shining star. ✨
If CC be blank, the build shall halt —
No mystery compiler, no one's fault! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description is incomplete and vague. It references 'As title' instead of providing substantive detail, and lacks the important context about the implementation approach and rationale. Expand 'What problem does this PR solve?' section with concrete details about the issue, impact, and how the runtime resolution approach solves it better than hard-coded paths.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix: hard-coded paths for Windows C compiler' clearly and specifically describes the main change, which removes hard-coded compiler paths from the Windows build pipeline and resolves them at runtime.
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.

@Haruko386
Haruko386 marked this pull request as draft June 18, 2026 10:18
@Haruko386
Haruko386 marked this pull request as ready for review June 18, 2026 10:18
@asiroliu asiroliu added the ci Continue Integration label Jun 18, 2026
@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 (5eedd13) to head (48521f4).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16193   +/-   ##
=======================================
  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.

@asiroliu
asiroliu merged commit eb5fcce into infiniflow:main Jun 18, 2026
12 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

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