Skip to content

tests: enable vector integration tests on Scylla 2025.4+#698

Open
mykaul wants to merge 1 commit intoscylladb:masterfrom
mykaul:enable_vector_tests
Open

tests: enable vector integration tests on Scylla 2025.4+#698
mykaul wants to merge 1 commit intoscylladb:masterfrom
mykaul:enable_vector_tests

Conversation

@mykaul
Copy link

@mykaul mykaul commented Feb 13, 2026

Vector type is supported on Scylla 2025.4 and above. Enable the integration tests.

Tested locally against both 2025.4.2 and 2026.1 and they pass.
Tested locally against 2025.1, where it is skipped, as it should be.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

Vector type is supported on Scylla 2025.4 and above.
Enable the integration tests.

Tested locally against both 2025.4.2 and 2026.1 and they pass.
Tested locally against 2025.1, where it is skipped, as it should be.

Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com>
@mykaul
Copy link
Author

mykaul commented Feb 13, 2026

I'm pretty sure CI is broken :-/

Comment on lines +282 to +292
def _is_cass50_or_scylla_2025_4_plus():
if CASSANDRA_VERSION >= Version('5.0-beta'):
return True
if SCYLLA_VERSION is None:
return False
return Version(get_scylla_version(SCYLLA_VERSION)) >= Version('2025.4')

greaterthanorequalcass50_or_scylla_2025_4 = unittest.skipUnless(
_is_cass50_or_scylla_2025_4_plus(),
'Cassandra >= 5.0 or Scylla >= 2025.4 required'
)

Choose a reason for hiding this comment

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

Can you rename:
_is_cass50_or_scylla_2025_4_plus -> _has_vector_type
greaterthanorequalcass50_or_scylla_2025_4 -> requires_vector_type
?
And preferably move it to where other similar requirements live (like requires_collection_indexes).

Comment on lines +282 to +287
def _is_cass50_or_scylla_2025_4_plus():
if CASSANDRA_VERSION >= Version('5.0-beta'):
return True
if SCYLLA_VERSION is None:
return False
return Version(get_scylla_version(SCYLLA_VERSION)) >= Version('2025.4')

Choose a reason for hiding this comment

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

A bit more future-proof version, not depending on which CASSANDRA_VERSION scylla maps to:

def _has_vector_type():
    if SCYLLA_VERSION is not None:
        return Version(get_scylla_version(SCYLLA_VERSION)) >= Version('2025.4')
    return CASSANDRA_VERSION >= Version('5.0-beta'):

@mykaul mykaul self-assigned this Feb 16, 2026
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.

2 participants