From: Patrick Donnelly Date: Thu, 11 Apr 2024 19:16:18 +0000 (-0400) Subject: script/ptl-tool: add release name to branch with switch X-Git-Tag: testing/wip-pdonnell-testing-20240412.135609-debug~17^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4112390108370c6c5ccbf949d64974047e2ac928;p=ceph-ci.git script/ptl-tool: add release name to branch with switch Signed-off-by: Patrick Donnelly --- diff --git a/src/script/ptl-tool.py b/src/script/ptl-tool.py index bf80ae258e8..215db9cc06a 100755 --- a/src/script/ptl-tool.py +++ b/src/script/ptl-tool.py @@ -303,6 +303,8 @@ def get_credits(session, pr, pr_req): def build_branch(args): base = args.base branch = datetime.datetime.utcnow().strftime(args.branch).format(user=USER) + if args.branch_release: + branch = branch + "-" + args.branch_release if args.debug_build: branch = branch + "-debug" label = args.label @@ -501,6 +503,7 @@ def main(): argv = sys.argv[1:] parser.add_argument('--base', dest='base', action='store', default=default_base, help='base for branch') parser.add_argument('--branch', dest='branch', action='store', default=default_branch, help='branch to create ("HEAD" leaves HEAD detached; i.e. no branch is made)') + parser.add_argument('--branch-release', dest='branch_release', action='store', help='release name to embed in branch (for shaman)') parser.add_argument('--create-qa', dest='create_qa', action='store_true', help='create QA run ticket') parser.add_argument('--debug', dest='debug', action='store_true', help='turn debugging on') parser.add_argument('--debug-build', dest='debug_build', action='store_true', help='append -debug to branch name prompting ceph-build to build with CMAKE_BUILD_TYPE=Debug')