tempesta-tech / tempesta-test

Test suite for Tempesta FW
10 stars 4 forks source link

unstable tests #525

Open RomanBelozerov opened 9 months ago

RomanBelozerov commented 9 months ago

Tempesta - ff0f02145172b92794ef3cd086a12af737caa793 Tempesta-test - ff0860655187b159cd981399961f9f1345e09b58

Any config:

Local config:

Local config with TCP seg 1:

FAIL: test_large_frame_payload_length (http2_general.test_h2_hpack.TestFramePayloadLength)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/workspace/_PR_tempesta_PR-1981/tempesta-test/http2_general/test_h2_hpack.py", line 792, in test_large_frame_payload_length
    self.assertIn(ErrorCodes.PROTOCOL_ERROR, client.error_codes)
AssertionError: <ErrorCodes.PROTOCOL_ERROR: 1> not found in [<class 'ssl.SSLWantReadError'>]

Remote config:

Please remove these tests after fix from tests_disabled*.json files and from tests_retry.

voodam commented 8 months ago

Also see these: https://github.com/tempesta-tech/tempesta/issues/1968 https://github.com/tempesta-tech/tempesta-test/issues/467

voodam commented 8 months ago

./run_tests.py -T 1:

FAIL: test_large_frame_payload_length (http2_general.test_h2_hpack.TestFramePayloadLength)

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/home/jenkins/workspace/_PR_tempesta_PR-1981/tempesta-test/http2_general/test_h2_hpack.py", line 792, in test_large_frame_payload_length

    self.assertIn(ErrorCodes.PROTOCOL_ERROR, client.error_codes)

AssertionError: <ErrorCodes.PROTOCOL_ERROR: 1> not found in [<class 'ssl.SSLWantReadError'>]

Flaky test on TCP segmentation (pretty much, about half of tries). I tried to find the place where it was introduced, but didn't find, probably it was enabied by:

commit cac7c14f8b3e93b4be7ad0a872ec2d079a984820 (HEAD)
Author: EvgeniiMekhanik <em@tempesta-tech.com>
Date:   Mon Jul 24 10:48:05 2023 +0300

    Enabled tests blocked by PR 1926
EvgeniiMekhanik commented 4 months ago

test_block_action_error_reply_with_conn_close_garbage (http2_general.test_h2_block_action.BlockActionH2ReplyFramesAfterShutdownWithCustomErrorPageSmallWindow) is also unstable with TCP segmentation

EvgeniiMekhanik commented 3 months ago

tls.test_tls_cert.WrkTestsMultipleVhosts.test_wrk is also unstable with TCP segmentation

======================================================================
ERROR: test_wrk (tls.test_tls_cert.WrkTestsMultipleVhosts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/workspace/_PR_tempesta_PR-2072/tempesta-test/helpers/remote.py", line 107, in run_cmd
    assert p.returncode == 0, "Cmd: '%s' return code is not 0 (%d)." % (
AssertionError: Cmd: '/root/tempesta/scripts/tempesta.sh --reload' return code is not 0 (1).

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/jenkins/workspace/_PR_tempesta_PR-2072/tempesta-test/tls/test_tls_cert.py", line 875, in test_wrk
    self.config_changer(10)
  File "/home/jenkins/workspace/_PR_tempesta_PR-2072/tempesta-test/tls/test_tls_cert.py", line 861, in config_changer
    self.get_tempesta().reload()
  File "/home/jenkins/workspace/_PR_tempesta_PR-2072/tempesta-test/helpers/control.py", line 334, in reload
    self._do_run(f"{self.srcdir}/scripts/tempesta.sh --reload")
  File "/home/jenkins/workspace/_PR_tempesta_PR-2072/tempesta-test/helpers/control.py", line 346, in _do_run
    self.node.run_cmd(cmd, timeout=30, env=env, err_msg=(self.err_msg % "start"))
  File "/home/jenkins/workspace/_PR_tempesta_PR-2072/tempesta-test/helpers/remote.py", line 121, in run_cmd
    raise CmdError(
helpers.remote.CmdError: ('Сmd /root/tempesta/scripts/tempesta.sh --reload exited with return code 1', b'...compile html templates for JS challenge\nRunning live reconfiguration of Tempesta...\nERROR: cannot reconfigure Tempesta FW (sysctl message: \n0), please check dmesg\n', b'', 1)

----------------------------------------------------------------------