Description
action.Test() passes obj.GetReleaseName() directly to test.Run() without calling release.ShortenName():
// internal/action/test.go:44
rlsr, shutdownFunc, err := test.Run(obj.GetReleaseName())
All other actions that look up releases by name use shortened names:
Install: release.ShortenName(obj.GetReleaseName()) (install.go:88)
Upgrade: release.ShortenName(obj.GetReleaseName()) (upgrade.go:60)
LastRelease: release.ShortenName(releaseName) (verify.go:84)
When GetReleaseName() returns a composed name (TargetNamespace-Name) that exceeds 53 characters, ShortenName hashes it during install/upgrade. The Test action then attempts to look up the release by the full unhashed name, causing a lookup miss.
Steps to Reproduce
- Create a HelmRelease where
TargetNamespace + "-" + Name exceeds 53 characters
- Install succeeds (using shortened name)
- Test action fails to find the release (using full name)
Expected Behavior
Test should use release.ShortenName(obj.GetReleaseName()) consistent with Install and Upgrade.
Description
action.Test()passesobj.GetReleaseName()directly totest.Run()without callingrelease.ShortenName():All other actions that look up releases by name use shortened names:
Install:release.ShortenName(obj.GetReleaseName())(install.go:88)Upgrade:release.ShortenName(obj.GetReleaseName())(upgrade.go:60)LastRelease:release.ShortenName(releaseName)(verify.go:84)When
GetReleaseName()returns a composed name (TargetNamespace-Name) that exceeds 53 characters,ShortenNamehashes it during install/upgrade. The Test action then attempts to look up the release by the full unhashed name, causing a lookup miss.Steps to Reproduce
TargetNamespace + "-" + Nameexceeds 53 charactersExpected Behavior
Testshould userelease.ShortenName(obj.GetReleaseName())consistent with Install and Upgrade.