Skip to content

Conversation

@dliappis
Copy link
Contributor

@dliappis dliappis commented Feb 6, 2025

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 elastic#16907.
@dliappis dliappis self-assigned this Feb 6, 2025
@dliappis dliappis marked this pull request as ready for review February 6, 2025 17:17
@dliappis dliappis requested review from andsel and mashhurs February 6, 2025 17:18
Copy link
Contributor

@mashhurs mashhurs left a comment

Choose a reason for hiding this comment

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

LGTM!

Thank you for the #16907 as well, fantastic 🎉

Copy link
Contributor

@andsel andsel left a comment

Choose a reason for hiding this comment

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

LGTM
left a couple of suggestions to make the condition consistent in all places

@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

History

cc @dliappis

@dliappis dliappis merged commit c7204fd into elastic:main Feb 7, 2025
7 checks passed
@dliappis
Copy link
Contributor Author

dliappis commented Feb 7, 2025

@logstashmachine backport 9.0

@dliappis
Copy link
Contributor Author

dliappis commented Feb 7, 2025

@logstashmachine backport 8.x

@dliappis
Copy link
Contributor Author

dliappis commented Feb 7, 2025

@logstashmachine backport 8.18

@dliappis
Copy link
Contributor Author

dliappis commented Feb 7, 2025

@logstashmachine backport 8.17

@dliappis
Copy link
Contributor Author

dliappis commented Feb 7, 2025

@logstashmachine backport 8.16

github-actions bot pushed a commit that referenced this pull request Feb 7, 2025
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)
@github-actions github-actions bot added the v9.0.0 label Feb 7, 2025
@dliappis
Copy link
Contributor Author

dliappis commented Feb 7, 2025

Backports to 8.x/8.18/8.17/8.16 have conflicts due to lack of backports of #16904; left a comment in #16904 (comment)

dliappis added a commit that referenced this pull request Feb 7, 2025
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)

Co-authored-by: Dimitrios Liappis <[email protected]>
@dliappis
Copy link
Contributor Author

@logstashmachine backport 8.x

github-actions bot pushed a commit that referenced this pull request Feb 12, 2025
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)
@dliappis
Copy link
Contributor Author

@logstashmachine backport 8.18

@dliappis
Copy link
Contributor Author

@logstashmachine backport 8.17

@dliappis
Copy link
Contributor Author

@logstashmachine backport 8.16

github-actions bot pushed a commit that referenced this pull request Feb 12, 2025
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)
github-actions bot pushed a commit that referenced this pull request Feb 12, 2025
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)
github-actions bot pushed a commit that referenced this pull request Feb 12, 2025
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)
dliappis added a commit that referenced this pull request Feb 12, 2025
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)

Co-authored-by: Dimitrios Liappis <[email protected]>
dliappis added a commit that referenced this pull request Feb 12, 2025
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)

Co-authored-by: Dimitrios Liappis <[email protected]>
dliappis added a commit that referenced this pull request Feb 12, 2025
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)

Co-authored-by: Dimitrios Liappis <[email protected]>
dliappis added a commit that referenced this pull request Feb 12, 2025
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)

Co-authored-by: Dimitrios Liappis <[email protected]>
v1v pushed a commit to v1v/logstash that referenced this pull request Feb 25, 2025
PR elastic#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 elastic#16907.

---------

Co-authored-by: Andrea Selva <[email protected]>
v1v added a commit to v1v/logstash that referenced this pull request Feb 25, 2025
…gify

* upstream/main: (27 commits)
  Add Windows 2025 to CI (elastic#17133)
  Update container acceptance tests with stdout/stderr changes (elastic#17138)
  entrypoint: avoid polluting stdout (elastic#17125)
  Fix acceptance test assertions for updated plugin remove (elastic#17126)
  Fix acceptance test assertions for updated plugin `remove` (elastic#17122)
  plugins: improve `remove` command to support multiple plugins (elastic#17030)
  spec: improve ls2ls spec (elastic#17114)
  allow concurrent Batch deserialization (elastic#17050)
  CPM handle 404 response gracefully with user-friendly log (elastic#17052)
  qa: use clean expansion of LS tarball per fixture instance (elastic#17082)
  Allow capturing heap dumps in DRA BK jobs (elastic#17081)
  Use centralized source of truth for active branches (elastic#17063)
  Update logstash_releases.json (elastic#17055)
  fix logstash-keystore to accept spaces in values when added via stdin (elastic#17039)
  Don't honor VERSION_QUALIFIER if set but empty (elastic#17032)
  Release note placeholder might be empty, making parsing lines nil tolerant. (elastic#17026)
  Fix BufferedTokenizer to properly resume after a buffer full condition respecting the encoding of the input string (elastic#16968)
  Add short living 9.0 next and update main in CI release version definition. (elastic#17008)
  Core version bump to 9.1.0 (elastic#16991)
  Add 9.0 branch to the CI branches definition (elastic#16997)
  ...
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.

4 participants