Skip to content

fix: ClientSecure.available() fix for connection closed by remote socket

Sign in for the full log view
GitHub Actions / Test Results failed Jun 17, 2024 in 0s

3 fail, 18 pass in 7m 6s

 56 files   56 suites   7m 6s ⏱️
 21 tests  18 ✅ 0 💤 3 ❌
135 runs  131 ✅ 0 💤 4 ❌

Results for commit 714e32c.

Annotations

Check warning on line 0 in validation.nvs.test_nvs

See this annotation in the file changed.

@github-actions github-actions / Test Results

2 out of 17 runs failed: test_nvs (validation.nvs.test_nvs)

./results/wokwi/validation/nvs/esp32s2/nvs0.xml [took 30s]
./results/wokwi/validation/nvs/esp32s2/nvs1.xml [took 30s]
Raw output
pexpect.exceptions.TIMEOUT: Not found "Current counter value: 0"
Bytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260c) Connected to Wokwi Simulation API 1.0.0-20240617-g5bdf4d3b Starting simulation... ɕ¹Ñcounter value: 0 ɕ¹Ñcounter value: 1 ɕ¹Ñcounter value: 2... (total 677 bytes)
Please check the full log here: /tmp/pytest-embedded/2024-06-17_08-28-58-422164/test_nvs/dut.log
self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f5fba280860>
pattern = 'Current counter value: 0', expect_all = False, not_matching = ()
args = (), kwargs = {}, patterns = ['Current counter value: 0'], res = []
debug_str = 'Not found "Current counter value: 0"\nBytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260..... (total 677 bytes)\nPlease check the full log here: /tmp/pytest-embedded/2024-06-17_08-28-58-422164/test_nvs/dut.log'

    @functools.wraps(func)
    def wrapper(
        self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
    ) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
        patterns = to_list(pattern)
        res = []
        while patterns:
            try:
>               index = func(self, pattern, *args, **kwargs)

/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pytest_embedded/dut.py:76: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pytest_embedded/dut.py:131: in expect
    return self.pexpect_proc.expect(pattern, **kwargs)
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/spawnbase.py:354: in expect
    return self.expect_list(compiled_pattern_list,
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/spawnbase.py:383: in expect_list
    return exp.expect_loop(timeout)
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/expect.py:181: in expect_loop
    return self.timeout(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pexpect.expect.Expecter object at 0x7f5fb9584860>
err = TIMEOUT("<pytest_embedded.log.PexpectProcess object at 0x7f5fba27b860>\nsearcher: searcher_re:\n    0: re.compile(b'Current counter value: 0')")

    def timeout(self, err=None):
        spawn = self.spawn
    
        spawn.before = spawn._before.getvalue()
        spawn.after = TIMEOUT
        index = self.searcher.timeout_index
        if index >= 0:
            spawn.match = TIMEOUT
            spawn.match_index = index
            return index
        else:
            spawn.match = None
            spawn.match_index = None
            msg = str(spawn)
            msg += '\nsearcher: %s' % self.searcher
            if err is not None:
                msg = str(err) + '\n' + msg
    
            exc = TIMEOUT(msg)
            exc.__cause__ = None    # in Python 3.x we can use "raise exc from None"
>           raise exc
E           pexpect.exceptions.TIMEOUT: <pytest_embedded.log.PexpectProcess object at 0x7f5fba27b860>
E           searcher: searcher_re:
E               0: re.compile(b'Current counter value: 0')
E           <pytest_embedded.log.PexpectProcess object at 0x7f5fba27b860>
E           searcher: searcher_re:
E               0: re.compile(b'Current counter value: 0')

/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/expect.py:144: TIMEOUT

The above exception was the direct cause of the following exception:

dut = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f5fba280860>

    def test_nvs(dut):
>       dut.expect("Current counter value: 0")

tests/validation/nvs/test_nvs.py:2: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f5fba280860>
pattern = 'Current counter value: 0', expect_all = False, not_matching = ()
args = (), kwargs = {}, patterns = ['Current counter value: 0'], res = []
debug_str = 'Not found "Current counter value: 0"\nBytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260..... (total 677 bytes)\nPlease check the full log here: /tmp/pytest-embedded/2024-06-17_08-28-58-422164/test_nvs/dut.log'

    @functools.wraps(func)
    def wrapper(
        self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
    ) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
        patterns = to_list(pattern)
        res = []
        while patterns:
            try:
                index = func(self, pattern, *args, **kwargs)
            except (pexpect.EOF, pexpect.TIMEOUT) as e:
                debug_str = (
                    f'Not found "{pattern!s}"\n'
                    f'Bytes in current buffer (color code eliminated): {self.pexpect_proc.buffer_debug_str}\n'
                    f'Please check the full log here: {self.logfile}'
                )
>               raise e.__class__(debug_str) from e
E               pexpect.exceptions.TIMEOUT: Not found "Current counter value: 0"
E               Bytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260c) Connected to Wokwi Simulation API 1.0.0-20240617-g5bdf4d3b Starting simulation... ɕ¹Ñcounter value: 0 ɕ¹Ñcounter value: 1 ɕ¹Ñcounter value: 2... (total 677 bytes)
E               Please check the full log here: /tmp/pytest-embedded/2024-06-17_08-28-58-422164/test_nvs/dut.log

/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pytest_embedded/dut.py:83: TIMEOUT

Check warning on line 0 in validation.democfg.test_democfg

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 6 runs failed: test_cfg (validation.democfg.test_democfg)

./results/wokwi/validation/democfg/esp32s2/democfg.xml [took 30s]
Raw output
pexpect.exceptions.TIMEOUT: Not found "Hello cfg!"
Bytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260c) Connected to Wokwi Simulation API 1.0.0-20240617-g5bdf4d3b Starting simulation... ±±½cfg!
Please check the full log here: /tmp/pytest-embedded/2024-06-17_08-25-55-584024/test_cfg/dut.log
self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f3e7d816360>
pattern = 'Hello cfg!', expect_all = False, not_matching = (), args = ()
kwargs = {}, patterns = ['Hello cfg!'], res = []
debug_str = 'Not found "Hello cfg!"\nBytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260c) Connected t...imulation... ±±½cfg!\nPlease check the full log here: /tmp/pytest-embedded/2024-06-17_08-25-55-584024/test_cfg/dut.log'

    @functools.wraps(func)
    def wrapper(
        self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
    ) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
        patterns = to_list(pattern)
        res = []
        while patterns:
            try:
