-
Notifications
You must be signed in to change notification settings - Fork 66
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
scylla_repository: setup: allow debug in version string #598
Conversation
ccmlib/scylla_repository.py
Outdated
scylla_debug = version.split(':')[-1] == "debug" | ||
if scylla_debug: | ||
version = version[:-6] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the debug flag is found, remove if from the version string to the rest of the logic in the function is not impacted
else: | ||
_, branch = type_n_version[0].split("/") | ||
s3_url = get_relocatable_s3_url(branch, s3_version, RELOCATABLE_URLS_BASE) | ||
|
||
try: | ||
build_manifest = read_build_manifest(s3_url) | ||
url = build_manifest.get(f'unified-pack-url-{scylla_arch}') | ||
assert url, "didn't found the url for unified package" | ||
url = build_manifest.get(f'unified-pack-url-{scylla_arch}') or build_manifest.get('unified-pack-url') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can something simlar be used for debug as well? I would like that better than replacing it in the final URL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @fruch ☝️
One thing we should take for a spin at least with gating tests (what we missed with the last PR) |
https://jenkins.scylladb.com/view/master/job/scylla-master/job/byo/job/dtest-byo/550/ looks ok at first glance |
c66c2ec
to
cf1a5f6
Compare
Add support for optional [:debug] flag following the version string to specify debug mode.
aa386e6
to
6d060bd
Compare
@cezarmoise did you run verify this PR with next_gating? |
@pehala pointed me to #598 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add support for optional [:debug] flag following the version string to specify debug mode.
Closes: #590
Follow-up on: #591, simple version of that. Just check for the debug flag, and if it exists, add "-debug" where appropiate.
Tested locally