Skip to content

[ci] SNAPSHOT=false overridden in Helm packaging step #16026

Description

@ebeahan

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.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions