Skip to content

Composite Tools: Fix plumbing for on-error-continue config#3118

Merged
jerm-dro merged 4 commits intomainfrom
jerm/2025-12-18-fix-config-plumbing
Dec 22, 2025
Merged

Composite Tools: Fix plumbing for on-error-continue config#3118
jerm-dro merged 4 commits intomainfrom
jerm/2025-12-18-fix-config-plumbing

Conversation

@jerm-dro
Copy link
Copy Markdown
Contributor

Summary

Fix a bug where broken config plumbing lead to ignored continue-on-error behavior in composite tools.

Details

While preparing for a demo of continue-on-error behavior, I encountered a surprising bug where my config for a skippable step was not respected.

        on_error:
          action: "continue"  # Continue workflow despite error

Instead, the composite tool aborted.

Root Cause

This was a surprising bug, because I know an integration test exists. Upon closer inspection, you'll see our integration tests bypass much of our configuration plumbing, previously described here. The composite tools system is even more elaborate, since it has another step:
CRD config -> yaml -> rawConfig -> config -> data structures used in execution
The linked integration tests configures data structures used in execution, so it missed the broken config -> data structures used in execution step.

I chose not to write a regression test for this quick fix. Instead, I will be opening an issue that describes the systemic issue and breakdown the work to repair it.

Signed-off-by: Jeremy Drouillard <jeremy@stacklok.com>
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Dec 19, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.11%. Comparing base (bd1c4d6) to head (6b13857).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3118   +/-   ##
=======================================
  Coverage   57.11%   57.11%           
=======================================
  Files         341      341           
  Lines       33949    33950    +1     
=======================================
+ Hits        19389    19390    +1     
  Misses      12951    12951           
  Partials     1609     1609           

☔ 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/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Dec 20, 2025
@jerm-dro jerm-dro mentioned this pull request Dec 20, 2025
11 tasks
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Dec 22, 2025
@jerm-dro jerm-dro merged commit 414dcff into main Dec 22, 2025
30 checks passed
@jerm-dro jerm-dro deleted the jerm/2025-12-18-fix-config-plumbing branch December 22, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants