Skip to content

fix(chart): make the vendored OpenShell chart pass helm unittest - #1210

Open
rh-amarin wants to merge 1 commit into
mainfrom
claude/chart-unittest-fixes
Open

rh-amarin wants to merge 1 commit into
mainfrom
claude/chart-unittest-fixes

Conversation

@rh-amarin

Copy link
Copy Markdown
Collaborator

Summary

helm unittest charts/openshell failed 3 of 475 tests. The pristine upstream chart (v0.1.8-rhaiv.0) passes all of its 470. All 3 failures came from what HyperShell does to the chart, not from broken templates.

Changes

  • Em-dash escape. make vendor-openshell-chart replaced literal em dashes but not the — escape that upstream uses in double-quoted strings. Templates lost the em dash in their error messages while the tests still expected it. The vendor step now replaces both forms. This fixes the failures in cert_manager_pki_test.yaml and gateway_config_test.yaml, and makes route.yaml consistent with its test.
  • Metrics test in patch 0001. 0001-service-http-port.patch adds the http Service port. Upstream's metrics test counts Service ports with metrics off, so the patch now updates that count from 1 to 2.

Testing

  • Re-vendored from upstream: both patches apply, the tree matches the commit, and no em dash or — remains in charts/openshell/.
  • helm unittest charts/openshell: 475 of 475 pass.
  • make check passes.

helm unittest is still not run in CI. That stays a separate follow-up.

🤖 Generated with Claude Code

helm unittest charts/openshell failed 3 of 475 tests; pristine upstream
passes all of them.

- The vendor step replaced em dashes in the chart, but not the —
  escape that upstream's tests and route.yaml use. Templates lost the
  em dash while some tests still expected it. The vendor step now
  replaces both forms.
- 0001-service-http-port.patch adds a Service port, so upstream's
  metrics test that counts Service ports now expects 2, not 1.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

HyperShell environment destroyed

This ephemeral OpenShift environment has been destroyed. Comment /pr-extend to redeploy it.

@mergify

mergify Bot commented Nov 30, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

@codecov-appsre

codecov-appsre Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main    #1210      +/-   ##
==========================================
- Coverage   47.10%   47.07%   -0.04%     
==========================================
  Files         475      475              
  Lines       38639    38639              
==========================================
- Hits        18200    18188      -12     
- Misses      18302    18311       +9     
- Partials     2137     2140       +3     
Flag Coverage Δ
api-server 46.66% <ø> (-0.07%) ⬇️
cli 7.26% <ø> (ø)
control-plane 59.53% <ø> (ø)
sdk-generator 63.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26423d3...9f1fc59. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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.

1 participant