Skip to content

install the published helm oci chart in e2e tests - #2775

Open
abrarshivani wants to merge 1 commit into
NVIDIA:mainfrom
abrarshivani:ci-helm-oci-chart-e2e
Open

install the published helm oci chart in e2e tests#2775
abrarshivani wants to merge 1 commit into
NVIDIA:mainfrom
abrarshivani:ci-helm-oci-chart-e2e

Conversation

@abrarshivani

Copy link
Copy Markdown
Contributor

Description

CI publishes the Helm chart as an OCI artifact and both e2e jobs already depend on that job, but the e2e scripts installed the chart directory from the checkout. The published artifact was never actually tested.

The publish workflow now exposes the chart reference and version as outputs, and the e2e scripts install from them. When HELM_CHART is unset the scripts fall back to the chart in the working tree, so tests/local.sh is unchanged.

Closes NVIDIA/cloud-native-team#367

Checklist

  • No secrets, sensitive information, or unrelated changes
  • Lint checks passing (make lint)
  • Generated assets in-sync (make validate-generated-assets)
  • Go mod artifacts in-sync (make validate-modules)
  • Test cases are added for new code paths

Testing

e2e needs AWS, so this was checked locally: helm template against a published tag renders anonymously, the three render assertions in end-to-end-nvidia-driver.sh pass against both the published and the local chart, and actionlint reports no new findings on either workflow. The real check is this PR's e2e run.

Comment thread tests/scripts/.definitions.sh Outdated
The e2e workflow already packages and pushes the chart as an OCI artifact and
gates both test jobs on that job succeeding, but the tests then installed the
chart directory straight from the checkout. CI never exercised the artifact we
publish.

Expose the chart reference and version as outputs of the publish workflow and
hand them to the test scripts as HELM_CHART and HELM_CHART_VERSION. When
HELM_CHART is empty the scripts fall back to the chart in the working tree, so
running tests/local.sh by hand still tests local changes. The default has to
stay empty rather than an absolute path: local.sh forwards the variable over
ssh and the controller's PROJECT_DIR does not exist on the test instance.

Both e2e jobs now run helm show chart before setting up holodeck, so a missing
or unpropagated tag fails in seconds instead of after an instance has been
provisioned.

Co-authored-by: Tariq <tariq181290@gmail.com>
Signed-off-by: Abrar Shivani <ashivani@nvidia.com>
@abrarshivani
abrarshivani force-pushed the ci-helm-oci-chart-e2e branch from a617eba to 5342e8d Compare August 21, 2026 05: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.

2 participants