Skip to content

Instantly share code, notes, and snippets.

@thu2004
Created June 26, 2023 11:12
Show Gist options
  • Save thu2004/476ba8d72287dbc34549b95f0a699828 to your computer and use it in GitHub Desktop.
Save thu2004/476ba8d72287dbc34549b95f0a699828 to your computer and use it in GitHub Desktop.
---------------------------------------------------------------------------------- live log sessionstart ----------------------------------------------------------------------------------
'['2023-06-26 11:09:22'] [1][139662476048192] [INFO] [cspfw.pytest.plugins.session.plugin.SessionPlugin:13]: Starting a new session with session id: 20230626_110919_724413009'
=================================================================================== test session starts ===================================================================================
platform linux -- Python 3.8.14, pytest-7.4.0, pluggy-1.2.0
Test order randomisation NOT enabled. Enable with --random-order or --random-order-bucket=<bucket_type>
rootdir: /usr/app
configfile: pyproject.toml
plugins: anyio-3.7.0, repeat-0.9.1, random-order-1.1.0, finer-verdicts-1.0.6.post1, datadir-1.4.1
collected 498 items / 497 deselected / 1 selected
cspfw_tests/tests/misc/test_one_dad.py::test_one_dad_crash
-------------------------------------------------------------------------------------- live log call --------------------------------------------------------------------------------------
'['2023-06-26 11:09:25'] [1][139662476048192] [INFO] [cspfw_tests.shared.lib.diagnostics_helper.DiagnosticsHelper:211]: Read active session for node: hpa'
'['2023-06-26 11:09:25'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Connecting'
'['2023-06-26 11:09:25'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Connected'
'['2023-06-26 11:09:25'] [1][139662476048192] [INFO] [cspfw_tests.shared.lib.diagnostics_helper.DiagnosticsHelper:223]: Active session is Session.DEFAULT'
'['2023-06-26 11:09:27'] [1][139662476048192] [INFO] [test_one_dad_crash:12]: Power off VCU'
'['2023-06-26 11:09:27'] [1][139662476048192] [INFO] [comm_libs.webrelay_connection:154]: Will try to turn power OFF via Webrelay'
'['2023-06-26 11:09:27'] [1][139662476048192] [INFO] [comm_libs.webrelay_connection:156]: Webrelay has turned the power OFF'
'['2023-06-26 11:09:27'] [1][139662476048192] [INFO] [test_one_dad_crash:15]: Sleep for 2 seconds to make sure power is dissipated...'
'['2023-06-26 11:09:29'] [1][139662476048192] [INFO] [test_one_dad_crash:17]: Power on VCU'
'['2023-06-26 11:09:29'] [1][139662476048192] [INFO] [comm_libs.webrelay_connection:144]: Will try to turn power ON via Webrelay'
'['2023-06-26 11:09:29'] [1][139662476048192] [INFO] [comm_libs.webrelay_connection:146]: Webrelay has turned the power ON'
'['2023-06-26 11:09:54'] [1][139662476048192] [INFO] [test_one_dad_crash:26]: Checking if HPA diagnostics is alive'
'['2023-06-26 11:09:54'] [1][139662476048192] [INFO] [cspfw_tests.shared.lib.diagnostics_helper.DiagnosticsHelper:211]: Read active session for node: hpa'
'['2023-06-26 11:09:54'] [1][139662476048192] [WARNING] [one_dad:74]: Setting connection status to disconnected as Connection flag is false in connection object'
'['2023-06-26 11:09:54'] [1][139662476048192] [INFO] [test_one_dad_crash:31]: hpa diagnostics is not alive'
'['2023-06-26 11:09:54'] [1][139662476048192] [INFO] [test_one_dad_crash:26]: Checking if HPA diagnostics is alive'
'['2023-06-26 11:09:54'] [1][139662476048192] [INFO] [cspfw_tests.shared.lib.diagnostics_helper.DiagnosticsHelper:211]: Read active session for node: hpa'
'['2023-06-26 11:09:54'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Connecting'
'['2023-06-26 11:10:05'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Disconnected'
'['2023-06-26 11:10:05'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Connecting'
'['2023-06-26 11:10:15'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Disconnected'
'['2023-06-26 11:10:15'] [1][139662476048192] [WARNING] [one_dad:205]: Could not connect to 169.254.4.10 due to Could not connect to 169.254.4.10 due to 102: Failed to open connection
at DAL.Connection.VehicleConnection.Open(String jsonConfig) in D:\a\1\s\DAL.Connection\VehicleConnection.cs:line 38
at DAL.Connection.VehicleConnection.Open() in D:\a\1\s\DAL.Connection\VehicleConnection.cs:line 30..'
'['2023-06-26 11:10:15'] [1][139662476048192] [INFO] [test_one_dad_crash:31]: hpa diagnostics is not alive'
'['2023-06-26 11:10:15'] [1][139662476048192] [INFO] [test_one_dad_crash:26]: Checking if HPA diagnostics is alive'
'['2023-06-26 11:10:15'] [1][139662476048192] [INFO] [cspfw_tests.shared.lib.diagnostics_helper.DiagnosticsHelper:211]: Read active session for node: hpa'
'['2023-06-26 11:10:15'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Connecting'
'['2023-06-26 11:10:27'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Disconnected'
'['2023-06-26 11:10:27'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Connecting'
'['2023-06-26 11:10:39'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Disconnected'
'['2023-06-26 11:10:39'] [1][139662476048192] [WARNING] [one_dad:205]: Could not connect to 169.254.4.10 due to Could not connect to 169.254.4.10 due to 102: Failed to open connection
at DAL.Connection.VehicleConnection.Open(String jsonConfig) in D:\a\1\s\DAL.Connection\VehicleConnection.cs:line 38
at DAL.Connection.VehicleConnection.Open() in D:\a\1\s\DAL.Connection\VehicleConnection.cs:line 30..'
'['2023-06-26 11:10:39'] [1][139662476048192] [INFO] [test_one_dad_crash:31]: hpa diagnostics is not alive'
'['2023-06-26 11:10:39'] [1][139662476048192] [INFO] [test_one_dad_crash:26]: Checking if HPA diagnostics is alive'
'['2023-06-26 11:10:39'] [1][139662476048192] [INFO] [cspfw_tests.shared.lib.diagnostics_helper.DiagnosticsHelper:211]: Read active session for node: hpa'
'['2023-06-26 11:10:39'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Connecting'
'['2023-06-26 11:10:50'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Disconnected'
'['2023-06-26 11:10:50'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Connecting'
'['2023-06-26 11:11:01'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Disconnected'
'['2023-06-26 11:11:01'] [1][139662476048192] [WARNING] [one_dad:205]: Could not connect to 169.254.4.10 due to Could not connect to 169.254.4.10 due to 102: Failed to open connection
at DAL.Connection.VehicleConnection.Open(String jsonConfig) in D:\a\1\s\DAL.Connection\VehicleConnection.cs:line 38
at DAL.Connection.VehicleConnection.Open() in D:\a\1\s\DAL.Connection\VehicleConnection.cs:line 30..'
'['2023-06-26 11:11:01'] [1][139662476048192] [INFO] [test_one_dad_crash:31]: hpa diagnostics is not alive'
'['2023-06-26 11:11:01'] [1][139662476048192] [INFO] [test_one_dad_crash:26]: Checking if HPA diagnostics is alive'
'['2023-06-26 11:11:01'] [1][139662476048192] [INFO] [cspfw_tests.shared.lib.diagnostics_helper.DiagnosticsHelper:211]: Read active session for node: hpa'
'['2023-06-26 11:11:01'] [1][139662476048192] [INFO] [one_dad:51]: Connection status changed: Connecting'
'['2023-06-26 11:11:05'] [1][139659199432448] [INFO] [one_dad:51]: Connection status changed: Connected'
Fatal Python error: Segmentation fault
Thread 0x00007f05b445f740 (most recent call first):
File "/usr/local/lib/python3.8/site-packages/one_dad/dll_helpers/connection.py", line 51 in open
File "/usr/local/lib/python3.8/site-packages/one_dad/one_dad_library.py", line 197 in connect
File "/usr/app/cspfw_tests/shared/lib/diagnostics_helper.py", line 148 in one_dad
File "/usr/app/cspfw_tests/shared/lib/diagnostics_helper.py", line 187 in send_request
File "/usr/app/cspfw_tests/shared/lib/diagnostics_helper.py", line 212 in read_active_diagnostic_session
File "/usr/app/cspfw_tests/tests/misc/test_one_dad.py", line 27 in test_one_dad_crash
File "/usr/local/lib/python3.8/site-packages/_pytest/python.py", line 194 in pytest_pyfunc_call
File "/usr/local/lib/python3.8/site-packages/pluggy/_callers.py", line 80 in _multicall
File "/usr/local/lib/python3.8/site-packages/pluggy/_manager.py", line 112 in _hookexec
File "/usr/local/lib/python3.8/site-packages/pluggy/_hooks.py", line 433 in __call__
File "/usr/local/lib/python3.8/site-packages/_pytest/python.py", line 1788 in runtest
File "/usr/local/lib/python3.8/site-packages/_pytest/runner.py", line 169 in pytest_runtest_call
File "/usr/local/lib/python3.8/site-packages/pluggy/_callers.py", line 80 in _multicall
File "/usr/local/lib/python3.8/site-packages/pluggy/_manager.py", line 112 in _hookexec
File "/usr/local/lib/python3.8/site-packages/pluggy/_hooks.py", line 433 in __call__
File "/usr/local/lib/python3.8/site-packages/_pytest/runner.py", line 262 in <lambda>
File "/usr/local/lib/python3.8/site-packages/_pytest/runner.py", line 341 in from_call
File "/usr/local/lib/python3.8/site-packages/_pytest/runner.py", line 261 in call_runtest_hook
File "/usr/local/lib/python3.8/site-packages/_pytest/runner.py", line 222 in call_and_report
File "/usr/local/lib/python3.8/site-packages/_pytest/runner.py", line 133 in runtestprotocol
File "/usr/local/lib/python3.8/site-packages/_pytest/runner.py", line 114 in pytest_runtest_protocol
File "/usr/local/lib/python3.8/site-packages/pluggy/_callers.py", line 80 in _multicall
File "/usr/local/lib/python3.8/site-packages/pluggy/_manager.py", line 112 in _hookexec
File "/usr/local/lib/python3.8/site-packages/pluggy/_hooks.py", line 433 in __call__
File "/usr/local/lib/python3.8/site-packages/_pytest/main.py", line 349 in pytest_runtestloop
File "/usr/local/lib/python3.8/site-packages/pluggy/_callers.py", line 80 in _multicall
File "/usr/local/lib/python3.8/site-packages/pluggy/_manager.py", line 112 in _hookexec
File "/usr/local/lib/python3.8/site-packages/pluggy/_hooks.py", line 433 in __call__
File "/usr/local/lib/python3.8/site-packages/_pytest/main.py", line 324 in _main
File "/usr/local/lib/python3.8/site-packages/_pytest/main.py", line 270 in wrap_session
File "/usr/local/lib/python3.8/site-packages/_pytest/main.py", line 317 in pytest_cmdline_main
File "/usr/local/lib/python3.8/site-packages/pluggy/_callers.py", line 80 in _multicall
File "/usr/local/lib/python3.8/site-packages/pluggy/_manager.py", line 112 in _hookexec
File "/usr/local/lib/python3.8/site-packages/pluggy/_hooks.py", line 433 in __call__
File "/usr/local/lib/python3.8/site-packages/_pytest/config/__init__.py", line 166 in main
File "/usr/app/cspfw_tests/__main__.py", line 55 in handle_command
File "/usr/app/cspfw_tests/__main__.py", line 61 in main
File "/usr/app/cspfw_tests/__main__.py", line 66 in <module>
nox > Command docker compose run -e VAULT_ADDR=https://winterfell.csp-dev.net -e VAULT_TOKEN=s.7FMYSrJI5wlzpoSH6QpkKvkA -e SWDL_BASELINE_TO_RESTORE=gen1-cspcd.master.3191 cspfw_tests --log-cli-level=INFO --cspfw-suites test_one_dad failed with exit code 139
nox > Session run_docker failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment