Skip to content

Add structured status conditions for ToolConfigRef and ExternalAuthConfigRef validation#3634

Open
ChrisJBurns wants to merge 1 commit intomainfrom
mcpremoteproxy-status-conditions
Open

Add structured status conditions for ToolConfigRef and ExternalAuthConfigRef validation#3634
ChrisJBurns wants to merge 1 commit intomainfrom
mcpremoteproxy-status-conditions

Conversation

@ChrisJBurns
Copy link
Collaborator

@ChrisJBurns ChrisJBurns commented Feb 5, 2026

Summary

  • Add dedicated ToolConfigValidated and ExternalAuthConfigValidated status conditions to the MCPRemoteProxy controller, following the existing GroupRefValidated pattern
  • Distinguish API fetch errors (ToolConfigFetchError, ExternalAuthConfigFetchError) from resource-not-found (ToolConfigNotFound, ExternalAuthConfigNotFound) for clearer programmatic diagnostics
  • Add condition assertions to existing unit tests verifying conditions are correctly set on success, error, and removal paths

Closes #3607

Test plan

  • All existing controller unit tests pass
  • New condition assertions verify correct Type, Status, and Reason for all scenarios
  • Lint passes with 0 issues
  • License headers verified

🤖 Generated with Claude Code

@github-actions github-actions bot added the size/S Small PR: 100-299 lines changed label Feb 5, 2026
@codecov
Copy link

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.79%. Comparing base (533821b) to head (41f8413).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3634    +/-   ##
========================================
  Coverage   65.78%   65.79%            
========================================
  Files         411      411            
  Lines       40727    40853   +126     
========================================
+ Hits        26794    26880    +86     
- Misses      11850    11883    +33     
- Partials     2083     2090     +7     

☔ 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.

@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 5, 2026
@ChrisJBurns ChrisJBurns force-pushed the mcpremoteproxy-status-conditions branch from 6a18cb7 to 88ab2f8 Compare February 5, 2026 20:48
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 5, 2026
jhrozek
jhrozek previously approved these changes Feb 5, 2026
@ChrisJBurns ChrisJBurns force-pushed the mcpremoteproxy-status-conditions branch from 88ab2f8 to b2bb855 Compare February 5, 2026 21:34
@github-actions github-actions bot added size/M Medium PR: 300-599 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 5, 2026
…nfigRef validation

Add dedicated ToolConfigValidated and ExternalAuthConfigValidated
status conditions to the MCPRemoteProxy controller, following the
existing GroupRefValidated pattern. Use errors.IsNotFound to
distinguish not-found (ToolConfigNotFound, ExternalAuthConfigNotFound)
from transient API errors (ToolConfigFetchError,
ExternalAuthConfigFetchError). Add comprehensive condition assertions
and fetch error test cases using client interceptors.

Closes #3607

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ChrisJBurns ChrisJBurns force-pushed the mcpremoteproxy-status-conditions branch from b2bb855 to 41f8413 Compare February 5, 2026 21:39
@github-actions github-actions bot added size/M Medium PR: 300-599 lines changed and removed size/M Medium PR: 300-599 lines changed labels Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Medium PR: 300-599 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add structured status conditions for ToolConfigRef and ExternalAuthConfigRef validation in MCPRemoteProxy

2 participants