@@ -3,42 +3,46 @@ name: Build
33on :
44 push :
55 branches :
6- - master
6+ # - master
7+ - ci-integration-tests-simplify
78 pull_request :
89 types : [ opened, synchronize, reopened ]
910
1011env :
1112 CCM_VERSION : " 6e71061146f7ae67b84ccd2b1d90d7319b640e4c"
1213
1314jobs :
14- build :
15- name : Unit tests
16- runs-on : ubuntu-latest
17- strategy :
18- matrix :
19- go : [ '1.22', '1.23' ]
20- steps :
21- - uses : actions/checkout@v3
22- - uses : actions/setup-go@v4
23- with :
24- go-version : ${{ matrix.go }}
25- - run : go vet
26- - name : Run unit tests
27- run : go test -v -tags unit -race
15+ # build:
16+ # name: Unit tests
17+ # runs-on: ubuntu-latest
18+ # strategy:
19+ # matrix:
20+ # go: [ '1.22', '1.23' ]
21+ # steps:
22+ # - uses: actions/checkout@v3
23+ # - uses: actions/setup-go@v4
24+ # with:
25+ # go-version: ${{ matrix.go }}
26+ # - run: go vet
27+ # - name: Run unit tests
28+ # run: go test -v -tags unit -race
2829 integration-cassandra :
2930 timeout-minutes : 15
30- needs :
31- - build
31+ # needs:
32+ # - build
3233 name : Integration Tests
3334 runs-on : ubuntu-latest
3435 strategy :
3536 fail-fast : false
3637 matrix :
37- go : [ '1.22', '1.23' ]
38- cassandra_version : [ '4.0.13', '4.1.6' ]
39- auth : [ "false" ]
38+ # go: [ '1.22', '1.23' ]
39+ go : [ '1.22' ]
40+ # cassandra_version: [ '4.0.13', '4.1.6' ]
41+ cassandra_version : [ '4.0.13']
42+ # auth: [ "false" ]
4043 compressor : [ "snappy" ]
41- tags : [ "cassandra", "integration", "ccm" ]
44+ # tags: [ "cassandra", "integration", "ccm" ]
45+ tags : [ "all" ]
4246 steps :
4347 - uses : actions/checkout@v2
4448 - uses : actions/setup-go@v2
@@ -110,29 +114,14 @@ jobs:
110114 run : |
111115 source ~/venv/bin/activate
112116 export JVM_EXTRA_OPTS="${{env.JVM_EXTRA_OPTS}}"
113- go test -v -tags "${{ matrix.tags }} gocql_debug" -timeout=5m -race ${{ env.args }}
117+ # go test -v -tags "${{ matrix.tags }} gocql_debug" -timeout=5m -race ${{ env.args }}
114118 - name : ' Save ccm logs'
115119 if : ' failure()'
116120 uses : actions/upload-artifact@v4
117121 with :
118122 name : ccm-cluster-cassandra-${{ matrix.cassandra_version }}-go-${{ matrix.go }}-tag-${{ matrix.tags }}
119123 path : /home/runner/.ccm/test
120124 retention-days : 5
121- integration-auth-cassandra :
122- timeout-minutes : 15
123- needs :
124- - build
125- name : Integration Tests with auth
126- runs-on : ubuntu-latest
127- strategy :
128- fail-fast : false
129- matrix :
130- go : [ '1.22', '1.23' ]
131- cassandra_version : [ '4.0.13' ]
132- compressor : [ "snappy" ]
133- tags : [ "integration" ]
134-
135- steps :
136125 - uses : actions/checkout@v3
137126 - uses : actions/setup-go@v4
138127 with :
@@ -203,3 +192,89 @@ jobs:
203192 source ~/venv/bin/activate
204193 export JVM_EXTRA_OPTS="${{env.JVM_EXTRA_OPTS}}"
205194 go test -v -run=TestAuthentication -tags "${{ matrix.tags }} gocql_debug" -timeout=15s -runauth ${{ env.args }}
195+
196+ # integration-auth-cassandra:
197+ # timeout-minutes: 15
198+ # needs:
199+ # - build
200+ # name: Integration Tests with auth
201+ # runs-on: ubuntu-latest
202+ # strategy:
203+ # fail-fast: false
204+ # matrix:
205+ # go: [ '1.22', '1.23' ]
206+ # cassandra_version: [ '4.0.13' ]
207+ # compressor: [ "snappy" ]
208+ # tags: [ "integration" ]
209+ #
210+ # steps:
211+ # - uses: actions/checkout@v3
212+ # - uses: actions/setup-go@v4
213+ # with:
214+ # go-version: ${{ matrix.go }}
215+ # - name: Setup environment
216+ # uses: ./.github/actions/setup-environment
217+ # - name: Start cassandra nodes
218+ # run: |
219+ # source ~/venv/bin/activate
220+ # VERSION=${{ matrix.cassandra_version }}
221+ # keypath="$(pwd)/testdata/pki"
222+ # conf=(
223+ # "client_encryption_options.enabled: true"
224+ # "client_encryption_options.keystore: $keypath/.keystore"
225+ # "client_encryption_options.keystore_password: cassandra"
226+ # "client_encryption_options.require_client_auth: true"
227+ # "client_encryption_options.truststore: $keypath/.truststore"
228+ # "client_encryption_options.truststore_password: cassandra"
229+ # "concurrent_reads: 2"
230+ # "concurrent_writes: 2"
231+ # "write_request_timeout_in_ms: 5000"
232+ # "read_request_timeout_in_ms: 5000"
233+ # "authenticator: PasswordAuthenticator"
234+ # "authorizer: CassandraAuthorizer"
235+ # "enable_user_defined_functions: true"
236+ # )
237+ #
238+ # if [[ $VERSION == 3.*.* ]]; then
239+ # conf+=(
240+ # "rpc_server_type: sync"
241+ # "rpc_min_threads: 2"
242+ # "rpc_max_threads: 2"
243+ # "enable_user_defined_functions: true"
244+ # "enable_materialized_views: true"
245+ # )
246+ # elif [[ $VERSION == 4.0.* ]]; then
247+ # conf+=(
248+ # "enable_user_defined_functions: true"
249+ # "enable_materialized_views: true"
250+ # )
251+ # else
252+ # conf+=(
253+ # "user_defined_functions_enabled: true"
254+ # "materialized_views_enabled: true"
255+ # )
256+ # fi
257+ #
258+ # ccm remove test || true
259+ #
260+ # ccm create test -v $VERSION -n 1 -d --vnodes --jvm_arg="-Xmx256m -XX:NewSize=100m"
261+ # ccm updateconf "${conf[@]}"
262+ #
263+ # rm -rf $HOME/.ccm/test/node1/data/system_auth
264+ #
265+ # export JVM_EXTRA_OPTS=" -Dcassandra.test.fail_writes_ks=test -Dcassandra.custom_query_handler_class=org.apache.cassandra.cql3.CustomPayloadMirroringQueryHandler"
266+ #
267+ # ccm start --wait-for-binary-proto --verbose
268+ # ccm status
269+ # ccm node1 nodetool status
270+ #
271+ # args="-gocql.timeout=60s -runssl -proto=4 -rf=3 -clusterSize=1 -autowait=2000ms -compressor=${{ matrix.compressor }} -gocql.cversion=$VERSION -cluster=$(ccm liveset) ./..."
272+ #
273+ # echo "args=$args" >> $GITHUB_ENV
274+ # echo "JVM_EXTRA_OPTS=$JVM_EXTRA_OPTS" >> $GITHUB_ENV
275+ # sleep 30s
276+ # - name: Integration tests
277+ # run: |
278+ # source ~/venv/bin/activate
279+ # export JVM_EXTRA_OPTS="${{env.JVM_EXTRA_OPTS}}"
280+ # go test -v -run=TestAuthentication -tags "${{ matrix.tags }} gocql_debug" -timeout=15s -runauth ${{ env.args }}
0 commit comments