CASSGO-128 Fix LZ4 test fails on arm64 #1250
Workflow file for this run
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
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - trunk | |
| pull_request: | |
| types: [ opened, synchronize, reopened ] | |
| jobs: | |
| unit-tests-amd64: | |
| name: Unit tests AMD64 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go: [ '1.25', '1.26' ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Run linting | |
| run: make check | |
| - name: Run unit tests | |
| run: make test-unit | |
| unit-tests-arm64: | |
| name: Unit tests ARM64 | |
| runs-on: ubuntu-24.04-arm | |
| strategy: | |
| matrix: | |
| go: [ '1.25', '1.26' ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Run linting | |
| run: make check | |
| - name: Run unit tests | |
| run: make test-unit | |
| integration-cassandra: | |
| timeout-minutes: 15 | |
| needs: | |
| - unit-tests-amd64 | |
| - unit-tests-arm64 | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go: [ '1.25', '1.26' ] | |
| cassandra_version: [ '4.1.6', '5.0.3' ] | |
| auth: [ "false" ] | |
| compressor: [ "no-compression", "snappy", "lz4" ] | |
| tags: [ "cassandra", "integration", "ccm" ] | |
| proto_version: [ "4", "5" ] | |
| exclude: | |
| - proto_version: "5" | |
| compressor: "snappy" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| cache: 'pip' | |
| cache-dependency-path: Makefile | |
| - name: Set up cache for SDKMAN | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.sdkman | |
| key: ${{ runner.os }}-sdkman | |
| - name: Set up cache for CCM | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.ccm/repository | |
| key: ${{ runner.os }}-ccm-${{ matrix.cassandra_version }} | |
| - name: Start cassandra nodes | |
| env: | |
| CASSANDRA_VERSION: ${{ matrix.cassandra_version }} | |
| run: | | |
| make cassandra-start | |
| sleep 30s | |
| - name: Integration tests | |
| env: | |
| CASSANDRA_VERSION: ${{ matrix.cassandra_version }} | |
| TEST_CQL_PROTOCOL: ${{ matrix.proto_version }} | |
| TEST_COMPRESSOR: ${{ matrix.compressor }} | |
| TEST_INTEGRATION_TAGS: ${{ matrix.tags }} | |
| run: | | |
| make test-integration | |
| - name: 'Save ccm logs' | |
| if: 'failure()' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ccm-cluster-cassandra-${{ matrix.cassandra_version }}-go-${{ matrix.go }}-tag-${{ matrix.tags }}-proto-version-${{ matrix.proto_version }}-compressor-${{ matrix.compressor }} | |
| path: /home/runner/.ccm/gocql_integration_test | |
| retention-days: 5 | |
| integration-auth-cassandra: | |
| timeout-minutes: 15 | |
| needs: | |
| - unit-tests-amd64 | |
| - unit-tests-arm64 | |
| name: Integration Tests with auth | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go: [ '1.25', '1.26' ] | |
| cassandra_version: [ '4.0.13' ] | |
| compressor: [ "no-compression", "snappy", "lz4" ] | |
| tags: [ "integration" ] | |
| proto_version: [ "4", "5" ] | |
| exclude: | |
| - proto_version: "5" | |
| compressor: "snappy" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| cache: 'pip' | |
| cache-dependency-path: Makefile | |
| - name: Set up cache for SDKMAN | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.sdkman | |
| key: ${{ runner.os }}-sdkman | |
| - name: Set up cache for CCM | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.ccm/repository | |
| key: ${{ runner.os }}-ccm-${{ matrix.cassandra_version }} | |
| - name: Start cassandra nodes | |
| env: | |
| CASSANDRA_VERSION: ${{ matrix.cassandra_version }} | |
| run: | | |
| make cassandra-start | |
| sleep 30s | |
| - name: Integration tests | |
| env: | |
| CASSANDRA_VERSION: ${{ matrix.cassandra_version }} | |
| TEST_CQL_PROTOCOL: ${{ matrix.proto_version }} | |
| TEST_COMPRESSOR: ${{ matrix.compressor }} | |
| TEST_INTEGRATION_TAGS: ${{ matrix.tags }} | |
| run: | | |
| make test-integration-auth |