Skip to content

fix(ci): make master green after the library merge - #12855

Merged
mudler merged 1 commit into
masterfrom
fix/master-ci
Oct 23, 2026
Merged

mudler merged 1 commit into
masterfrom
fix/master-ci

Conversation

@mudler-agent

Copy link
Copy Markdown
Collaborator

Master has been red since the library change (#12816). Three jobs failed. Two of them share one cause.

Failures and fixes

  1. golangci-lint: core/http/endpoints/mcp/localai_assistant_test.go did not compile. The library change added InstallLibraryBackend to localaitools.LocalAIClient, and the test stubClient was not updated. The code is right and the test was out of date. Fix: add the method to the stub.

  2. tests-linux and tests-apple: the Ginkgo run exits with code 2, but no spec fails. Ginkgo reports Failed to compile mcp for the same stub error as in (1). The "Ran 132 of 154 Specs" line belongs to a different suite that passed. Both jobs are fixed by the change in (1).

  3. tests-ui-e2e, settings-page.spec.js, "every real field sits in exactly one group": the page now shows 58 fields, the spec expected 57. The library change added the official_libraries setting ("Use official libraries") to settingsSchema.js, in the backends group. Each field is in exactly one group, and the setting count went from 57 to 58 in the schema (55 settings plus the three branding images). The count is the intended one, so the spec now expects 58 (the check and the "Search all N settings" label). The read-only gallery view is not the cause.

The "protoc-gen-go: program not found" message

Warning text only. The Makefile echoes a recipe comment that contains that phrase. The protogen-go recipe puts the Go bin directory on PATH, and the generated files were built in every job. It is not a real problem.

Run here

  • go vet on core/http/endpoints/mcp and pkg/mcp/localaitools/...: clean.
  • Ginkgo on core/http/endpoints/mcp and pkg/mcp/localaitools/... (4 suites): all passed, including the 55 localaitools specs and 25 httpapi specs.
  • React UI unit tests (npm run test:unit): 180 passed, 0 failed.
  • Playwright e2e/settings-page.spec.js against a locally built test server (system Chrome): before the fix 28 passed and 1 failed (received 58); after the fix 29 passed.

Not run here

  • The full CI matrix: the whole Ginkgo run and the other e2e specs.
  • golangci-lint: the local binary cannot load the standard library, so it only reports typecheck noise. The go vet result covers the compile error it reported in CI.

The library change added InstallLibraryBackend to the LocalAIClient
interface, but the stub in the MCP endpoint test was not updated. The
mcp test package no longer compiled, which failed golangci-lint and
stopped the Ginkgo run in tests-linux and tests-apple.

The same change added the official_libraries setting, so the Settings
page now shows 55 settings plus the three branding images. Update the
count the grouping spec expects from 57 to 58.

Assisted-by: Claude:claude-sonnet-5-5 [Claude Code]
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler
mudler merged commit 6108ba6 into master Oct 23, 2026
1 of 23 checks passed
@mudler
mudler deleted the fix/master-ci branch October 23, 2026 10:27
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