Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use --qualifier in release manager #16907

Merged

Conversation

dliappis
Copy link
Contributor

@dliappis dliappis commented Jan 17, 2025

Release notes

[rn:skip]

What does this PR do?

This commit uses the new --qualifier parameter in the release manager for publishing dra artifacts. Additionally, simplifies the expected variables to rely on a simple VERSION_QUALIFIER.

Finally, we skip snapshot builds when VERSION_QUALIFIER is set.

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

Enables prerelease staging builds

How to test this PR

To test via this PR supply the following BK options to the staging pipeline:

DRA_VERSION="main"
VERSION_QUALIFIER="alpha1"

which results in a successful build -> https://buildkite.com/elastic/logstash-dra-staging-pipeline/builds/177

Once it's merged, manual staging builds need to be triggered using only VERSION_QUALIFIER; docs will be updated for https://docs.elastic.dev/ingest-dev-docs/logstash/dra#usage-of-version_qualifier_opt via a follow up PR.

Also tested a snapshot build to ensure nothing's broken (this just requires DRA_BRANCH="main" as params), it's successful -> https://buildkite.com/elastic/logstash-dra-snapshot-pipeline/builds/2052

Related issues

Closes https://github.com/elastic/ingest-dev/issues/4856

Screenshots

image

@dliappis dliappis added the ci label Jan 17, 2025
@dliappis dliappis self-assigned this Jan 17, 2025
@dliappis dliappis force-pushed the support-version-qualifier-in-dra-pipelines branch 5 times, most recently from 2490ac0 to c04c861 Compare January 17, 2025 14:24
This commit uses the new --qualifier parameter in the release manager
for publishing dra artifacts. Additionally, simplifies the expected
variables to rely on a simple `VERSION_QUALIFIER`.

Finally, we skip snapshot builds when VERSION_QUALIFIER is set.

Closes elastic/ingest-dev#4856
@dliappis dliappis force-pushed the support-version-qualifier-in-dra-pipelines branch 4 times, most recently from bfe86fc to 1b09742 Compare January 17, 2025 15:27
@dliappis dliappis force-pushed the support-version-qualifier-in-dra-pipelines branch from 1b09742 to 56fdaac Compare January 17, 2025 15:31
@dliappis dliappis force-pushed the support-version-qualifier-in-dra-pipelines branch from fdb0d73 to 95bdd77 Compare January 17, 2025 16:27
@dliappis dliappis requested a review from jsvd January 17, 2025 17:27
@dliappis dliappis marked this pull request as ready for review January 17, 2025 17:28

echo "--- Building [${WORKFLOW_TYPE}] artifacts"
echo "--- Building [$${WORKFLOW_TYPE}] artifacts"
Copy link
Contributor Author

@dliappis dliappis Jan 17, 2025

Choose a reason for hiding this comment

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

this is not a typo, it was a bug :) double $ are required otherwise the variable gets interpolated by BK.

@dliappis dliappis force-pushed the support-version-qualifier-in-dra-pipelines branch from fd7d23c to e5fbdfc Compare January 18, 2025 17:31
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

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 just a doubt about the printing of generated steps if it's to be considered debug or not.

.buildkite/dra_pipeline.yml Show resolved Hide resolved
@dliappis dliappis merged commit 9385cfa into elastic:main Jan 20, 2025
6 checks passed
@dliappis
Copy link
Contributor Author

@logstashmachine backport 8.x

@dliappis
Copy link
Contributor Author

@logstashmachine backport 8.17

@dliappis
Copy link
Contributor Author

@logstashmachine backport 8.16

@dliappis
Copy link
Contributor Author

@logstashmachine backport 7.17

dliappis added a commit to dliappis/logstash that referenced this pull request Jan 20, 2025
This commit uses the new --qualifier parameter in the release manager
for publishing dra artifacts. Additionally, simplifies the expected
variables to rely on a simple `VERSION_QUALIFIER`.

Snapshot builds are skipped when VERSION_QUALIFIER is set.
Finally, for helping to test DRA PRs, we also allow passing the `DRA_BRANCH`  option/env var
to override BUILDKITE_BRANCH.

Closes elastic/ingest-dev#4856
dliappis added a commit to dliappis/logstash that referenced this pull request Jan 20, 2025
This commit uses the new --qualifier parameter in the release manager
for publishing dra artifacts. Additionally, simplifies the expected
variables to rely on a simple `VERSION_QUALIFIER`.

Snapshot builds are skipped when VERSION_QUALIFIER is set.
Finally, for helping to test DRA PRs, we also allow passing the `DRA_BRANCH`  option/env var
to override BUILDKITE_BRANCH.

Closes elastic/ingest-dev#4856
dliappis added a commit that referenced this pull request Jan 20, 2025
…16913)

This commit uses the new --qualifier parameter in the release manager
for publishing dra artifacts. Additionally, simplifies the expected
variables to rely on a simple `VERSION_QUALIFIER`.

Snapshot builds are skipped when VERSION_QUALIFIER is set.
Finally, for helping to test DRA PRs, we also allow passing the `DRA_BRANCH`  option/env var
to override BUILDKITE_BRANCH.

Closes elastic/ingest-dev#4856

Backported from #16907 cherry picked from 9385cfa
dliappis added a commit to dliappis/logstash that referenced this pull request Jan 24, 2025
This commit uses the new --qualifier parameter in the release manager
for publishing dra artifacts. Additionally, simplifies the expected
variables to rely on a simple `VERSION_QUALIFIER`.

Snapshot builds are skipped when VERSION_QUALIFIER is set.
Finally, for helping to test DRA PRs, we also allow passing the `DRA_BRANCH`  option/env var
to override BUILDKITE_BRANCH.

Closes elastic/ingest-dev#4856
dliappis added a commit to dliappis/logstash that referenced this pull request Jan 24, 2025
This commit uses the new --qualifier parameter in the release manager
for publishing dra artifacts. Additionally, simplifies the expected
variables to rely on a simple `VERSION_QUALIFIER`.

Snapshot builds are skipped when VERSION_QUALIFIER is set.
Finally, for helping to test DRA PRs, we also allow passing the `DRA_BRANCH`  option/env var
to override BUILDKITE_BRANCH.

Closes elastic/ingest-dev#4856
dliappis added a commit to dliappis/logstash that referenced this pull request Jan 24, 2025
This commit uses the new --qualifier parameter in the release manager
for publishing dra artifacts. Additionally, simplifies the expected
variables to rely on a simple `VERSION_QUALIFIER`.

Snapshot builds are skipped when VERSION_QUALIFIER is set.
Finally, for helping to test DRA PRs, we also allow passing the `DRA_BRANCH`  option/env var
to override BUILDKITE_BRANCH.

Closes elastic/ingest-dev#4856
dliappis added a commit that referenced this pull request Jan 24, 2025
…16941

Backport of #16907 cherry-picked from 9385cfa

This commit uses the new --qualifier parameter in the release manager
for publishing dra artifacts. Additionally, simplifies the expected
variables to rely on a simple `VERSION_QUALIFIER`.

Snapshot builds are skipped when VERSION_QUALIFIER is set.
Finally, for helping to test DRA PRs, we also allow passing the `DRA_BRANCH`  option/env var
to override BUILDKITE_BRANCH.

Closes elastic/ingest-dev#4856
dliappis added a commit that referenced this pull request Jan 24, 2025
…16942

Backport of #16907 cherry picked from 9385cfa

This commit uses the new --qualifier parameter in the release manager
for publishing dra artifacts. Additionally, simplifies the expected
variables to rely on a simple `VERSION_QUALIFIER`.

Snapshot builds are skipped when VERSION_QUALIFIER is set.
Finally, for helping to test DRA PRs, we also allow passing the `DRA_BRANCH`  option/env var
to override BUILDKITE_BRANCH.

Closes elastic/ingest-dev#4856
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