2 @message |
AssertionError: ParallelWorkers = 1 must be greater than 1 for this test
assert 1 > 1
LOG DETAILS:
2025-06-17 10:50:48.699
2025-06-17 10:50:48.705 act = <firebird.qa.plugin.Action object at [hex]>
2025-06-17 10:50:48.712 tmp_fbk = PosixPath('/var/tmp/qa_2024/test_11674/tmp_gh_8263.fbk')
2025-06-17 10:50:48.719 tmp_fdb = PosixPath('/var/tmp/qa_2024/test_11674/tmp_gh_8263_restored.tmp')
2025-06-17 10:50:48.726 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2025-06-17 10:50:48.733
2025-06-17 10:50:48.739 @pytest.mark.version('>=5.0')
2025-06-17 10:50:48.746 def test_1(act: Action, tmp_fbk: Path, tmp_fdb: Path, capsys):
2025-06-17 10:50:48.753
2025-06-17 10:50:48.760 if act.vars['server-arch'].lower() != 'classic':
2025-06-17 10:50:48.766 pytest.skip('Only Classic was affected.')
2025-06-17 10:50:48.773
2025-06-17 10:50:48.779 #srv_cfg = driver_config.register_server(name = f'srv_cfg_8263', config = '')
2025-06-17 10:50:48.786 #db_cfg_name = f'db_cfg_8263'
2025-06-17 10:50:48.793 #db_cfg_object = driver_config.register_database(name = db_cfg_name)
2025-06-17 10:50:48.799 #db_cfg_object.server.value = srv_cfg.name
2025-06-17 10:50:48.807 #db_cfg_object.database.value = str(act.db.db_path)
2025-06-17 10:50:48.818 ## db_cfg_object.parallel_workers.value = 3
2025-06-17 10:50:48.826
2025-06-17 10:50:48.833 with act.db.connect() as con: # connect(db_cfg_name, user = act.db.user, password = act.db.password) as con:
2025-06-17 10:50:48.839 chk_sql = """
2025-06-17 10:50:48.845 select
2025-06-17 10:50:48.851 max(iif(rdb$config_name = 'ServerMode', rdb$config_value, null)) as srv_mode
2025-06-17 10:50:48.858 ,cast(max(iif(rdb$config_name = 'ParallelWorkers', rdb$config_value, null)) as int) as par_workers
2025-06-17 10:50:48.865 ,cast(max(iif(rdb$config_name = 'MaxParallelWorkers', rdb$config_value, null)) as int) as max_workers
2025-06-17 10:50:48.871 from rdb$config
2025-06-17 10:50:48.878 """
2025-06-17 10:50:48.884 cur = con.cursor()
2025-06-17 10:50:48.891 cur.execute(chk_sql)
2025-06-17 10:50:48.898 srv_mode, par_workers, max_workers = cur.fetchone()
2025-06-17 10:50:48.905 assert srv_mode == 'Classic', f'Not applicable ServerMode: {srv_mode}'
2025-06-17 10:50:48.912 > assert par_workers > 1, f'ParallelWorkers = {par_workers} must be greater than 1 for this test'
2025-06-17 10:50:48.919 E AssertionError: ParallelWorkers = 1 must be greater than 1 for this test
2025-06-17 10:50:48.927 E assert 1 > 1
2025-06-17 10:50:48.938
2025-06-17 10:50:48.946 tests/bugs/gh_8263_test.py:111: AssertionError
2025-06-17 10:50:48.954 ---------------------------- Captured stdout setup -----------------------------
2025-06-17 10:50:48.959 Creating db: localhost:/var/tmp/qa_2024/test_11674/test.fdb [page_size=8192, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
|
3 #text |
act = <firebird.qa.plugin.Action pytest object at [hex]>
tmp_fbk = PosixPath('/var/tmp/qa_2024/test_11674/tmp_gh_8263.fbk')
tmp_fdb = PosixPath('/var/tmp/qa_2024/test_11674/tmp_gh_8263_restored.tmp')
capsys = <_pytest.capture.CaptureFixture pytest object at [hex]>
@pytest.mark.version('>=5.0')
def test_1(act: Action, tmp_fbk: Path, tmp_fdb: Path, capsys):
if act.vars['server-arch'].lower() != 'classic':
pytest.skip('Only Classic was affected.')
#srv_cfg = driver_config.register_server(name = f'srv_cfg_8263', config = '')
#db_cfg_name = f'db_cfg_8263'
#db_cfg_object = driver_config.register_database(name = db_cfg_name)
#db_cfg_object.server.value = srv_cfg.name
#db_cfg_object.database.value = str(act.db.db_path)
## db_cfg_object.parallel_workers.value = 3
with act.db.connect() as con: # connect(db_cfg_name, user = act.db.user, password = act.db.password) as con:
chk_sql = """
select
max(iif(rdb$config_name = 'ServerMode', rdb$config_value, null)) as srv_mode
,cast(max(iif(rdb$config_name = 'ParallelWorkers', rdb$config_value, null)) as int) as par_workers
,cast(max(iif(rdb$config_name = 'MaxParallelWorkers', rdb$config_value, null)) as int) as max_workers
from rdb$config
"""
cur = con.cursor()
cur.execute(chk_sql)
srv_mode, par_workers, max_workers = cur.fetchone()
assert srv_mode == 'Classic', f'Not applicable ServerMode: {srv_mode}'
> assert par_workers > 1, f'ParallelWorkers = {par_workers} must be greater than 1 for this test'
E AssertionError: ParallelWorkers = 1 must be greater than 1 for this test
E assert 1 > 1
tests/bugs/gh_8263_test.py:111: AssertionError
|