• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 20173112592 / 1
62%
main: 62%

Build:
DEFAULT BRANCH: main
Ran 12 Dec 2025 04:29PM UTC
Files 406
Run time 12s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Dec 2025 04:26PM UTC coverage: 49.94% (+0.1%) from 49.803%
20173112592.1

push

github

web-flow
Composite Tools Supports DefaultResults for Skippable Steps (#3006)

Changes
Schema & Configuration

Added defaultResults field to WorkflowStep CRD type (map[string]runtime.RawExtension)
Added corresponding fields in raw config, internal config, and composer types
Updated all converters (CRD→config, YAML→config, config→composer)
Validation

Implemented shared validation in workflow_validation.go
Validates that defaultResults[field] is specified when:
Step may be skipped (has condition or onError.action: continue)
Downstream steps reference that specific output field
Validation is reused by both VirtualMCPServer and VirtualMCPCompositeToolDefinition webhooks
Template Reference Extraction

Created pkg/templates/references.go with AST-based template parsing
Uses text/template/parse package for reliable reference extraction
Extracts .steps.<stepID>.output.<field> references for validation
Runtime

Updated RecordStepSkipped to accept and store defaultResults as step output
Updated handleToolStepFailure to set defaultResults when continuing on error
Documentation

Added "Default Results" section to virtualmcpcompositetooldefinition-guide.md
Added quick reference to composite-tools-quick-reference.md
Added "Pattern 5: Default Results for Skippable Steps" to advanced-workflow-patterns.md


---------

Signed-off-by: Jeremy Drouillard <jeremy@stacklok.com>

27542 of 55150 relevant lines covered (49.94%)

57.62 hits per line

Source Files on job 20173112592.1
  • Tree
  • List 406
  • Changed 12
  • Source Changed 10
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20173112592
  • 00474d44 on github
  • Prev Job for on main (#20172328821.1)
  • Next Job for on main (#20173914040.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc