Skip to content

Shard aware batching - add Session::shard_for_statement & Batch::enforce_target_node #1632

Shard aware batching - add Session::shard_for_statement & Batch::enforce_target_node

Shard aware batching - add Session::shard_for_statement & Batch::enforce_target_node #1632

Workflow file for this run

# This workflow runs all tests on cassandra to ensure full compatibility
name: Cassandra tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup 3-node Cassandra cluster
run: |
docker-compose -f test/cluster/cassandra/docker-compose.yml up -d
# A separate step for building to separate measuring time of compilation and testing
- name: Build the project
run: cargo build --verbose --tests
- name: Run tests on cassandra
run: |
CDC='disabled' SCYLLA_URI=172.42.0.2:9042 SCYLLA_URI2=172.42.0.3:9042 SCYLLA_URI3=172.42.0.4:9042 cargo test --verbose -- --skip test_views_in_schema_info
- name: Stop the cluster
if: ${{ always() }}
run: docker-compose -f test/cluster/cassandra/docker-compose.yml stop
- name: Print the cluster logs
if: ${{ always() }}
run: docker-compose -f test/cluster/cassandra/docker-compose.yml logs
- name: Remove cluster
run: docker-compose -f test/cluster/cassandra/docker-compose.yml down