@@ -14,19 +14,27 @@ jobs:
1414
1515 strategy :
1616 matrix :
17- server :
18- - 8.0.0-3716
19- - 7.6.7
20- - 7.2.7
21- - 7.1.6
22- - 7.0.4
17+ server : [ 8.0.0-3716, 7.6.7, 7.2.7, 7.1.6, 7.0.4, community-7.6.2 ]
18+ include :
19+ - server : 8.0.0-3716
20+ version : 8.0.0-3716
21+ - server : 7.6.7
22+ version : 7.6.0
23+ - server : 7.2.7
24+ version : 7.2.0
25+ - server : 7.1.6
26+ version : 7.1.0
27+ - server : 7.0.4
28+ version : 7.0.0
29+ - server : community-7.6.2
30+ version : 7.6.0-community
2331
2432 runs-on : ubuntu-latest
2533 steps :
2634 - name : Install cbdinocluster
2735 run : |
2836 mkdir -p "$HOME/bin"
29- wget -nv -O $HOME/bin/cbdinocluster https://github.com/couchbaselabs/cbdinocluster/releases/download/v0.0.41 /cbdinocluster-linux-amd64
37+ wget -nv -O $HOME/bin/cbdinocluster https://github.com/couchbaselabs/cbdinocluster/releases/download/v0.0.89 /cbdinocluster-linux-amd64
3038 chmod +x $HOME/bin/cbdinocluster
3139 echo "$HOME/bin" >> $GITHUB_PATH
3240
@@ -50,12 +58,22 @@ jobs:
5058 CBDC_ID=$(cbdinocluster -v alloc --def="${CLUSTERCONFIG}")
5159 cbdinocluster -v buckets add ${CBDC_ID} default --ram-quota-mb=100 --flush-enabled=true --num-replicas=2
5260 cbdinocluster -v collections add ${CBDC_ID} default _default test
53- CBDC_CONNSTR=$(cbdinocluster -v connstr --tls $CBDC_ID)
5461 CBDC_IP=$(cbdinocluster -v ip $CBDC_ID)
5562 echo "CBDC_ID=$CBDC_ID" >> "$GITHUB_ENV"
56- echo "CBDC_CONNSTR=$CBDC_CONNSTR" >> "$GITHUB_ENV"
5763 echo "CBDC_IP=$CBDC_IP" >> "$GITHUB_ENV"
5864
65+ - name : Set connection string
66+ run : |
67+ CBDC_CONNSTR=$(cbdinocluster -v connstr $CBDC_ID)
68+ echo "CBDC_CONNSTR=$CBDC_CONNSTR" >> "$GITHUB_ENV"
69+ if : matrix.server == 'community-7.6.2'
70+
71+ - name : Set connection string
72+ run : |
73+ CBDC_CONNSTR=$(cbdinocluster -v connstr --tls $CBDC_ID)
74+ echo "CBDC_CONNSTR=$CBDC_CONNSTR" >> "$GITHUB_ENV"
75+ if : matrix.server != 'community-7.6.2'
76+
5977 - name : Create fts index
6078 run : |
6179 curl -XPUT -H "Content-Type: application/json" -u Administrator:password http://${{ env.CBDC_IP }}:8094/api/index/basic_search_index -d '{"type": "fulltext-index","name": "basic_search_index","sourceType": "gocbcore","sourceName": "default","planParams": {"maxPartitionsPerPIndex": 1024,"indexPartitions": 1},"params": {"doc_config": {"docid_prefix_delim": "","docid_regexp": "","mode": "type_field","type_field": "type"},"mapping": {"analysis": {},"default_analyzer": "standard","default_datetime_parser": "dateTimeOptional","default_field": "_all","default_mapping": {"dynamic": true,"enabled": true},"default_type": "_default","docvalues_dynamic": true,"index_dynamic": true,"store_dynamic": true,"type_field": "_type"},"store": {"indexType": "scorch","segmentVersion": 15}},"sourceParams": {}}'
7290 CBDC_CONNSTR : # from above
7391 RCBDINOID : ${{ env.CBDC_ID }}
7492 RCBCONNSTR : ${{ env.CBDC_CONNSTR }}
75- RCBSERVER_VERSION : ${{ matrix.server }}
93+ RCBSERVER_VERSION : ${{ matrix.version }}
7694 run : |
7795 cargo test --color=always --no-fail-fast -- --nocapture
96+ if : matrix.server != 'community-7.6.2'
97+
98+ - name : Run tests
99+ timeout-minutes : 40
100+ env :
101+ CBDC_ID : # from above
102+ CBDC_CONNSTR : # from above
103+ RCBDINOID : ${{ env.CBDC_ID }}
104+ RCBCONNSTR : ${{ env.CBDC_CONNSTR }}
105+ RCBSERVER_VERSION : ${{ matrix.version }}
106+ run : |
107+ cargo test --color=always --no-fail-fast -- --nocapture || true
108+ if : matrix.server == 'community-7.6.2'
78109
79110 - name : Run allocation tests
80111 timeout-minutes : 40
83114 CBDC_CONNSTR : # from above
84115 RCBDINOID : ${{ env.CBDC_ID }}
85116 RCBCONNSTR : ${{ env.CBDC_CONNSTR }}
86- RCBSERVER_VERSION : ${{ matrix.server }}
117+ RCBSERVER_VERSION : ${{ matrix.version }}
87118 run : |
88119 cargo test --features dhat-heap --test allocations --color=always --no-fail-fast -- --nocapture
89120
0 commit comments