Skip to content

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

Closed
bhanurp wants to merge 4 commits into
jfrog:masterfrom
bhanurp:RTECO-2742-helm-push-semver-build-metadata-e2e
Closed

bhanurp wants to merge 4 commits into
jfrog:masterfrom
bhanurp:RTECO-2742-helm-push-semver-build-metadata-e2e

Conversation

@bhanurp

@bhanurp bhanurp commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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.
@bhanurp bhanurp added the bug Something isn't working label Nov 2, 2026
@bhanurp
bhanurp marked this pull request as ready for review November 2, 2026 09:39
@bhanurp

bhanurp commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

… 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).
@bhanurp
bhanurp requested review from a team, agrasth, fluxxBot, itsmeleela, naveenku-jfrog and reshmifrog and removed request for a team November 2, 2026 09:57
Comment thread helm_test.go Resolved
…er build metadata fix

jfrog-cli-artifactory main now has the fix (jfrog/jfrog-cli-artifactory#584),
so TestHelmPushWithSemVerBuildMetadata can pass.
@bhanurp
bhanurp deployed to build-gate November 3, 2026 06:35 — with GitHub Actions Active
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


@bhanurp

bhanurp commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

closing this since #3752 is already merged

@bhanurp bhanurp closed this Nov 6, 2026

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.

3 participants