Skip to content

Wire optimizer into server startup and CLI #7983

Wire optimizer into server startup and CLI

Wire optimizer into server startup and CLI #7983

Triggered via pull request January 29, 2026 17:17
Status Failure
Total duration 2m 36s
Artifacts

run-on-pr.yml

on: pull_request
Linting  /  Lint Go Code
1m 4s
Linting / Lint Go Code
Tests  /  Test Go Code
2m 32s
Tests / Test Go Code
Docs  /  Verify Swagger Documentation
1m 56s
Docs / Verify Swagger Documentation
Codegen  /  Verify Code Generation
37s
Codegen / Verify Code Generation
Spellcheck  /  Codespell
16s
Spellcheck / Codespell
License Headers  /  Check License Headers
21s
License Headers / Check License Headers
Security Scan  /  Trivy Repository Scan
24s
Security Scan / Trivy Repository Scan
Security Scan  /  Trivy Configuration Scan
22s
Security Scan / Trivy Configuration Scan
Security Scan  /  Go Vulnerability Check
42s
Security Scan / Go Vulnerability Check
Helm Charts  /  Lint and Test Helm Charts
25s
Helm Charts / Lint and Test Helm Charts
E2E Tests  /  Build ToolHive Binary
E2E Tests / Build ToolHive Binary
Operator CI  /  Build Operator
Operator CI / Build Operator
Operator CI  /  Generate CRD Docs
Operator CI / Generate CRD Docs
Operator CI  /  Generate CRDs
Operator CI / Generate CRDs
Operator CI  /  Operator Tests
Operator CI / Operator Tests
Operator CI  /  Operator Tests Integration
Operator CI / Operator Tests Integration
Matrix: Operator CI / E2E Tests Operator
Waiting for pending jobs
Matrix: E2E Tests / e2e-tests-core
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 2 warnings
Helm Charts / Lint and Test Helm Charts
Process completed with exit code 200.
Task failed
task: Task "helm-docs" does not exist
Codegen / Verify Code Generation
Process completed with exit code 201.
Codegen / Verify Code Generation: pkg/vmcp/server/adapter/capability_adapter.go#L221
undefined: CreateOptimizerToolsFromProvider
Codegen / Verify Code Generation
undefined: OptimizerHandlerProvider
Security Scan / Go Vulnerability Check: cmd/vmcp/app/commands.go#L452
undefined: vmcpoptimizer.NewEmbeddingOptimizer
Security Scan / Go Vulnerability Check: cmd/vmcp/app/commands.go#L450
cfg.Optimizer.Enabled undefined (type *"github.com/stacklok/toolhive/pkg/vmcp/config".OptimizerConfig has no field or method Enabled)
Security Scan / Go Vulnerability Check: pkg/vmcp/server/status_reporting.go#L95
healthMon.UpdateBackends undefined (type *health.Monitor has no field or method UpdateBackends)
Security Scan / Go Vulnerability Check: pkg/vmcp/server/status_reporting.go#L63
healthMon.WaitForInitialHealthChecks undefined (type *health.Monitor has no field or method WaitForInitialHealthChecks)
Security Scan / Go Vulnerability Check: pkg/vmcp/server/server.go#L983
s.config.Optimizer.HandleSessionRegistration undefined (type optimizer.Optimizer has no field or method HandleSessionRegistration)
Security Scan / Go Vulnerability Check: pkg/vmcp/server/server.go#L657
s.optimizerIntegration.Close undefined (type optimizer.Optimizer has no field or method Close)
Security Scan / Go Vulnerability Check: pkg/vmcp/server/server.go#L560
s.config.OptimizerConfig.Enabled undefined (type *"github.com/stacklok/toolhive/pkg/vmcp/config".OptimizerConfig has no field or method Enabled)
Security Scan / Go Vulnerability Check: pkg/vmcp/server/server.go#L137
undefined: optimizer.Factory
Security Scan / Go Vulnerability Check: pkg/vmcp/server/adapter/capability_adapter.go#L221
undefined: CreateOptimizerToolsFromProvider
Linting / Lint Go Code
issues found
Linting / Lint Go Code: test/e2e/thv-operator/virtualmcp/virtualmcp_optimizer_test.go#L81
unknown field EmbeddingDimension in struct literal of type "github.com/stacklok/toolhive/pkg/vmcp/config".OptimizerConfig (typecheck)
Linting / Lint Go Code: test/e2e/thv-operator/virtualmcp/virtualmcp_optimizer_test.go#L80
unknown field EmbeddingBackend in struct literal of type "github.com/stacklok/toolhive/pkg/vmcp/config".OptimizerConfig
Linting / Lint Go Code: test/e2e/thv-operator/virtualmcp/virtualmcp_optimizer_test.go#L79
unknown field Enabled in struct literal of type "github.com/stacklok/toolhive/pkg/vmcp/config".OptimizerConfig
Tests / Test Go Code
Process completed with exit code 201.
Helm Charts / Lint and Test Helm Charts
No file matched to [/home/runner/work/toolhive/toolhive/**/*requirements*.txt,/home/runner/work/toolhive/toolhive/**/*requirements*.in,/home/runner/work/toolhive/toolhive/**/*constraints*.txt,/home/runner/work/toolhive/toolhive/**/*constraints*.in,/home/runner/work/toolhive/toolhive/**/pyproject.toml,/home/runner/work/toolhive/toolhive/**/uv.lock,/home/runner/work/toolhive/toolhive/**/*.py.lock]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.
Security Scan / Go Vulnerability Check
Failed to restore: Cache service responded with 400