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

scripts: per-branch bump-pebble.sh script #75908

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

nicktrav
Copy link
Collaborator

@nicktrav nicktrav commented Feb 2, 2022

Currently, the master branch, in addition to each release branch relies
on the same bump-pebbble.sh from the master branch. There are subtle
differences between master and the release branches (i.e. build system)
that ends up breaking the script as the changes are introduced on the
master branch but not backported to the release branches.

One solution to this problem is to continue to maintain one script on
the master branch, but include switching logic for each release branch
to account for the differences.

An alternative approach is to have a script per release branch. Rather
than having switching logic, the script has the appropriate logic for
that branch. When a new release branch is cut, the script inherits the
most up-to-date logic from master, and all that needs to change is the
name of the branch and the corresponding Pebble branch.

Pin the bump-pebble.sh script to the master branch. The script will
error out if it is run from a different branch.

Release note: None

Currently, the master branch, in addition to each release branch relies
on the same `bump-pebbble.sh` from the master branch. There are subtle
differences between master and the release branches (i.e. build system)
that ends up breaking the script as the changes are introduced on the
master branch but not backported to the release branches.

One solution to this problem is to continue to maintain one script on
the master branch, but include switching logic for each release branch
to account for the differences.

An alternative approach is to have a script per release branch. Rather
than having switching logic, the script has the appropriate logic for
that branch. When a new release branch is cut, the script inherits the
most up-to-date logic from master, and all that needs to change is the
name of the branch and the corresponding Pebble branch.

Pin the `bump-pebble.sh` script to the master branch. The script will
error out if it is run from a different branch.

Release note: None
@nicktrav nicktrav requested a review from jbowens February 2, 2022 23:54
@cockroach-teamcity
Copy link
Member

This change is Reviewable

nicktrav added a commit to nicktrav/cockroach that referenced this pull request Feb 3, 2022
This is the `release-21.1` variant of cockroachdb#75908.

Release note: None
nicktrav added a commit to nicktrav/cockroach that referenced this pull request Feb 3, 2022
This is the release-21.2 variant of cockroachdb#75908.

Release note: None
Copy link
Collaborator

@jbowens jbowens left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @nicktrav)

@nicktrav
Copy link
Collaborator Author

nicktrav commented Feb 3, 2022

TFTR!

bors r=jbowens

@craig
Copy link
Contributor

craig bot commented Feb 3, 2022

Build failed:

@nicktrav
Copy link
Collaborator Author

nicktrav commented Feb 3, 2022

bors retry

@craig
Copy link
Contributor

craig bot commented Feb 3, 2022

Build succeeded:

@craig craig bot merged commit 513d468 into cockroachdb:master Feb 3, 2022
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