Skip to content

Conversation

@github-actions
Copy link
Contributor

Backport PR #17032 to 8.18 branch, original message:


Release notes

[rn:skip]

What does this PR do?

PR#17006 revealed that the VERSION_QUALIFIER env var gets honored in various scripts when present but empty.
This shouldn't be the case as the DRA process is designed to gracefully ignore empty values for this variable.

This commit changes various ruby scripts to not treat "" as truthy. Bash scripts (used by CI etc.) are already ok with this as part of refactorings done in #16907.

Why is it important/What is the impact to the user?

Makes the behavior consistent with DRA guidelines and allows to re-revert PR#17006

How to test this PR locally

Best tested with Buildkite. Test builds using this PR, DRA_BRABCH=main and VERSION_QUALIFIER="":

snapshot: https://buildkite.com/elastic/logstash-dra-snapshot-pipeline/builds/2169#_
staging (dry_run=true, so no publishing): https://buildkite.com/elastic/logstash-dra-staging-pipeline/builds/194

Also tested staging with dry_run=true and VERSION_QUALIFIER="alpha1" (this isn't getting published): https://buildkite.com/elastic/logstash-dra-staging-pipeline/builds/196

PR #17006 revealed that the `VERSION_QUALIFIER` env var gets honored in
various scripts when present but empty.
This shouldn't be the case as the DRA process is designed to gracefully
ignore empty values for this variable.

This commit changes various ruby scripts to not treat "" as truthy.
Bash scripts (used by CI etc.) are already ok with this as part of
refactorings done in #16907.

---------

Co-authored-by: Andrea Selva <[email protected]>
(cherry picked from commit c7204fd)
Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, clean backport

@elastic-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

@dliappis dliappis merged commit 283afd0 into 8.18 Feb 12, 2025
5 checks passed
@dliappis dliappis deleted the backport_17032_8.18 branch February 12, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants