Skip to content

Fix: Unbreak CI on main-dev - #833

Closed
swasik wants to merge 2 commits into
unum-cloud:main-devfrom
swasik:fix-main-dev-ci
Closed

swasik wants to merge 2 commits into
unum-cloud:main-devfrom
swasik:fix-main-dev-ci

Conversation

@swasik

@swasik swasik commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Every pull request to main-dev now fails six jobs, whatever it changes. #805, rebased onto 33d3ab6, shows all six. The causes are the runner and action updates in 0d471fa, the Dockerfile removal in 33d3ab6, and the NumKong 7.8.6 move in 343dc7b:

Job Error Fix
Ubuntu (GCC 13), Android ×2 No supported distribution was found for input adopt actions/setup-java@v6 dropped adopt; use temurin, its successor
Windows (ARM) Generator Visual Studio 17 2022 could not find any instance of Visual Studio windows-2025 is now the windows-2025-vs2026 image; let CMake pick the installed Visual Studio, as the x86 job does (its log shows Building for: Visual Studio 18 2026)
Windows (X86) node-gyp 11.5: Could not find any Visual Studio installation to use node-gyp 12.1.0 knows Visual Studio 18 2026
Windows (X86), behind the error above lib.obj : error LNK2001: unresolved external symbol __imp_nk_capabilities and 4 more since NumKong 7.8.5, NK_DYNAMIC defaults to __declspec(dllimport) on Windows; the addon links NumKong statically from numkong_lib, so define NK_DYNAMIC empty for it
Build Docker open Dockerfile: no such file or directory 33d3ab6 removed the Dockerfile; drop the job

The link error has failed Windows (X86) on every pull request since 10-25, e.g. #796, #828 and #832. The other errors started after 0d471fa and 33d3ab6 on 10-31.

The same adopt and generator fixes go into release.yml, which has the same steps.

Two commits:

  1. Make: Keep CI jobs running on the current runners: the workflow changes.
  2. Fix: Build the JavaScript addon on Windows again: the node-gyp bump in package.json and the NK_DYNAMIC define in binding.gyp.

These jobs only run on pull requests, so this PR's own CI is their first test.

Three jobs fail on every pull request to main-dev, whatever it changes:

- `actions/setup-java@v6` no longer knows the `adopt` distribution, so
  Ubuntu (GCC 13) and both Android jobs stop at "Setup Java". Use
  `temurin`, the successor of AdoptOpenJDK, in both workflows.
- `windows-2025` now runs the `windows-2025-vs2026` image, which has
  Visual Studio 18 2026 only, so the pinned "Visual Studio 17 2022"
  generator fails in Windows (ARM) and in the release ARM64 build. Let
  CMake pick the installed Visual Studio, as the x86 jobs already do.
- "Build Docker" still builds the `Dockerfile` that 33d3ab6 removed.
  Drop the job.
Windows (X86) fails in two places when it builds the addon:

- node-gyp 11 doesn't recognize Visual Studio 18 2026, the only one on
  the `windows-2025` runners now, and stops with "Could not find any
  Visual Studio installation to use". node-gyp 12.1.0 adds it.
- Since NumKong 7.8.5 (moved to in 343dc7b), `NK_DYNAMIC` defaults to
  `__declspec(dllimport)` on Windows whenever `NK_DYNAMIC_DISPATCH` is
  set, for consumers of NumKong's DLL. The addon compiles NumKong into
  the static `numkong_lib` instead, so linking `usearch.node` failed
  with unresolved `__imp_nk_*` symbols. Define `NK_DYNAMIC` empty for
  the addon on Windows, so it calls the statically linked functions.
@ashvardanian

Copy link
Copy Markdown
Member

@swasik, thanks for keeping CI alive! main-dev now matches main, where CI is split per binding, with the Java, Visual Studio 2026 and JavaScript jobs rebuilt, so these fixes are superseded and I'm closing this. We're still thinking about the best way to ship and organize all those builds, since multi-versioned kernels can make CI very slow. The 3.0 release candidate is on main, open to early adopters; see the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants