Skip to content

Commit 7b30704

Browse files
authored
Fix[IT]: CSL+FSM together or both disabled; rollback new python features (#592)
Signed-off-by: Evgeny Malygin <[email protected]>
1 parent 0e8bbf2 commit 7b30704

File tree

7 files changed

+12
-182
lines changed

7 files changed

+12
-182
lines changed

Diff for: src/integration-tests/pytest.ini

-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ markers =
1414
single
1515
multi
1616
legacy_mode
17-
csl_mode
1817
fsm_mode
1918
flakey

Diff for: src/integration-tests/run-tests

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# =====
1212
# ./run-tests
1313
# ./run-tests "legacy_mode"
14-
# ./run-tests "not csl_mode"
14+
# ./run-tests "not fsm_mode"
1515
# ./run-tests "legacy_mode or fsm_mode"
1616
# export BLAZINGMQ_IT_PRESET="fsm_mode" && ./run-tests
1717

Diff for: src/python/blazingmq/dev/it/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,8 @@ Tests can be selected using keywords (using the `-k` switch) and/or markers
370370
| `pr_integrationtest` | integration tests to be run as part of a Jenkins PR (currently all tests) |
371371
| `single` | tests that use a local cluster fixture |
372372
| `multi` | tests that use a 4-node, 2-proxy cluster fixture |
373-
| `legacy_mode` | choice between: legacy, CSL, FSM |
374-
| `csl_mode` | choice between: legacy, CSL, FSM |
375-
| `fsm_mode` | choice between: legacy, CSL, FSM |
373+
| `legacy_mode` | choice between: legacy, FSM (with CSL) |
374+
| `fsm_mode` | choice between: legacy, FSM (with CSL) |
376375
| `flakey` | tests that occasionally fail; excluded from the Jenkins PR check |
377376

378377
### Erroneous Exits

Diff for: src/python/blazingmq/dev/it/fixtures.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -453,22 +453,21 @@ def break_before_test(request, cluster):
453453

454454
class Mode(IntEnum):
455455
LEGACY = 0
456-
CSL = 1
457-
FSM = 2
456+
FSM = 1
458457

459458
def tweak(self, cluster: mqbcfg.ClusterDefinition):
460-
cluster.cluster_attributes.is_cslmode_enabled = self >= Mode.CSL
459+
# CSL and FSM settings must be either both enabled or both disabled
460+
cluster.cluster_attributes.is_cslmode_enabled = self == Mode.FSM
461461
cluster.cluster_attributes.is_fsmworkflow = self == Mode.FSM
462462

463463
@property
464464
def suffix(self) -> str:
465-
return ["", "_csl", "_fsm"][self]
465+
return ["", "_fsm"][self]
466466

467467
@property
468468
def marks(self):
469469
return [
470470
[pytest.mark.legacy_mode],
471-
[pytest.mark.csl_mode],
472471
[pytest.mark.fsm_mode],
473472
][self]
474473

Diff for: src/python/blazingmq/dev/it/process/client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141

4242

4343
class CommandResult(NamedTuple):
44-
error_code: int | None
45-
matches: List[re.Match | None] | None
44+
error_code: Optional[int]
45+
matches: Optional[List[Optional[re.Match]]]
4646

4747

4848
blocktimeout = 15
@@ -378,7 +378,7 @@ def list(self, uri=None, block=None) -> List[Message]:
378378

379379
def confirm(
380380
self, uri, guid, block=None, succeed=None, no_except=None
381-
) -> int | None:
381+
) -> Optional[int]:
382382
command = _build_command(f'confirm uri="{uri}" guid="{guid}"', {}, {})
383383
with internal_use(self):
384384
res = self._command_helper(

0 commit comments

Comments
 (0)