Jump to: output_first_mismatch    outcomes_full_history    elapsed_time_chart
Show cross-report outcomes.

Annotation type Annotation details
2 @message
Performance problem

assert   
  - ALTER DOMAIN DROP CONSTRAINT performed for acceptable time
  - ALTER DOMAIN ADD CONSTRAINT performed for acceptable time
  + /* perf_issue_tag */ ALTER DOMAIN DROP CONSTRAINT perfomed too slow. Ratios of DML to COMMIT time:
  + 2.6842
  + 2.9444
  + 2.8889
  + 3.0000
  + 2.5500
  + 2.2727
  + 2.6667
  + 3.1579
  + 2.5789
  + 2.8000
  + 2.6667
  + Median value:       2.6842 - GREATER than threshold:       0.8000
  + ALTER DOMAIN ADD CONSTRAINT perfomed too slow. Ratios of DML to COMMIT time:
  + 2.4000
  + 2.4091
  + 2.2857
  + 2.2727
  + 1.6552
  + 2.3182
  + 2.3810
  + 2.3182
  + 2.0870
  + 2.4286
  + 2.3333
  + Median value:       2.3182 - GREATER than threshold:       0.8000

LOG DETAILS:

2024-08-09 16:27:07.212
2024-08-09 16:27:07.219 act = <firebird.qa.plugin.Action object at [hex]>
2024-08-09 16:27:07.233 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2024-08-09 16:27:07.244
2024-08-09 16:27:07.252 @pytest.mark.version('>=3.0.3')
2024-08-09 16:27:07.260 def test_1(act: Action, capsys):
2024-08-09 16:27:07.266 time_data = {}
2024-08-09 16:27:07.272 with act.db.connect() as con:
2024-08-09 16:27:07.278 cur=con.cursor()
2024-08-09 16:27:07.284 cur.execute('select mon$server_pid as p from mon$attachments where mon$attachment_id = current_connection')
2024-08-09 16:27:07.290 fb_pid = int(cur.fetchone()[0])
2024-08-09 16:27:07.295
2024-08-09 16:27:07.300 for i in range(0, N_MEASURES):
2024-08-09 16:27:07.304 fb_info_1 = psutil.Process(fb_pid).cpu_times()
2024-08-09 16:27:07.309 con.execute_immediate(f'alter domain bool_emul drop constraint -- {i}')
2024-08-09 16:27:07.314 fb_info_2 = psutil.Process(fb_pid).cpu_times()
2024-08-09 16:27:07.319 con.commit()
2024-08-09 16:27:07.324 fb_info_3 = psutil.Process(fb_pid).cpu_times()
2024-08-09 16:27:07.329 time_data[ 'del_constraint', i ] = ( max(fb_info_2.user - fb_info_1.user, 0.000001), max(fb_info_3.user - fb_info_2.user, 0.000001)  )
2024-08-09 16:27:07.333
2024-08-09 16:27:07.339 con.execute_immediate(f"alter domain bool_emul add check (value in ('t', 'f')) -- {i}")
2024-08-09 16:27:07.344 fb_info_4 = psutil.Process(fb_pid).cpu_times()
2024-08-09 16:27:07.348 con.commit()
2024-08-09 16:27:07.354 fb_info_5 = psutil.Process(fb_pid).cpu_times()
2024-08-09 16:27:07.359 time_data[ 'add_constraint', i ] = ( max(fb_info_4.user - fb_info_3.user, 0.000001), max(fb_info_5.user - fb_info_4.user, 0.000001)  )
2024-08-09 16:27:07.365
2024-08-09 16:27:07.371
2024-08-09 16:27:07.378 del_constraint_to_commit_ratios = [ v[0] / v[1] for k,v in time_data.items() if k[0] == 'del_constraint' ]
2024-08-09 16:27:07.385 add_constraint_to_commit_ratios = [ v[0] / v[1] for k,v in time_data.items() if k[0] == 'add_constraint'  ]
2024-08-09 16:27:07.391
2024-08-09 16:27:07.397 #for k,v in sorted(time_data.items()):
2024-08-09 16:27:07.403 #    print(k,':::',v)
2024-08-09 16:27:07.410 #print(del_constraint_to_commit_ratios)
2024-08-09 16:27:07.416 #print(add_constraint_to_commit_ratios)
2024-08-09 16:27:07.421
2024-08-09 16:27:07.426 del_constr_to_commit_median = median(del_constraint_to_commit_ratios)
2024-08-09 16:27:07.434 add_constr_to_commit_median = median(add_constraint_to_commit_ratios)
2024-08-09 16:27:07.439
2024-08-09 16:27:07.445 msg_del_success = 'ALTER DOMAIN DROP CONSTRAINT performed for acceptable time'
2024-08-09 16:27:07.452 msg_add_success = 'ALTER DOMAIN ADD CONSTRAINT performed for acceptable time'
2024-08-09 16:27:07.459
2024-08-09 16:27:07.465 if del_constr_to_commit_median < DEL_2_COMMIT_MAX_RATIO:
2024-08-09 16:27:07.470 print(msg_del_success)
2024-08-09 16:27:07.476 else:
2024-08-09 16:27:07.483 print('/* perf_issue_tag */ ALTER DOMAIN DROP CONSTRAINT perfomed too slow. Ratios of DML to COMMIT time:')
2024-08-09 16:27:07.489 for p in del_constraint_to_commit_ratios:
2024-08-09 16:27:07.495 print('%12.4f' % p)
2024-08-09 16:27:07.510 print('Median value: %12.4f - GREATER than threshold: %12.4f' % (del_constr_to_commit_median,DEL_2_COMMIT_MAX_RATIO))
2024-08-09 16:27:07.517
2024-08-09 16:27:07.524
2024-08-09 16:27:07.530 if add_constr_to_commit_median < ADD_2_COMMIT_MAX_RATIO:
2024-08-09 16:27:07.537 print(msg_add_success)
2024-08-09 16:27:07.542 else:
2024-08-09 16:27:07.546 print('ALTER DOMAIN ADD CONSTRAINT perfomed too slow. Ratios of DML to COMMIT time:')
2024-08-09 16:27:07.552 for p in add_constraint_to_commit_ratios:
2024-08-09 16:27:07.557 print('%12.4f' % p)
2024-08-09 16:27:07.563 print('Median value: %12.4f - GREATER than threshold: %12.4f' % (add_constr_to_commit_median,ADD_2_COMMIT_MAX_RATIO))
2024-08-09 16:27:07.568
2024-08-09 16:27:07.577 expected_stdout = '''
2024-08-09 16:27:07.587 ALTER DOMAIN DROP CONSTRAINT performed for acceptable time
2024-08-09 16:27:07.596 ALTER DOMAIN ADD CONSTRAINT performed for acceptable time
2024-08-09 16:27:07.603 '''
2024-08-09 16:27:07.609
2024-08-09 16:27:07.616 act.expected_stdout = expected_stdout
2024-08-09 16:27:07.623 act.stdout = capsys.readouterr().out
2024-08-09 16:27:07.629 >       assert act.clean_stdout == act.clean_expected_stdout
2024-08-09 16:27:07.635 E       assert
2024-08-09 16:27:07.642 E         - ALTER DOMAIN DROP CONSTRAINT performed for acceptable time
2024-08-09 16:27:07.649 E         - ALTER DOMAIN ADD CONSTRAINT performed for acceptable time
2024-08-09 16:27:07.656 E         + /* perf_issue_tag */ ALTER DOMAIN DROP CONSTRAINT perfomed too slow. Ratios of DML to COMMIT time:
2024-08-09 16:27:07.662 E         + 2.6842
2024-08-09 16:27:07.668 E         + 2.9444
2024-08-09 16:27:07.674 E         + 2.8889
2024-08-09 16:27:07.680 E         + 3.0000
2024-08-09 16:27:07.686 E         + 2.5500
2024-08-09 16:27:07.696 E         + 2.2727
2024-08-09 16:27:07.709 E         + 2.6667
2024-08-09 16:27:07.720 E         + 3.1579
2024-08-09 16:27:07.729 E         + 2.5789
2024-08-09 16:27:07.739 E         + 2.8000
2024-08-09 16:27:07.748 E         + 2.6667
2024-08-09 16:27:07.755 E         + Median value:       2.6842 - GREATER than threshold:       0.8000
2024-08-09 16:27:07.762 E         + ALTER DOMAIN ADD CONSTRAINT perfomed too slow. Ratios of DML to COMMIT time:
2024-08-09 16:27:07.768 E         + 2.4000
2024-08-09 16:27:07.774 E         + 2.4091
2024-08-09 16:27:07.779 E         + 2.2857
2024-08-09 16:27:07.785 E         + 2.2727
2024-08-09 16:27:07.791 E         + 1.6552
2024-08-09 16:27:07.803 E         + 2.3182
2024-08-09 16:27:07.811 E         + 2.3810
2024-08-09 16:27:07.819 E         + 2.3182
2024-08-09 16:27:07.827 E         + 2.0870
2024-08-09 16:27:07.833 E         + 2.4286
2024-08-09 16:27:07.839 E         + 2.3333
2024-08-09 16:27:07.846 E         + Median value:       2.3182 - GREATER than threshold:       0.8000
2024-08-09 16:27:07.852
2024-08-09 16:27:07.858 tests/bugs/core_5602_test.py:115: AssertionError
2024-08-09 16:27:07.865 ---------------------------- Captured stdout setup -----------------------------
2024-08-09 16:27:07.872 Restoring db: /var/tmp/qa_2024/test_11115/test.fdb from /opt/distr/venv/firebird-qa/backups/core5602.fbk
3 #text
act = <firebird.qa.plugin.Action pytest object at [hex]>
capsys = <_pytest.capture.CaptureFixture pytest object at [hex]>

    @pytest.mark.version('>=3.0.3')
    def test_1(act: Action, capsys):
        time_data = {}
        with act.db.connect() as con:
            cur=con.cursor()
            cur.execute('select mon$server_pid as p from mon$attachments where mon$attachment_id = current_connection')
            fb_pid = int(cur.fetchone()[0])
    
            for i in range(0, N_MEASURES):
                fb_info_1 = psutil.Process(fb_pid).cpu_times()
                con.execute_immediate(f'alter domain bool_emul drop constraint -- {i}')
                fb_info_2 = psutil.Process(fb_pid).cpu_times()
                con.commit()
                fb_info_3 = psutil.Process(fb_pid).cpu_times()
                time_data[ 'del_constraint', i ] = ( max(fb_info_2.user - fb_info_1.user, 0.000001), max(fb_info_3.user - fb_info_2.user, 0.000001)  )
    
                con.execute_immediate(f"alter domain bool_emul add check (value in ('t', 'f')) -- {i}")
                fb_info_4 = psutil.Process(fb_pid).cpu_times()
                con.commit()
                fb_info_5 = psutil.Process(fb_pid).cpu_times()
                time_data[ 'add_constraint', i ] = ( max(fb_info_4.user - fb_info_3.user, 0.000001), max(fb_info_5.user - fb_info_4.user, 0.000001)  )
    
    
        del_constraint_to_commit_ratios = [ v[0] / v[1] for k,v in time_data.items() if k[0] == 'del_constraint' ]
        add_constraint_to_commit_ratios = [ v[0] / v[1] for k,v in time_data.items() if k[0] == 'add_constraint'  ]
    
        #for k,v in sorted(time_data.items()):
        #    print(k,':::',v)
        #print(del_constraint_to_commit_ratios)
        #print(add_constraint_to_commit_ratios)
    
        del_constr_to_commit_median = median(del_constraint_to_commit_ratios)
        add_constr_to_commit_median = median(add_constraint_to_commit_ratios)
    
        msg_del_success = 'ALTER DOMAIN DROP CONSTRAINT performed for acceptable time'
        msg_add_success = 'ALTER DOMAIN ADD CONSTRAINT performed for acceptable time'
    
        if del_constr_to_commit_median < DEL_2_COMMIT_MAX_RATIO:
            print(msg_del_success)
        else:
            print('/* perf_issue_tag */ ALTER DOMAIN DROP CONSTRAINT perfomed too slow. Ratios of DML to COMMIT time:')
            for p in del_constraint_to_commit_ratios:
                print('%12.4f' % p)
            print('Median value: %12.4f - GREATER than threshold: %12.4f' % (del_constr_to_commit_median,DEL_2_COMMIT_MAX_RATIO))
    
    
        if add_constr_to_commit_median < ADD_2_COMMIT_MAX_RATIO:
            print(msg_add_success)
        else:
            print('ALTER DOMAIN ADD CONSTRAINT perfomed too slow. Ratios of DML to COMMIT time:')
            for p in add_constraint_to_commit_ratios:
                print('%12.4f' % p)
            print('Median value: %12.4f - GREATER than threshold: %12.4f' % (add_constr_to_commit_median,ADD_2_COMMIT_MAX_RATIO))
    
        expected_stdout = '''
            ALTER DOMAIN DROP CONSTRAINT performed for acceptable time
            ALTER DOMAIN ADD CONSTRAINT performed for acceptable time
        '''
    
        act.expected_stdout = expected_stdout
        act.stdout = capsys.readouterr().out
