| 1 |
from shrub.v3.evg_build_variant import BuildVariant |
| 2 |
from shrub.v3.evg_task import EvgTaskRef |
| 3 |
|
| 4 |
from config_generator.etc.compile import generate_compile_tasks |
| 5 |
from config_generator.etc.function import merge_defns |
| 6 |
from config_generator.etc.sasl.compile import CompileCommon |
| 7 |
from config_generator.etc.sasl.test import generate_test_tasks |
| 8 |
|
| 9 |
SSL = 'nossl' |
| 10 |
TAG = f'sasl-matrix-{SSL}' |
| 11 |
|
| 12 |
|
| 13 |
# pylint: disable=line-too-long |
| 14 |
# fmt: off |
| 15 |
COMPILE_MATRIX = [ |
| 16 |
# For test matrix. |
| 17 |
('rhel8-latest', 'gcc', None, ['off']), |
| 18 |
|
| 19 |
# For compile only. |
| 20 |
('ubuntu2204', 'gcc', None, ['off']), |
| 21 |
('ubuntu2404', 'gcc', None, ['off']), |
| 22 |
('windows-vsCurrent', 'vs2017x64', None, ['off']), |
| 23 |
] |
| 24 |
|
| 25 |
TEST_MATRIX = [ |
| 26 |
('rhel8-latest', 'gcc', None, 'off', ['noauth'], ['server', 'replica', 'sharded'], ['4.2', '4.4', '5.0', '6.0', '7.0', '8.0', 'rapid', 'latest']), |
| 27 |
] |
| 28 |
# fmt: on |
| 29 |
# pylint: enable=line-too-long |
| 30 |
|
| 31 |
|
| 32 |
class NoSSLCompileCommon(CompileCommon): |
| 33 |
ssl = 'OFF' |
| 34 |
|
| 35 |
|
| 36 |
class SaslOffNoSSLCompile(NoSSLCompileCommon): |
| 37 |
name = 'sasl-off-nossl-compile' |
| 38 |
commands = NoSSLCompileCommon.compile_commands(sasl='OFF') |
| 39 |
|
| 40 |
|
| 41 |
def functions(): |
| 42 |
return merge_defns( |
| 43 |
SaslOffNoSSLCompile.defn(), |
| 44 |
) |
| 45 |
|
| 46 |
|
| 47 |
def tasks(): |
| 48 |
res = [] |
| 49 |
|
| 50 |
SASL_TO_FUNC = { |
| 51 |
'off': SaslOffNoSSLCompile, |
| 52 |
} |
| 53 |
|
| 54 |
res += generate_compile_tasks(SSL, TAG, SASL_TO_FUNC, COMPILE_MATRIX) |
| 55 |
res += generate_test_tasks(SSL, TAG, TEST_MATRIX) |
| 56 |
|
| 57 |
return res |
| 58 |
|
| 59 |
|
| 60 |
def variants(): |
| 61 |
expansions = {} |
| 62 |
|
| 63 |
return [ |
| 64 |
BuildVariant( |
| 65 |
name=TAG, |
| 66 |
display_name=TAG, |
| 67 |
tasks=[EvgTaskRef(name=f'.{TAG}')], |
| 68 |
expansions=expansions, |
| 69 |
), |
| 70 |
] |