Commit 5664957
committed
CI fixes: SpotBugs suppressions, spirv-headers, clang-cl for Windows arm64
Fixes three PR #293 CI failures.
1. SpotBugs (spotbugs-exclude.xml): the branch's new server classes tripped 14
fb-contrib/findsecbugs findings not yet covered by the exclude file. All are
false-positives or intentional tradeoffs mirroring suppressions the project
already applies elsewhere. Added six method-scoped Match blocks with rationale:
- NativeServer: IMC_IMMATURE_CLASS_NO_EQUALS, MDM_THREAD_YIELD (main() poll),
UVA_USE_VAR_ARGS (native JNI method), WEM_WEAK_EXCEPTION_MESSAGING.
- ServerLauncher.main: THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION.
- OpenAiServerCli parse/usage/parseChatTemplateKwargs: ENMI_NULL_ENUM_VALUE
(@nullable CacheType unset sentinel), POTENTIAL_XML_INJECTION + PRMC (plain-
text usage() help, no XML), EXS_EXCEPTION_SOFTENING (Jackson->CLI error, cause
chained), PSC_PRESIZE_COLLECTIONS.
- OpenAiServerCli$Options.getChatTemplateKwargs: EI_EXPOSE_REP (returns an
already-unmodifiable map).
Verified: mvn spotbugs:check -> BugInstance size 0, BUILD SUCCESS.
2. Linux Vulkan (publish.yml): both build-linux-*-vulkan jobs failed
find_package(SPIRV-Headers CONFIG REQUIRED) because the apt install omitted it.
Added spirv-headers to both apt lines (exact parity with upstream llama.cpp's
build-vulkan.yml: 'glslc libvulkan-dev spirv-headers').
3. Windows arm64 (publish.yml + CLAUDE.md): ggml aborts 'MSVC is not supported for
ARM, use clang'. The generator (Ninja) was never the issue — the compiler was.
Switched the job to clang-cl (-DCMAKE_C_COMPILER=clang-cl
-DCMAKE_CXX_COMPILER=clang-cl): it satisfies ggml's guard
(if (MSVC AND NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")) while keeping
CMake's MSVC=TRUE, so our static /MT CRT block still applies and the runner +
Ninja + ctest all stay. msvc-dev-cmd (arm64) supplies the MSVC headers/libs.
First-run watch item: clang-cl must be on PATH (VS Clang component / LLVM); if
CI reports it missing, add an LLVM setup step.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HL7d4uQ3cKR5HwYFPvZvv71 parent dca1b20 commit 5664957
3 files changed
Lines changed: 113 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
884 | 893 | | |
885 | 894 | | |
886 | 895 | | |
| |||
898 | 907 | | |
899 | 908 | | |
900 | 909 | | |
| 910 | + | |
901 | 911 | | |
902 | | - | |
| 912 | + | |
903 | 913 | | |
904 | 914 | | |
905 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
299 | 307 | | |
300 | 308 | | |
301 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
625 | 716 | | |
0 commit comments