>               index = func(self, pattern, *args, **kwargs)

/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pytest_embedded/dut.py:76: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pytest_embedded/dut.py:131: in expect
    return self.pexpect_proc.expect(pattern, **kwargs)
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/spawnbase.py:354: in expect
    return self.expect_list(compiled_pattern_list,
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/spawnbase.py:383: in expect_list
    return exp.expect_loop(timeout)
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/expect.py:181: in expect_loop
    return self.timeout(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pexpect.expect.Expecter object at 0x7f3e7e37f830>
err = TIMEOUT("<pytest_embedded.log.PexpectProcess object at 0x7f3e7e37f8f0>\nsearcher: searcher_re:\n    0: re.compile(b'Hello cfg!')")

    def timeout(self, err=None):
        spawn = self.spawn
    
        spawn.before = spawn._before.getvalue()
        spawn.after = TIMEOUT
        index = self.searcher.timeout_index
        if index >= 0:
            spawn.match = TIMEOUT
            spawn.match_index = index
            return index
        else:
            spawn.match = None
            spawn.match_index = None
            msg = str(spawn)
            msg += '\nsearcher: %s' % self.searcher
            if err is not None:
                msg = str(err) + '\n' + msg
    
            exc = TIMEOUT(msg)
            exc.__cause__ = None    # in Python 3.x we can use "raise exc from None"
>           raise exc
E           pexpect.exceptions.TIMEOUT: <pytest_embedded.log.PexpectProcess object at 0x7f3e7e37f8f0>
E           searcher: searcher_re:
E               0: re.compile(b'Hello cfg!')
E           <pytest_embedded.log.PexpectProcess object at 0x7f3e7e37f8f0>
E           searcher: searcher_re:
E               0: re.compile(b'Hello cfg!')

/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/expect.py:144: TIMEOUT

The above exception was the direct cause of the following exception:

dut = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f3e7d816360>

    def test_cfg(dut):
>       dut.expect("Hello cfg!")

tests/validation/democfg/test_democfg.py:2: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f3e7d816360>
pattern = 'Hello cfg!', expect_all = False, not_matching = (), args = ()
kwargs = {}, patterns = ['Hello cfg!'], res = []
debug_str = 'Not found "Hello cfg!"\nBytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260c) Connected t...imulation... ±±½cfg!\nPlease check the full log here: /tmp/pytest-embedded/2024-06-17_08-25-55-584024/test_cfg/dut.log'

    @functools.wraps(func)
    def wrapper(
        self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
    ) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
        patterns = to_list(pattern)
        res = []
        while patterns:
            try:
                index = func(self, pattern, *args, **kwargs)
            except (pexpect.EOF, pexpect.TIMEOUT) as e:
                debug_str = (
                    f'Not found "{pattern!s}"\n'
                    f'Bytes in current buffer (color code eliminated): {self.pexpect_proc.buffer_debug_str}\n'
                    f'Please check the full log here: {self.logfile}'
                )
>               raise e.__class__(debug_str) from e
E               pexpect.exceptions.TIMEOUT: Not found "Hello cfg!"
E               Bytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260c) Connected to Wokwi Simulation API 1.0.0-20240617-g5bdf4d3b Starting simulation... ±±½cfg!
E               Please check the full log here: /tmp/pytest-embedded/2024-06-17_08-25-55-584024/test_cfg/dut.log

/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pytest_embedded/dut.py:83: TIMEOUT

Check warning on line 0 in validation.hello_world.test_hello_world

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 6 runs failed: test_hello_world (validation.hello_world.test_hello_world)

./results/wokwi/validation/hello_world/esp32s2/hello_world.xml [took 30s]
Raw output
pexpect.exceptions.TIMEOUT: Not found "Hello Arduino!"
Bytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260c) Connected to Wokwi Simulation API 1.0.0-20240617-g5bdf4d3b Starting simulation... ±±½Arduino!
Please check the full log here: /tmp/pytest-embedded/2024-06-17_08-26-56-577223/test_hello_world/dut.log
self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7ff14e1b7d40>
pattern = 'Hello Arduino!', expect_all = False, not_matching = (), args = ()
kwargs = {}, patterns = ['Hello Arduino!'], res = []
debug_str = 'Not found "Hello Arduino!"\nBytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260c) Connect... ±±½Arduino!\nPlease check the full log here: /tmp/pytest-embedded/2024-06-17_08-26-56-577223/test_hello_world/dut.log'

    @functools.wraps(func)
    def wrapper(
        self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
    ) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
        patterns = to_list(pattern)
        res = []
        while patterns:
            try:
>               index = func(self, pattern, *args, **kwargs)

/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pytest_embedded/dut.py:76: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pytest_embedded/dut.py:131: in expect
    return self.pexpect_proc.expect(pattern, **kwargs)
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/spawnbase.py:354: in expect
    return self.expect_list(compiled_pattern_list,
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/spawnbase.py:383: in expect_list
    return exp.expect_loop(timeout)
/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/expect.py:181: in expect_loop
    return self.timeout(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pexpect.expect.Expecter object at 0x7ff14ed03560>
err = TIMEOUT("<pytest_embedded.log.PexpectProcess object at 0x7ff14e1b78f0>\nsearcher: searcher_re:\n    0: re.compile(b'Hello Arduino!')")

    def timeout(self, err=None):
        spawn = self.spawn
    
        spawn.before = spawn._before.getvalue()
        spawn.after = TIMEOUT
        index = self.searcher.timeout_index
        if index >= 0:
            spawn.match = TIMEOUT
            spawn.match_index = index
            return index
        else:
            spawn.match = None
            spawn.match_index = None
            msg = str(spawn)
            msg += '\nsearcher: %s' % self.searcher
            if err is not None:
                msg = str(err) + '\n' + msg
    
            exc = TIMEOUT(msg)
            exc.__cause__ = None    # in Python 3.x we can use "raise exc from None"
>           raise exc
E           pexpect.exceptions.TIMEOUT: <pytest_embedded.log.PexpectProcess object at 0x7ff14e1b78f0>
E           searcher: searcher_re:
E               0: re.compile(b'Hello Arduino!')
E           <pytest_embedded.log.PexpectProcess object at 0x7ff14e1b78f0>
E           searcher: searcher_re:
E               0: re.compile(b'Hello Arduino!')

/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pexpect/expect.py:144: TIMEOUT

The above exception was the direct cause of the following exception:

dut = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7ff14e1b7d40>

    def test_hello_world(dut):
>       dut.expect("Hello Arduino!")

tests/validation/hello_world/test_hello_world.py:2: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7ff14e1b7d40>
pattern = 'Hello Arduino!', expect_all = False, not_matching = (), args = ()
kwargs = {}, patterns = ['Hello Arduino!'], res = []
debug_str = 'Not found "Hello Arduino!"\nBytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260c) Connect... ±±½Arduino!\nPlease check the full log here: /tmp/pytest-embedded/2024-06-17_08-26-56-577223/test_hello_world/dut.log'

    @functools.wraps(func)
    def wrapper(
        self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
    ) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
        patterns = to_list(pattern)
        res = []
        while patterns:
            try:
                index = func(self, pattern, *args, **kwargs)
            except (pexpect.EOF, pexpect.TIMEOUT) as e:
                debug_str = (
                    f'Not found "{pattern!s}"\n'
                    f'Bytes in current buffer (color code eliminated): {self.pexpect_proc.buffer_debug_str}\n'
                    f'Please check the full log here: {self.logfile}'
                )
>               raise e.__class__(debug_str) from e
E               pexpect.exceptions.TIMEOUT: Not found "Hello Arduino!"
E               Bytes in current buffer (color code eliminated): Wokwi CLI v0.11.2 (6d639c5d260c) Connected to Wokwi Simulation API 1.0.0-20240617-g5bdf4d3b Starting simulation... ±±½Arduino!
E               Please check the full log here: /tmp/pytest-embedded/2024-06-17_08-26-56-577223/test_hello_world/dut.log

/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/pytest_embedded/dut.py:83: TIMEOUT

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

21 tests found

There are 21 tests, see "Raw output" for the full list of tests.
Raw output
auto_baudrate_test
basic_transmission_test
begin_when_running_test
change_baudrate_test
change_cpu_frequency_test
change_pins_test
disabled_uart_calls_test
enabled_uart_calls_test
end_when_stopped_test
periman_test
resize_buffers_test
test_fail
test_pass
timer_clock_select_test
timer_divider_test
timer_interrupt_test
timer_read_test
validation.democfg.test_democfg ‑ test_cfg
validation.hello_world.test_hello_world ‑ test_hello_world
validation.nvs.test_nvs ‑ test_nvs
validation.wifi.test_wifi ‑ test_wifi