@@ -13,9 +13,10 @@ Test Profiles:
13
13
Matrix Types:
14
14
15
15
Full: All server versions, python runtimes tested with and without Cython.
16
- Develop: Smaller matrix for dev purpose.
17
16
Cassandra: All cassandra server versions.
18
17
Dse: All dse server versions.
18
+ Smoke: CI-friendly configurations. Currently-supported Python version + modern Cassandra/DSE instances.
19
+ We also avoid cython since it's tested as part of the nightlies
19
20
20
21
Parameters:
21
22
@@ -29,25 +30,16 @@ import com.datastax.jenkins.drivers.python.Slack
29
30
30
31
slack = new Slack ()
31
32
32
- // Define our predefined matrices
33
- //
34
- // Smoke tests are CI-friendly test configuration. Currently-supported Python version + modern C*/DSE instances.
35
- // We also avoid cython since it's tested as part of the nightlies.
36
33
DEFAULT_CASSANDRA = [' 2.1' , ' 2.2' , ' 3.0' , ' 3.11' , ' 4.0' ]
37
34
DEFAULT_DSE = [' dse-5.0.15' , ' dse-5.1.35' , ' dse-6.0.18' , ' dse-6.7.17' , ' dse-6.8.30' ]
38
- DEFAULT_RUNTIME = [' 2.7.18 ' , ' 3.5.9 ' , ' 3.6.10 ' , ' 3.7.7' , ' 3.8.3' ]
35
+ DEFAULT_RUNTIME = [' 3.7.7' , ' 3.8.3' ]
39
36
DEFAULT_CYTHON = [" True" , " False" ]
40
37
matrices = [
41
38
" FULL" : [
42
39
" SERVER" : DEFAULT_CASSANDRA + DEFAULT_DSE ,
43
40
" RUNTIME" : DEFAULT_RUNTIME ,
44
41
" CYTHON" : DEFAULT_CYTHON
45
42
],
46
- " DEVELOP" : [
47
- " SERVER" : [' 2.1' , ' 3.11' , ' dse-6.8.30' ],
48
- " RUNTIME" : [' 2.7.18' , ' 3.6.10' ],
49
- " CYTHON" : DEFAULT_CYTHON
50
- ],
51
43
" CASSANDRA" : [
52
44
" SERVER" : DEFAULT_CASSANDRA ,
53
45
" RUNTIME" : DEFAULT_RUNTIME ,
@@ -394,8 +386,9 @@ def describeBuild(buildContext) {
394
386
}
395
387
}
396
388
397
- def scheduleTriggerJobName () {
398
- " drivers/python/oss/master/disabled"
389
+ // branch pattern for cron
390
+ def branchPatternCron () {
391
+ ~" (master)"
399
392
}
400
393
401
394
pipeline {
@@ -460,7 +453,7 @@ pipeline {
460
453
</table>''' )
461
454
choice(
462
455
name : ' MATRIX' ,
463
- choices : [' DEFAULT' , ' SMOKE' , ' FULL' , ' DEVELOP ' , ' CASSANDRA' , ' DSE' ],
456
+ choices : [' DEFAULT' , ' SMOKE' , ' FULL' , ' CASSANDRA' , ' DSE' ],
464
457
description : ''' <p>The matrix for the build.</p>
465
458
<table style="width:100%">
466
459
<col width="25%">
@@ -481,10 +474,6 @@ pipeline {
481
474
<td><strong>FULL</strong></td>
482
475
<td>All server versions, python runtimes tested with and without Cython.</td>
483
476
</tr>
484
- <tr>
485
- <td><strong>DEVELOP</strong></td>
486
- <td>Smaller matrix for dev purpose.</td>
487
- </tr>
488
477
<tr>
489
478
<td><strong>CASSANDRA</strong></td>
490
479
<td>All cassandra server versions.</td>
@@ -629,10 +618,10 @@ pipeline {
629
618
}
630
619
631
620
triggers {
632
- parameterizedCron((scheduleTriggerJobName() == env. JOB_NAME ) ? """
621
+ parameterizedCron(branchPatternCron() . matcher( env. BRANCH_NAME ) . matches( ) ? """
633
622
# Every weeknight (Monday - Friday) around 4:00 AM
634
- # These schedules will run with and without Cython enabled for Python v2 .7.18 and v3.5.9
635
- H 4 * * 1-5 %CI_SCHEDULE=WEEKNIGHTS;EVENT_LOOP=LIBEV;CI_SCHEDULE_PYTHON_VERSION=2 .7.18 3.5.9 ;CI_SCHEDULE_SERVER_VERSION=2.2 3.11 dse-5.1.35 dse-6.0.18 dse-6.7.17
623
+ # These schedules will run with and without Cython enabled for Python 3 .7.7 and 3.8.3
624
+ H 4 * * 1-5 %CI_SCHEDULE=WEEKNIGHTS;EVENT_LOOP=LIBEV;CI_SCHEDULE_PYTHON_VERSION=3 .7.7 3.8.3 ;CI_SCHEDULE_SERVER_VERSION=2.2 3.11 dse-5.1.35 dse-6.0.18 dse-6.7.17
636
625
""" : " " )
637
626
}
638
627
0 commit comments