Skip to content

RTECO-2742 - Add Helm push E2E tests for chart versions with SemVer build metadata (+) - #3752

Merged
bhanurp merged 4 commits into
masterfrom
RTECO-2742-helm-push-semver-build-metadata-e2e
Nov 3, 2026
Merged

bhanurp merged 4 commits into
masterfrom
RTECO-2742-helm-push-semver-build-metadata-e2e

Conversation

@bhanurp

@bhanurp bhanurp commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Replaces #3750, which was opened from a fork. The build gate (pull_request_target) works best with a branch in this repository.

Summary

E2E tests for RTECO-2742: jf helm push build-info collection for chart versions with SemVer build metadata (+). Helm pushes X.Y.Z+meta under the OCI tag X.Y.Z_meta, and the build-info lookup used the + form.

go.mod now points to jfrog-cli-artifactory 30c80a7, which contains the fix (jfrog/jfrog-cli-artifactory#584, merged). These tests run against that version.

Tests

TestHelmPushWithSemVerBuildMetadata (cases: no subpath 1.2.3+abc1234, subpath 103.287.0+0b2041e) checks:

  • jf helm push exits 0 and build info is published.
  • The module id keeps the real version, chart:1.2.3+abc1234.
  • The artifacts are under the _ folder, chart/1.2.3_abc1234/.
  • build.name and build.number are set on the _ folder's manifest.json.

A failed push is never skipped in these tests, so the regression cannot pass as a skipped test. The usual skips for a missing repository or an unusable registry login still apply.

runHelmSubpathPushTest now uses a shared helper, pushHelmChartAndGetBuildInfo. The helper and the coexistence test restore the working directory before they remove the chart directory, which Windows requires. The new tests delete their builds.

Verified on a real server

A jf binary built from this branch (the pinned go.mod, no replace) against a temporary Helm OCI repo, chart 1.2.3+abc1234:

jf before the fix jf from this branch
Exit code 1 (no OCI artifacts found for chart semverchart:1.2.3+abc1234) 0
Published module none semverchart:1.2.3+abc1234, artifacts under semverchart/1.2.3_abc1234/

Logs and a reproduce script are attached to RTECO-2742.

…uild metadata

Helm pushes chart X.Y.Z+meta under the OCI tag X.Y.Z_meta. The tests check that
jf helm push collects build info for such a chart: the module id keeps the real
version, the artifacts and the build properties are in the '_' folder.
Push errors are never skipped for these tests. Needs the jfrog-cli-artifactory
fix from jfrog/jfrog-cli-artifactory#581.
… cleanup order

Check build.number as well as build.name, delete the test builds, restore the
working directory before removing the chart directory in the coexistence test,
and make loginHelmRegistryOrSkip return nothing (it never returned false).
…er build metadata fix

jfrog-cli-artifactory main now has the fix (jfrog/jfrog-cli-artifactory#584),
so TestHelmPushWithSemVerBuildMetadata can pass.
@bhanurp bhanurp added the bug Something isn't working label Nov 3, 2026
@bhanurp
bhanurp deployed to build-gate November 3, 2026 06:51 — with GitHub Actions Active
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@bhanurp
bhanurp enabled auto-merge (squash) November 3, 2026 07:16
@bhanurp
bhanurp merged commit 5f37d76 into master Nov 3, 2026
277 of 282 checks passed
@bhanurp
bhanurp deleted the RTECO-2742-helm-push-semver-build-metadata-e2e branch November 3, 2026 07:18

This branch was successfully deployed

1 active deployment
build-gate — 00023d6c Deployed Nov 3, 2026 by bhanurp via Approval gate #1326
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants