Conversation
Copilot
AI
changed the title
[WIP] Add support for different build modes in relocatable packages
Extract build mode from relocatable packages for proper timeout configuration
Dec 24, 2025
fruch
reviewed
Dec 25, 2025
fruch
reviewed
Dec 25, 2025
3d35f1b to
55ee2d9
Compare
55ee2d9 to
c265b1d
Compare
- Modified ScyllaCluster.__init__ to extract build mode from install_dir when both install_dir and cassandra_version are provided - Moved __set_default_timeouts() call after parent init to ensure scylla_mode is properly set - Added comprehensive tests for build mode extraction with different modes (debug, dev, release) - All existing tests pass Co-authored-by: fruch <340979+fruch@users.noreply.github.com>
c265b1d to
ba252ab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan to add build mode support for relocatable packages
Summary of Changes
Problem: Relocatable packages had
scylla_modehardcoded toNone, which prevented proper support for different build types (debug/dev/release).Solution:
Modified
ScyllaCluster.__init__(ccmlib/scylla_cluster.py):install_dirandcassandra_versionare provided (e.g., when loading a cluster from disk), the build mode is now extracted from the install directory usingscylla_extract_install_dir_and_mode()load_from_repository(), but wasn't being used when loading from diskFixed timeout calculation:
__set_default_timeouts()call to afterCluster.__init__()to ensurescylla_modeis properly set before calculating timeoutsAdded comprehensive tests (tests/test_build_mode_extraction.py):
tmp_pathpytest fixture per code review@pytest.mark.parametrizefor better test isolationImpact: Relocatable packages now properly support different build modes (debug/dev/release), with appropriate timeout values for each mode.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.