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

stacklok / toolhive / 20173112592
58%

Build:
DEFAULT BRANCH: main
Ran 12 Dec 2025 04:29PM UTC
Jobs 1
Files 406
Run time 1min
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

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>

204 of 249 new or added lines in 10 files covered. (81.93%)

2 existing lines in 1 file now uncovered.

27542 of 55150 relevant lines covered (49.94%)

57.62 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
81.11
-0.27% pkg/vmcp/composer/workflow_engine.go
4
94.59
pkg/templates/references.go
6
0.0
0.0% cmd/thv-operator/api/v1alpha1/zz_generated.deepcopy.go
8
70.15
-0.93% cmd/thv-operator/pkg/vmcpconfig/converter.go
24
81.82
cmd/thv-operator/api/v1alpha1/workflow_validation.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
94.67
-1.33% pkg/vmcp/composer/dag_executor.go
Jobs
ID Job ID Ran Files Coverage
1 20173112592.1 12 Dec 2025 04:29PM UTC 406
49.94
GitHub Action Run
Source Files on build 20173112592
  • Tree
  • List 406
  • Changed 12
  • Source Changed 10
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20173112592
  • 00474d44 on github
  • Prev Build on main (#20172328821)
  • Next Build on main (#20173914040)
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