Skip to content

Conversation

@majiayu000
Copy link
Contributor

Summary

This PR fixes #3108

Changes

  • pkg/api/v1/workload_service.go
  • pkg/auth/token.go
  • pkg/authz/response_filter.go
  • pkg/mcp/tool_filter.go
  • pkg/networking/utilities.go
  • pkg/secrets/clients/1password.go
  • pkg/vmcp/aggregator/default_aggregator.go
  • pkg/vmcp/discovery/manager.go

majiayu000 and others added 2 commits December 29, 2025 00:08
Update fmt.Errorf calls to use %w verb instead of %v for error
arguments, enabling proper error chain preservation for errors.Is()
and errors.As() checks per the error handling documentation.

Fixes stacklok#3108

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Signed-off-by: majiayu000 <[email protected]>
@github-actions github-actions bot added the size/XS Extra small PR: < 100 lines changed label Jan 2, 2026
@codecov
Copy link

codecov bot commented Jan 2, 2026

Codecov Report

❌ Patch coverage is 27.77778% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.19%. Comparing base (755c9b8) to head (71001d7).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/mcp/tool_filter.go 16.66% 5 Missing ⚠️
pkg/authz/response_filter.go 0.00% 4 Missing ⚠️
pkg/secrets/clients/1password.go 0.00% 2 Missing ⚠️
pkg/api/v1/workload_service.go 50.00% 1 Missing ⚠️
pkg/networking/utilities.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3171      +/-   ##
==========================================
- Coverage   57.22%   57.19%   -0.03%     
==========================================
  Files         341      341              
  Lines       34089    34089              
==========================================
- Hits        19507    19497      -10     
- Misses      12969    12984      +15     
+ Partials     1613     1608       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@eleftherias eleftherias merged commit dda67b9 into stacklok:main Jan 2, 2026
31 checks passed
@eleftherias
Copy link
Member

Thanks for the PR @majiayu000!

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

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure Toolhive Errors are Wrapped According to Docs

3 participants