>       assert act.clean_stdout == act.clean_expected_stdout
E       assert   
E         - ALTER DOMAIN DROP CONSTRAINT performed for acceptable time
E         - ALTER DOMAIN ADD CONSTRAINT performed for acceptable time
E         + /* perf_issue_tag */ ALTER DOMAIN DROP CONSTRAINT perfomed too slow. Ratios of DML to COMMIT time:
E         + 2.6842
E         + 2.9444
E         + 2.8889
E         + 3.0000
E         + 2.5500
E         + 2.2727
E         + 2.6667
E         + 3.1579
E         + 2.5789
E         + 2.8000
E         + 2.6667
E         + Median value:       2.6842 - GREATER than threshold:       0.8000
E         + ALTER DOMAIN ADD CONSTRAINT perfomed too slow. Ratios of DML to COMMIT time:
E         + 2.4000
E         + 2.4091
E         + 2.2857
E         + 2.2727
E         + 1.6552
E         + 2.3182
E         + 2.3810
E         + 2.3182
E         + 2.0870
E         + 2.4286
E         + 2.3333
E         + Median value:       2.3182 - GREATER than threshold:       0.8000

tests/bugs/core_5602_test.py:115: AssertionError
Full history of outcomes and elapsed time, ms:
NN SNAP_INFO CS_outcome SS_outcome CS_run_time SS_run_time CS_run_beg CS_run_end SS_run_beg SS_run_end
1 3.0.13.33809 2025.05.06 28ad0 P P 11681 10485 2025.07.02 15:22:30.695 2025.07.02 15:22:42.376 2025.07.02 14:29:57.991 2025.07.02 14:30:08.476
2 3.0.13.33808 2025.04.25 28426 P P 13480 13699 2025.05.06 13:56:31.072 2025.05.06 13:56:44.552 2025.05.06 12:53:53.012 2025.05.06 12:54:06.711
3 3.0.13.33803 2025.02.25 08ebd P P 13522 12661 2025.04.25 17:11:27.175 2025.04.25 17:11:40.697 2025.04.25 16:09:19.253 2025.04.25 16:09:31.914
4 3.0.13.33796 2025.01.29 0ab85 P P 1765 875 2025.02.25 15:44:18.961 2025.02.25 15:44:20.726 2025.02.25 14:42:06.348 2025.02.25 14:42:07.223
5 3.0.13.33796 2025.01.14 99b3b P P 1827 880 2025.01.28 17:59:03.728 2025.01.28 17:59:05.555 2025.01.28 16:55:01.544 2025.01.28 16:55:02.424
6 3.0.13.33795 2024.11.24 b8847 P P 1860 925 2025.01.13 15:36:12.112 2025.01.13 15:36:13.972 2025.01.13 14:33:16.919 2025.01.13 14:33:17.844
7 3.0.13.33794 2024.10.15 abe09 P P 1374 631 2024.11.23 06:39:57.807 2024.11.23 06:39:59.181 2024.11.23 05:52:42.899 2024.11.23 05:52:43.530
8 3.0.13.33793 2024.10.04 82ccc P P 1681 697 2024.10.14 04:36:28.635 2024.10.14 04:36:30.316 2024.10.14 03:44:28.658 2024.10.14 03:44:29.355
9 3.0.13.33792 2024.08.31 d8791 P P 1723 723 2024.10.03 09:43:45.060 2024.10.03 09:43:46.783 2024.10.03 08:48:06.888 2024.10.03 08:48:07.611
10 3.0.13.33787 2024.08.17 2e0d6 P P 3855 1836 2024.08.25 15:41:54.779 2024.08.25 15:41:58.634 2024.08.25 13:40:25.525 2024.08.25 13:40:27.361
11 3.0.13.33787 2024.08.09 df740 P P 2090 935 2024.08.16 13:00:10.885 2024.08.16 13:00:12.975 2024.08.16 11:57:15.618 2024.08.16 11:57:16.553
12 3.0.12.33746 2024.07.15 11dd4 F F 1809 888 2024.08.09 12:56:04.948 2024.08.09 12:56:06.757 2024.08.09 11:51:47.177 2024.08.09 11:51:48.065
13 3.0.12.33746 2024.06.11 8a5eb F F 1765 759 2024.07.15 10:46:50.309 2024.07.15 10:46:52.074 2024.07.15 09:53:12.291 2024.07.15 09:53:13.050
14 3.0.12.33744 2024.05.09 9cf37 F F 1379 611 2024.05.12 15:53:02.505 2024.05.12 15:53:03.884 2024.05.12 15:04:40.526 2024.05.12 15:04:41.137
15 3.0.12.33744 2024.04.20 af6b2 F F 1405 582 2024.05.08 17:08:22.866 2024.05.08 17:08:24.271 2024.05.08 16:22:12.637 2024.05.08 16:22:13.219

Elapsed time, ms. Chart for last 15 runs:

Last commits information (all timestamps in UTC):