Check firebird.log [no messages found for interval when this test was running]
Jump to: output_first_mismatch    outcomes_full_history    elapsed_time_chart
Show cross-report outcomes.

Annotation type Annotation details
2 @message
assert   
  + Restore FAILED:
  + arithmetic exception, numeric overflow, or string truncation
  + -string right truncation
  + -expected length 38, actual 14592
  + -gds_$send failed
  + -Exiting before completion due to errors
  + (335544321, 335544914, 335545033, 336330800, 336330835)

LOG DETAILS:

2025-02-17 09:39:41.174
2025-02-17 09:39:41.182 act = <firebird.qa.plugin.Action object at [hex]>
2025-02-17 09:39:41.191 db_tmp = <firebird.qa.plugin.Database object at [hex]>
2025-02-17 09:39:41.199 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2025-02-17 09:39:41.207
2025-02-17 09:39:41.214 @pytest.mark.version('>=4.0')
2025-02-17 09:39:41.222 def test_1(act: Action, db_tmp: Database, capsys):
2025-02-17 09:39:41.231
2025-02-17 09:39:41.246 #with act.db.connect() as con:
2025-02-17 09:39:41.259 #    if act.is_version('>=5'):
2025-02-17 09:39:41.269 #        pytest.skip("currently works only in FB 4.x.")
2025-02-17 09:39:41.283
2025-02-17 09:39:41.301 backup = BytesIO()
2025-02-17 09:39:41.314 with act.connect_server() as srv:
2025-02-17 09:39:41.325 # 5.0.0.882:
2025-02-17 09:39:41.334 # firebird.driver.types.DatabaseError: message length error (encountered 32, expected 65568)
2025-02-17 09:39:41.344 # -gds_$receive failed
2025-02-17 09:39:41.350 # -Exiting before completion due to errors
2025-02-17 09:39:41.356 #
2025-02-17 09:39:41.364 srv.database.local_backup(database=act.db.db_path, backup_stream=backup)
2025-02-17 09:39:41.370 backup.seek(0)
2025-02-17 09:39:41.376
2025-02-17 09:39:41.382 # 5.0.1.1318, 6.0.0.219 (before fix):
2025-02-17 09:39:41.388 # firebird.driver.types.DatabaseError: expected record length
2025-02-17 09:39:41.394 # -Exiting before completion due to errors
2025-02-17 09:39:41.407 #
2025-02-17 09:39:41.417 try:
2025-02-17 09:39:41.431 srv.database.local_restore(backup_stream = backup, database = db_tmp.db_path, flags = SrvRestoreFlag.REPLACE)
2025-02-17 09:39:41.441 # Validation must pass without any output:
2025-02-17 09:39:41.451 act.gfix(switches=['-v', '-full', db_tmp.db_path], combine_output = True, io_enc = locale.getpreferredencoding())
2025-02-17 09:39:41.464 except DatabaseError as e:
2025-02-17 09:39:41.473 print('Restore FAILED:')
2025-02-17 09:39:41.486 print(e.__str__())
2025-02-17 09:39:41.499 print(e.gds_codes)
2025-02-17 09:39:41.511 finally:
2025-02-17 09:39:41.528 if Path(db_tmp.db_path).is_file():
2025-02-17 09:39:41.539 Path(db_tmp.db_path).unlink()
2025-02-17 09:39:41.550
2025-02-17 09:39:41.559 act.expected_stdout = ''
2025-02-17 09:39:41.568 act.stdout = capsys.readouterr().out
2025-02-17 09:39:41.577 >       assert act.clean_stdout == act.clean_expected_stdout
2025-02-17 09:39:41.584 E       assert
2025-02-17 09:39:41.591 E         + Restore FAILED:
2025-02-17 09:39:41.602 E         + arithmetic exception, numeric overflow, or string truncation
2025-02-17 09:39:41.612 E         + -string right truncation
2025-02-17 09:39:41.618 E         + -expected length 38, actual 14592
2025-02-17 09:39:41.624 E         + -gds_$send failed
2025-02-17 09:39:41.629 E         + -Exiting before completion due to errors
2025-02-17 09:39:41.639 E         + (335544321, 335544914, 335545033, 336330800, 336330835)
2025-02-17 09:39:41.649
2025-02-17 09:39:41.665 tests/bugs/gh_7436_test.py:284: AssertionError
2025-02-17 09:39:41.680 ---------------------------- Captured stdout setup -----------------------------
2025-02-17 09:39:41.693 Creating db: localhost:/var/tmp/qa_2024/test_11497/test.fdb [page_size=None, sql_dialect=None, charset='WIN1251', user=SYSDBA, password=masterkey]
3 #text
act = <firebird.qa.plugin.Action pytest object at [hex]>
db_tmp = <firebird.qa.plugin.Database pytest object at [hex]>
capsys = <_pytest.capture.CaptureFixture pytest object at [hex]>

    @pytest.mark.version('>=4.0')
    def test_1(act: Action, db_tmp: Database, capsys):
    
        #with act.db.connect() as con:
        #    if act.is_version('>=5'):
        #        pytest.skip("currently works only in FB 4.x.")
    
        backup = BytesIO()
        with act.connect_server() as srv:
            # 5.0.0.882:
            # firebird.driver.types.DatabaseError: message length error (encountered 32, expected 65568)
            # -gds_$receive failed
            # -Exiting before completion due to errors
            #
            srv.database.local_backup(database=act.db.db_path, backup_stream=backup)
            backup.seek(0)
    
            # 5.0.1.1318, 6.0.0.219 (before fix):
            # firebird.driver.types.DatabaseError: expected record length
            # -Exiting before completion due to errors
            #
            try:
                srv.database.local_restore(backup_stream = backup, database = db_tmp.db_path, flags = SrvRestoreFlag.REPLACE)
                # Validation must pass without any output:
                act.gfix(switches=['-v', '-full', db_tmp.db_path], combine_output = True, io_enc = locale.getpreferredencoding())
            except DatabaseError as e:
                print('Restore FAILED:')
                print(e.__str__())
                print(e.gds_codes)
            finally:
                if Path(db_tmp.db_path).is_file():
                    Path(db_tmp.db_path).unlink()
    
        act.expected_stdout = ''
        act.stdout = capsys.readouterr().out
