Skip to content

chore: Add UT to ensure Arc charts are parseable#1239

Merged
xmuhammad-xali merged 3 commits into
mainfrom
alimuhammad/fleet/arc-uts
Dec 15, 2025
Merged

chore: Add UT to ensure Arc charts are parseable#1239
xmuhammad-xali merged 3 commits into
mainfrom
alimuhammad/fleet/arc-uts

Conversation

@xmuhammad-xali

Copy link
Copy Markdown
Contributor

Description of your changes

This PR adds a UT that ensures that the Arc member agent charts are parseable to avoid any misconfigured yaml

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@ryanzhang-oss ryanzhang-oss requested a review from Copilot December 9, 2025 01:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds unit tests for the Arc member agent Helm charts to ensure that all chart templates render to valid YAML. This is the first Helm chart test in the repository and validates that templates parse and render correctly with maximal configuration values to activate all conditional paths. The test helps prevent misconfigured YAML from being deployed.

  • Adds comprehensive unit test for Helm template rendering validation
  • Implements custom mock functions for Helm/Sprig template functions
  • Tests all non-helper templates in the charts directory

Comment thread charts/member-agent-arc/charts_test.go
Comment thread charts/member-agent-arc/charts_test.go Outdated
Comment thread charts/member-agent-arc/charts_test.go
Comment thread charts/member-agent-arc/charts_test.go Outdated
Comment thread charts/member-agent-arc/charts_test.go
Comment thread charts/member-agent-arc/charts_test.go
Comment thread charts/member-agent-arc/charts_test.go Outdated

@Ealianis Ealianis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This makes sense to add as we don't have E2E tests for when the helm chart is published. Our Internal E2Es join arc clusters after the extension has been created.

In the future, we can remove this once we have our own repo and E2E tests.

@xmuhammad-xali xmuhammad-xali merged commit 5de2741 into main Dec 15, 2025
18 checks passed
@xmuhammad-xali xmuhammad-xali deleted the alimuhammad/fleet/arc-uts branch December 15, 2025 18:01
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.

4 participants