Summary
SNAPSHOT=false is being overridden by a later step in settings initialization.
Example of the v9.5.0 tag triggering the Helm Chart pipeline step, but the artifact is named with the -SNAPSHOT suffix: https://buildkite.com/elastic/elastic-agent-helm-charts/builds/6261#019fccca-6047-444f-b2a9-9304758b6261/L259
Simplified Claude analysis
setPackagingDefaults() sets s.Packaging.UsePackageVersion = true at line 744 in settings.go.
parseBoolEnv("USE_PACKAGE_VERSION", s.Packaging.UsePackageVersion) at line 1564 only overrides that if USE_PACKAGE_VERSION is explicitly present in the environment.
If the env var is absent, parseBoolEnv returns the existing default (true) unchanged.
The Buildkite helm chart pipeline never sets USE_PACKAGE_VERSION, so the default true is never overridden. The if s.Packaging.UsePackageVersion guard at line 1595 is therefore entered in every BK run.
Summary
SNAPSHOT=falseis being overridden by a later step in settings initialization.Example of the
v9.5.0tag triggering the Helm Chart pipeline step, but the artifact is named with the-SNAPSHOTsuffix: https://buildkite.com/elastic/elastic-agent-helm-charts/builds/6261#019fccca-6047-444f-b2a9-9304758b6261/L259Simplified Claude analysis
setPackagingDefaults()setss.Packaging.UsePackageVersion = trueat line 744 in settings.go.parseBoolEnv("USE_PACKAGE_VERSION", s.Packaging.UsePackageVersion)at line 1564 only overrides that ifUSE_PACKAGE_VERSIONis explicitly present in the environment.If the env var is absent,
parseBoolEnvreturns the existing default (true) unchanged.The Buildkite helm chart pipeline never sets
USE_PACKAGE_VERSION, so the default true is never overridden. Theif s.Packaging.UsePackageVersionguard at line 1595 is therefore entered in every BK run.