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

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>
Co-authored-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
mudler-agentandEttore Di Giacinto authored and GitHub committed 2026-10-23 12:27:29 +02:00
1 parent 7d528e90f4
commit 6108ba69fa
2 files changed
+7 -3

No files matched your search

@@ -71,6 +71,10 @@ func (stubClient) ListKnownBackends(_ context.Context) ([]schema.KnownBackend, e
return []schema.KnownBackend{}, nil
}
func (stubClient) InstallLibraryBackend(_ context.Context, _ localaitools.InstallLibraryBackendRequest) (*localaitools.InstallLibraryBackendResult, error) {
return &localaitools.InstallLibraryBackendResult{Status: "installed", Name: "stub-backend"}, nil
}
func (stubClient) InstallBackend(_ context.Context, _ localaitools.InstallBackendRequest) (string, error) {
return "stub-backend-job", nil
}
+3 -3
View File
@@ -34,9 +34,9 @@ test.describe('Settings: groups and search', () => {
seen.add(key)
}
}
// 54 settings plus the three branding images.
expect(seen.size).toBe(57)
await expect(page.getByLabel(/Search all 57 settings/)).toBeVisible()
// 55 settings plus the three branding images.
expect(seen.size).toBe(58)
await expect(page.getByLabel(/Search all 58 settings/)).toBeVisible()
})
test('a group lists its settings, and the memory group shows memory use now', async ({ page }) => {