Skip to content

fix(engine): match template failure boundaries#80

Merged
GaTTGeng merged 2 commits into
masterfrom
feature/13-error-behavior
Jun 28, 2026
Merged

fix(engine): match template failure boundaries#80
GaTTGeng merged 2 commits into
masterfrom
feature/13-error-behavior

Conversation

@GaTTGeng

Copy link
Copy Markdown
Owner

Summary

  • Evaluate fail arguments before throwing so expression-based messages match Helm behavior.
  • Treat unknown template function calls with arguments as unsupported instead of rendering them as literal text.
  • Add Helm CLI golden error fixtures for required, fail, missing function, and malformed template cases.
  • Update [Unreleased] in CHANGELOG.md.

Validation

  • dotnet test tests/HelmSharp.Tests/HelmSharp.Tests.csproj --configuration Release --filter FullyQualifiedName~TemplateErrorGoldenTests
  • dotnet test HelmSharp.sln --configuration Release

Fixes #13

GaTTGeng added 2 commits June 28, 2026 18:04
Evaluate fail arguments before throwing and treat unknown function calls with arguments as unsupported instead of rendering them as literal text.

Add Helm CLI golden error fixtures for required, fail, missing function, and malformed template cases. Fixes #13.

Verification: dotnet test HelmSharp.sln --configuration Release
Fail no-argument unknown functions instead of rendering them as literal text, and surface invalid substr ranges that Helm treats as slice bound errors.

Verification: dotnet test HelmSharp.sln --configuration Release
@GaTTGeng GaTTGeng marked this pull request as ready for review June 28, 2026 10:58
Copilot AI review requested due to automatic review settings June 28, 2026 10:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@GaTTGeng GaTTGeng merged commit 54575fe into master Jun 28, 2026
1 check passed
@GaTTGeng GaTTGeng deleted the feature/13-error-behavior branch June 28, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[M1] Match error behavior for common template failures

2 participants