>       assert act.clean_stdout == act.clean_expected_stdout
E       assert   
E         + Restore FAILED:
E         + arithmetic exception, numeric overflow, or string truncation
E         + -string right truncation
E         + -expected length 38, actual 14592
E         + -gds_$send failed
E         + -Exiting before completion due to errors
E         + (335544321, 335544914, 335545033, 336330800, 336330835)

tests/bugs/gh_7436_test.py:284: 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 4.0.6.3189 2025.02.25 1a1a5 F F 1047 1328 2025.06.29 15:52:15.674 2025.06.29 15:52:16.721 2025.06.29 14:38:14.785 2025.06.29 14:38:16.113
2 4.0.6.3184 2025.02.24 9388c F F 628 454 2025.02.25 13:47:09.290 2025.02.25 13:47:09.918 2025.02.25 12:28:09.181 2025.02.25 12:28:09.635
3 4.0.6.3183 2025.02.16 cf6ca F F 693 469 2025.02.17 07:41:19.489 2025.02.17 07:41:20.182 2025.02.17 06:21:43.505 2025.02.17 06:21:43.974
4 4.0.6.3169 2024.12.13 42cc1 F F 632 461 2025.02.16 04:38:31.822 2025.02.16 04:38:32.454 2025.02.16 03:21:03.704 2025.02.16 03:21:04.165
5 4.0.6.3169 2024.12.08 50eb6 F F 530 337 2024.12.12 18:55:51.275 2024.12.12 18:55:51.805 2024.12.12 17:53:52.718 2024.12.12 17:53:53.055
6 4.0.6.3168 2024.11.28 48149 F F 500 346 2024.12.06 03:16:49.850 2024.12.06 03:16:50.350 2024.12.06 02:16:29.131 2024.12.06 02:16:29.477
7 4.0.6.3163 2024.10.16 2bb10 F F 526 385 2024.11.27 13:41:25.638 2024.11.27 13:41:26.164 2024.11.27 10:40:08.206 2024.11.27 10:40:08.591
8 4.0.6.3163 2024.10.15 f387e F F 483 349 2024.10.16 04:46:47.601 2024.10.16 04:46:48.084 2024.10.16 03:49:27.358 2024.10.16 03:49:27.707
9 4.0.6.3147 2024.08.31 4655b F F 525 351 2024.09.30 12:02:49.785 2024.09.30 12:02:50.310 2024.09.30 10:58:46.370 2024.09.30 10:58:46.721
10 4.0.6.3140 2024.08.16 1dd8b F F 1028 705 2024.08.31 18:33:30.750 2024.08.31 18:33:31.778 2024.08.31 16:38:22.117 2024.08.31 16:38:22.822
11 4.0.6.3140 2024.08.09 34747 F F 691 499 2024.08.16 11:07:38.306 2024.08.16 11:07:38.997 2024.08.16 09:57:54.506 2024.08.16 09:57:55.005
12 4.0.5.3110 2024.07.30 c6527 F F 613 517 2024.08.09 10:58:30.007 2024.08.09 10:58:30.620 2024.08.09 09:49:07.272 2024.08.09 09:49:07.789
13 4.0.5.3109 2024.06.11 6addf F F 426 275 2024.07.30 09:17:21.824 2024.07.30 09:17:22.250 2024.07.30 08:16:27.773 2024.07.30 08:16:28.048
14 4.0.5.3097 2024.05.09 27fa6 F F 633 403 2024.05.14 10:01:51.156 2024.05.14 10:01:51.789 2024.05.14 08:59:44.330 2024.05.14 08:59:44.733
15 4.0.5.3091 2024.04.29 bd0aa F F 382 260 2024.05.08 21:03:31.458 2024.05.08 21:03:31.840 2024.05.08 20:10:23.541 2024.05.08 20:10:23.801
16 4.0.5.3089 2024.04.25 4b9c7 F F 419 270 2024.04.27 15:48:03.602 2024.04.27 15:48:04.021 2024.04.27 14:54:12.528 2024.04.27 14:54:12.798

Elapsed time, ms. Chart for last 16 runs:

Last commits information (all timestamps in UTC):