Repository navigation
Detection fixes: heuristic CI OSes from runner lines only; a CMake generator names no compiler a command names - #371
Merged
Conversation
…onfigure runners
A configuration that is not parsed gets one job per OS it names, and any mention counted: docker-code-server's
Jenkinsfile, which builds on Linux, became a Windows job too because an image label's description says code-server
runs on "your Mac, Windows". Only the lines that configure where a job runs name its OS now: a key such as `vmImage`,
`image`, `os`, `platform`, `agent`, `label`, `machine`, `executor`, `resource_class`, `pool`, `runs-on`, CircleCI's
`macos` or Cirrus's `windows_container`, or a Jenkinsfile's `agent { label … }` and `node(…)`; a comment after the
value is not read.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
llama.cpp's SYCL build runs `cmake -G "MinGW Makefiles" … -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=icx`, and the generator's name was read as gcc. A generator does pick the compiler a build uses (MinGW Makefiles gcc, Visual Studio MSVC), but only when the command names none: where a compiler variable or a toolset (`-T ClangCL`) names it, the generator now shows nothing. `cl` named as a compiler (`-DCMAKE_C_COMPILER=cl`, `CC=cl`) is MSVC. What a command shows about its compiler is the build system's to say: `BuildSystem.compiler_evidence`, as `build_types` is, which CMake reads with the definitions parser `cmake -P` already used (now `definitions`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #371 +/- ##
=======================================
Coverage 99.72% 99.72%
=======================================
Files 313 313
Lines 19984 20021 +37
Branches 2337 2346 +9
=======================================
+ Hits 19929 19966 +37
Misses 55 55 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two detection fixes the #370 corpus run showed. Both are independent of #370.
CI files scanned heuristically take their OSes from the lines that configure runners
A configuration that isn't parsed (Azure Pipelines, AppVeyor, CircleCI, Travis, Jenkins, …) gets one job per OS it names, and any mention of an OS used to count: a description, a comment, a command or a file name.
Only the lines that configure where a job runs count now. These are a key such as
vmImage,image,os,platform,agent,label,machine,executor,resource_class,pool,runs-on, CircleCI'smacosor Cirrus'swindows_container, or a Jenkinsfile'sagent { label … }andnode(…). A key's value may also be:image:then- Visual Studio 2017);build-image: &image).A comment after the value isn't read.
A CMake generator shows the compiler only when the command names none
llama.cpp's SYCL build runs
cmake -G "MinGW Makefiles" … -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=icx, and the generator's name was read as gcc. A generator does pick the build's compiler (MinGW Makefiles gcc, Visual Studio MSVC), but only when the command names none. Now:-T ClangCL) names the compiler, the generator shows nothing.clis MSVC:clnamed as a compiler (-DCMAKE_C_COMPILER=cl,CC=cl) counts as MSVC.What a command shows about its compiler is the build system's to say. It is a new
BuildSystem.compiler_evidencehook, shaped likebuild_types. CMake implements it with the-Ddefinitions parser thatcmake -Palready used, now shared asdefinitions.Corpus: 5 of 235 projects differ, each a correction
migrate.windows-amd64.exe.tar.gz). It is a Linux job only now.# imageName: 'macos-10.13'). Only its Windows job is left.cl), not gcc.-T ClangCLjobs are clang, which is CMake's compiler ID for clang-cl, not MSVC as well.Verified:
🤖 Generated with Claude Code
https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt