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

Fix redpanda-operator release piepeline #469

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

RafalKorepta
Copy link
Contributor

When redpanda-operator github repository recieves new tag it triggers buildkite build. As the following statement from buildkite community forum the branch has the same value as tag.

Due to how tags work in git, a branch is not easily inferred, nor is it required to check out a tag. For this reason we’re setting BUILDKITE_BRANCH and BUILDKITE_TAG to the same value. This is the intended behaviour. Our docs aren’t really clear on this and we’re updating them now.

Reference
https://forum.buildkite.community/t/branch-names-vs-tag-names/974/2

// 3. NIGHTLY_RELEASE envvar isn't set (paranoid check)
// 4. This isn't a pull request (paranoid check)
(build.tag =~ /^v/ || build.tag =~ /^operator\/v/) &&
(build.branch == "main" || build.branch =~ /^release\//) &&
(build.branch == "main" || build.branch =~ /^release\// || build.branch =~ /^v/ || build.branch =~ /^operator\/v/) &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove the checks on main and release/ as we know they'll never be relevant? We could alternatively remove all branch level checks as they're synonymous with tag and specifying both may be misleading.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree removed branch check

@@ -81,11 +81,11 @@ steps:
if: |
// Only run if:
// 1. There's a tag and it's of the form 'v*' or 'operator/v*'
// 2. Source branch is main or release/*
// 2. Source branch is main or release/* (during release the branch will be equal to tag name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add the URL from the PR description to this comment. If we remove the branch checks, let's preserve the comment about branch == tag so no one forgets and tries to add it back in later :)

@RafalKorepta RafalKorepta force-pushed the rk/fix-official-release-process branch from dd277da to 98a42c9 Compare March 3, 2025 15:18
@RafalKorepta RafalKorepta requested a review from chrisseto March 3, 2025 15:22
@RafalKorepta RafalKorepta force-pushed the rk/fix-official-release-process branch from 98a42c9 to abc198e Compare March 3, 2025 16:26
When redpanda-operator github repository recieves new tag it triggers buildkite
build. As the following statement from buildkite community forum the branch has
the same value as tag.
```
Due to how tags work in git, a branch is not easily inferred, nor is it required to check out a tag. For this reason we’re setting BUILDKITE_BRANCH and BUILDKITE_TAG to the same value. This is the intended behaviour. Our docs aren’t really clear on this and we’re updating them now.
```

Reference
https://forum.buildkite.community/t/branch-names-vs-tag-names/974/2
@RafalKorepta RafalKorepta force-pushed the rk/fix-official-release-process branch from abc198e to d908b6a Compare March 3, 2025 17:02
@andrewstucki andrewstucki merged commit 822b857 into main Mar 3, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants