Skip to content

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.93%. Comparing base (aa930b8) to head (2aaeae3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3634      +/-   ##
==========================================
- Coverage   65.96%   65.93%   -0.03%     
==========================================
  Files         415      415              
  Lines       41144    41192      +48     
==========================================
+ Hits        27140    27161      +21     
- Misses      11909    11936      +27     
  Partials     2095     2095              

☔ 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
@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 6, 2026
@ChrisJBurns ChrisJBurns merged commit 865272e into main Feb 6, 2026
33 of 35 checks passed
@ChrisJBurns ChrisJBurns deleted the mcpremoteproxy-status-conditions branch February 6, 2026 16:17
ChrisJBurns added a commit that referenced this pull request Feb 6, 2026
Update MCPRemoteProxy integration tests to use the structured status
conditions added in #3634 for ToolConfigRef and ExternalAuthConfigRef
validation:

- ToolConfigRef "not found": Assert ToolConfigValidated=False with
  ToolConfigNotFound reason and config name in message
- ToolConfigRef "success": Assert ToolConfigValidated=True with
  ToolConfigValid reason
- ExternalAuthConfigRef "not found": Assert AuthConfigured=False with
  AuthInvalid reason
- ExternalAuthConfigRef "success": Assert ExternalAuthConfigValidated=True
  with ExternalAuthConfigValid reason

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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