Skip to content

cassandra 5.0 vector type CREATE/INSERT support #1

cassandra 5.0 vector type CREATE/INSERT support

cassandra 5.0 vector type CREATE/INSERT support #1

Workflow file for this run

# This workflow runs cassandra5 specific tests # TODO: When cassandra 5.0.0 releases, delete this workflow and move RUSTFLAGS="--cfg cassandra_tests" into the cassandra.yml workflow
name: Cassandra 5 beta tests
on:
push:
branches:
- main
- 'branch-*'
pull_request:
branches:
- main
- 'branch-*'
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Setup 3-node Cassandra cluster
run: |
docker compose -f test/cluster/cassandra5/docker-compose.yml up -d --wait
# A separate step for building to separate measuring time of compilation and testing
- name: Update rust toolchain
run: rustup update
- name: Build the project
run: cargo build --verbose --tests --features "full-serialization"
- name: Run tests on cassandra 5 beta
run: |
CDC='disabled' RUSTFLAGS="--cfg cassandra_tests" RUST_LOG=trace SCYLLA_URI=172.42.0.2:9042 SCYLLA_URI2=172.42.0.3:9042 SCYLLA_URI3=172.42.0.4:9042 cargo test --verbose --features "full-serialization" -- --skip test_views_in_schema_info --skip test_large_batch_statements
- name: Stop the cluster
if: ${{ always() }}
run: docker compose -f test/cluster/cassandra5/docker-compose.yml stop
- name: Print the cluster logs
if: ${{ always() }}
run: docker compose -f test/cluster/cassandra5/docker-compose.yml logs
- name: Remove cluster
run: docker compose -f test/cluster/cassandra5/docker-compose.yml down