This issue was already investigated, a solution patch was already tested and a new PR will be done immediately to solve the problem
Description
When using the CLI application, some errors may cause an exception to be triggered.
The exception logic will currently skip the HTTPx client destruction, resulting in the following error:
[...] /httpx/_client.py:1978: UserWarning: Unclosed <httpx.AsyncClient object at 0xffffb95852a0>. See https://www.python-httpx.org/async/#opening-and-closing-clients for details.
This issue blocks the user from using the CLI app again until the HTTPx client is closed, and the service destruction it's not trivial.
Steps to reproduce the behavior
For instance, we may:
Pre-requirements for CLI (config.json, poetry, etc.)
Run a test with a wrong parameter (e.g ./cli.sh run-tests --project-id 1 --selected-tests '{"automated_and_semi_automated":{"FirstChipToolSuite":{"TC_BINFO_1_1":1}}}')
Run one or more time again to receive the error mentioned in the description.
But any error that triggers an exception will do (e.g. project operations like creation, deletion or printing)
Expected behavior
It's expected that the user may use the CLI application again after an error occurs, adjusting the CLI command as needed.
Describe the bug
Attention
This issue was already investigated, a solution patch was already tested and a new PR will be done immediately to solve the problem
Description
When using the CLI application, some errors may cause an exception to be triggered. The exception logic will currently skip the HTTPx client destruction, resulting in the following error:
[...] /httpx/_client.py:1978: UserWarning: Unclosed <httpx.AsyncClient object at 0xffffb95852a0>. See https://www.python-httpx.org/async/#opening-and-closing-clients for details.
This issue blocks the user from using the CLI app again until the HTTPx client is closed, and the service destruction it's not trivial.
Steps to reproduce the behavior
For instance, we may:
./cli.sh run-tests --project-id 1 --selected-tests '{"automated_and_semi_automated":{"FirstChipToolSuite":{"TC_BINFO_1_1":1}}}'
)But any error that triggers an exception will do (e.g. project operations like creation, deletion or printing)
Expected behavior
It's expected that the user may use the CLI application again after an error occurs, adjusting the CLI command as needed.
Log files
No response
PICS file
No response
Screenshots
Environment
No response
Additional Information
No response