[dev] Make the gRPC client init test more resilient on Windows #2059
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
#2023 added integration tests to check whether the CLI daemon can recover from an inconsistent
directories.data
state during the core client initialization.The tests do the followings:
directories.data
folder by deleting platform tools, primary package, and library indexes,init
,The tests tend to fail on Windows. As also noted in #2028, deleting the platform tools might fail because the OS is holding the process.
The tests must do the following to be more resilient:
directories.data
structure via the CLI using./arduino-cli core update-index
,directories.data
folder,To reproduce
Please review the issue description and check for flaky builds on the CI.
Example:
Expected behavior
The CI is not failing randomly.
Arduino IDE version
36e2092
Operating system
Windows
Operating system version
N/A
Additional context
When the CI is red due to failed tests, GH Actions will report a false positive defect with the certificates:
Issue checklist
The text was updated successfully, but these errors were encountered: