Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

Added cherry-pick functionality to cmssw_deploy #21

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

nothingface0
Copy link
Contributor

@nothingface0 nothingface0 commented Nov 28, 2024

Implement functionality that allows using the -p argument of the cmssw_deploy script to specify PRs to be cherry-picked instead of merged with cms-merge-topic.

This is done by leveraging the existing git cms-show-pr functionality to (reliably?) get the commits that compose a specific CMSSW PR, applying them on top of whatever CMSSW version we use, finding what packages it affects (with git show) and checking those out (with git-cms-addpkg).

Helpful in cases where a PR is made against a newer version of CMSSW than
the one we want to apply it to, in which case cms-merge-topic would apply many
intermediate commits which we don't want.

Example usage:

cmssw_deploy make-release -t CMSSW_14_0_15 -p +45544 --no-build  # Note the '+' before the PR number

PS: It seems that there is also a git cms-cherry-pick-pr command which could have been used, but it doesn't seem to properly apply the commits, in case they have already been merged to the base branch (something that this commit does manually, through --allow-empty --keep-redundant-commits).

Cases tested:

Leverage the existing cms-show-pr functionality to get (reliably?)
the commits of a specific PR, then check what packages it affects
and checking those out.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant