Skip to content

llama : allow building all tests on windows when not using shared libs - #13980

Merged
slaren merged 3 commits into
masterfrom
sl/tests-windows-shared-libs
Jun 9, 2025
Merged

slaren merged 3 commits into
masterfrom
sl/tests-windows-shared-libs

Conversation

@slaren

@slaren slaren commented Jun 2, 2025

Copy link
Copy Markdown
Member

The current condition is unnecessarily strict, when building without shared libraries (BUILD_SHARED_LIBS=OFF) the tests can still be built on windows.

@github-actions github-actions Bot added the testing Everything test related label Jun 2, 2025
@slaren

slaren commented Jun 2, 2025

Copy link
Copy Markdown
Member Author

test-chat fails on Windows.

[test_msg_diffs_compute]
[test_msgs_oaicompat_json_conversion]
[test_tools_oaicompat_json_conversion]
[test_template_output_parsers]
# Reading: models/templates/CohereForAI-c4ai-command-r-plus-tool_use.jinja
# Reading: models/templates/CohereForAI-c4ai-command-r7b-12-2024-tool_use.jinja
# Reading: models/templates/google-gemma-2-2b-it.jinja
# Reading: models/templates/microsoft-Phi-3.5-mini-instruct.jinja
# Reading: models/templates/mistralai-Mistral-Nemo-Instruct-2407.jinja
Expected:
Actual: [TOOL_CALLS][{"name": "special_function", "arguments": {"arg1": 1}, "id": "123456789"}]

@github-actions github-actions Bot added the devops improvements to build systems and github actions label Jun 3, 2025
@ggerganov

Copy link
Copy Markdown
Member

cc @ochafik Any ideas why it fails on Windows?

@CISC

CISC commented Jun 3, 2025

Copy link
Copy Markdown
Member

cc @ochafik Any ideas why it fails on Windows?

My guess would be the regex.

@slaren
slaren requested a review from ggerganov June 9, 2025 14:36
@ggerganov
ggerganov force-pushed the sl/tests-windows-shared-libs branch from 097eef5 to 15be0c9 Compare June 9, 2025 15:56
@slaren

slaren commented Jun 9, 2025

Copy link
Copy Markdown
Member Author

I think it may be preferable to merge this even if it is going to cause CI to fail every time, because it is an issue that can affect a lot of people and should not be ignored.

@slaren
slaren merged commit 7f4fbe5 into master Jun 9, 2025
@slaren
slaren deleted the sl/tests-windows-shared-libs branch June 9, 2025 18:03
gabe-l-hart added a commit to gabe-l-hart/llama.cpp that referenced this pull request Jun 10, 2025
* origin/master:
llama : support GEGLU for jina-bert-v2 (ggml-org#14090)
vulkan: force device 0 in CI (ggml-org#14106)
Fixed spec timings to: accepted/tested instead of accepted/drafted (ggml-org#14104)
sync : ggml
ggml : fix weak alias win32 (whisper/0)
Vulkan: Don't default to CPU device (like llvmpipe), even if no other device is available, to allow fallback to CPU backend (ggml-org#14099)
rpc : nicer error messages for RPC server crash (ggml-org#14076)
sync : ggml
Add in-build ggml::ggml ALIAS library (ggml/1260)
metal : use less stack memory in FA kernel (ggml-org#14088)
kv-cache : fix shift and defrag logic (ggml-org#14081)
llama : allow building all tests on windows when not using shared libs (ggml-org#13980)
qnixsynapse pushed a commit to janhq/llama.cpp that referenced this pull request Jul 2, 2025
ggml-org#13980)

* llama : allow building all tests on windows when not using shared libraries

* add static windows build to ci

* tests : enable debug logs for test-chat

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
qnixsynapse pushed a commit to janhq/llama.cpp that referenced this pull request Jul 6, 2025
ggml-org#13980)

* llama : allow building all tests on windows when not using shared libraries

* add static windows build to ci

* tests : enable debug logs for test-chat

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
qnixsynapse pushed a commit to janhq/llama.cpp that referenced this pull request Jul 6, 2025
ggml-org#13980)

* llama : allow building all tests on windows when not using shared libraries

* add static windows build to ci

* tests : enable debug logs for test-chat

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
qnixsynapse pushed a commit to janhq/llama.cpp that referenced this pull request Jul 10, 2025
ggml-org#13980)

* llama : allow building all tests on windows when not using shared libraries

* add static windows build to ci

* tests : enable debug logs for test-chat

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
ggml-org#13980)

* llama : allow building all tests on windows when not using shared libraries

* add static windows build to ci

* tests : enable debug logs for test-chat

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
ggml-org#13980)

* llama : allow building all tests on windows when not using shared libraries

* add static windows build to ci

* tests : enable debug logs for test-chat

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
ggml-org#13980)

* llama : allow building all tests on windows when not using shared libraries

* add static windows build to ci

* tests : enable debug logs for test-chat

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
ggml-org#13980)

* llama : allow building all tests on windows when not using shared libraries

* add static windows build to ci

* tests : enable debug logs for test-chat

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
ggml-org#13980)

* llama : allow building all tests on windows when not using shared libraries

* add static windows build to ci

* tests : enable debug logs for test-chat

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
ggml-org#13980)

* llama : allow building all tests on windows when not using shared libraries

* add static windows build to ci

* tests : enable debug logs for test-chat

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
frostyautumnleaf pushed a commit to frostyautumnleaf/llama.cpp that referenced this pull request Oct 5, 2026
ggml-org#13980)

* llama : allow building all tests on windows when not using shared libraries

* add static windows build to ci

* tests : enable debug logs for test-chat

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops improvements to build systems and github actions testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants