Skip to content

Commit 1bef2dd

Browse files
committed
Added/Updated tests\bugs\gh_7979_test.py: Added [temporary] mark for SKIP this test when QA runs agains *fork* of standard FB because it hangs. See comments in the test source.
1 parent 3247e6c commit 1bef2dd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/bugs/gh_7979_test.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
[15.02.2024] pzotov
1818
Checked on 4.0.5.3059 (commit #a552f1f3), 5.0.1.1340 (commit #f7171b58).
1919
NOTE: 3.0.123.3731 (dob=15.02.2024) does NOT pass this test.
20+
21+
[16.02.2024] pzotov
22+
Added [temporary] mark for SKIP this test when QA runs agains *fork* of standard FB because it hangs ('disabled_in_forks').
23+
This mark will be removed after separating QA runs (executing tests against standard FB snapshot on DEDICATED machine).
24+
25+
NB-1. QA must use command like: 'pytest -m "not disabled_in_hqbird" ...' when check *fork* of standard FB.
26+
NB-2. Unfortunately, nowadays QA runs for standard FB and its fork are performed at the same host.
27+
Lagging problem exists with [back-]porting of some fixes/features into fork after implementation for the same FB-major version.
28+
This can cause the whole QA-job to be incompleted and missed report for one of even several days.
2029
"""
2130
import sys
2231
import subprocess
@@ -52,6 +61,7 @@
5261
tmp_log_py = temp_file('tmp_7979_run_external.log')
5362
tmp_sql_py = temp_file('tmp_7979_check_result.sql')
5463

64+
@pytest.mark.disabled_in_forks
5565
@pytest.mark.version('>=4.0.5')
5666
def test_1(act: Action, tmp_run_py: Path, tmp_log_py: Path, tmp_sql_py: Path, capsys):
5767
if act.platform == 'Windows':
@@ -60,6 +70,10 @@ def test_1(act: Action, tmp_run_py: Path, tmp_log_py: Path, tmp_sql_py: Path, ca
6070
pytest.skip('Applies only to SuperServer')
6171

6272
py_run_ext = ' '.join( [ sys.executable, '-u', f'{str(tmp_run_py)}'] )
73+
74+
##########################################################################################
75+
### G E N E R A T I O N O F T E M P O R A R Y P Y T H O N S C R I P T ###
76+
##########################################################################################
6377
py_source = f"""# -*- coding: utf-8 -*-
6478
# {py_run_ext}
6579
import os
@@ -101,6 +115,9 @@ def test_1(act: Action, tmp_run_py: Path, tmp_log_py: Path, tmp_sql_py: Path, ca
101115
102116
subprocess.run( [bin_isql, '-q', '-i', tmp_sql, db_conn] )
103117
"""
118+
########################################################
119+
### END OF GENERATION OF TEMPORARY PYTHON SCRIPT ###
120+
########################################################
104121

105122
tmp_run_py.write_text(py_source)
106123
with open(tmp_log_py, 'w') as f:

0 commit comments

Comments
 (0)