Skip to content

Conversation

@JAORMX
Copy link
Collaborator

@JAORMX JAORMX commented Nov 27, 2025

Summary

  • Add RetryDelay field to ErrorHandling struct in the VirtualMCPServer CRD
  • Update converter to parse and pass through the retry delay duration
  • Add comprehensive tests for error handling conversion

The implementation in pkg/vmcp/config/config.go already supports RetryDelay, but it was missing from the CRD. This allows users to configure the delay between retry attempts for workflow steps:

onError:
  action: retry
  maxRetries: 3
  retryDelay: "5s"  # NEW

Test plan

  • Unit tests added for error handling conversion with various delay formats (seconds, milliseconds, minutes)
  • Tests verify invalid formats are gracefully ignored
  • All existing tests pass
  • Linting passes

Fixes #2773

🤖 Generated with Claude Code

@github-actions github-actions bot added the size/S Small PR: 100-299 lines changed label Nov 27, 2025
@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.52%. Comparing base (b97646b) to head (d37a3a7).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2776      +/-   ##
==========================================
+ Coverage   56.45%   56.52%   +0.06%     
==========================================
  Files         319      319              
  Lines       30878    30882       +4     
==========================================
+ Hits        17433    17456      +23     
+ Misses      11946    11922      -24     
- Partials     1499     1504       +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.

@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 Nov 27, 2025
The VirtualMCPServer CRD's ErrorHandling struct was missing the
RetryDelay field that is supported by the implementation. This adds
the field to allow users to configure the delay between retry attempts
for workflow steps.

Changes:
- Add RetryDelay field to ErrorHandling struct with duration pattern
  validation
- Update converter to parse and pass through the retry delay
- Add comprehensive tests for error handling conversion

Fixes #2773

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

Co-Authored-By: Claude <noreply@anthropic.com>
@JAORMX JAORMX force-pushed the add-retrydelay-to-errorhandling-crd branch from 9e915cb to d37a3a7 Compare November 27, 2025 21:21
@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 Nov 27, 2025
Copy link
Contributor

@jhrozek jhrozek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some nits, but I'll just send them as follow ups, great work

@jhrozek jhrozek merged commit fda9a56 into main Nov 28, 2025
36 checks passed
@jhrozek jhrozek deleted the add-retrydelay-to-errorhandling-crd branch November 28, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR: 100-299 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add RetryDelay to ErrorHandling in WorkflowStep CRD

3 participants