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"""
2130import sys
2231import subprocess
5261tmp_log_py = temp_file ('tmp_7979_run_external.log' )
5362tmp_sql_py = temp_file ('tmp_7979_check_result.sql' )
5463
64+ @pytest .mark .disabled_in_forks
5565@pytest .mark .version ('>=4.0.5' )
5666def 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 }
6579import os
@@ -101,6 +115,9 @@ def test_1(act: Action, tmp_run_py: Path, tmp_log_py: Path, tmp_sql_py: Path, ca
101115
102116subprocess.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