Open sylvlecl opened 1 month ago
Actually a duplicate of https://github.com/AntaresSimulatorTeam/AntaREST/issues/1416
As previously identified by the team, in our case it's likely that the watcher service is causing those issues, see logs above where we see the watcher scanning in close timestamps from our upgrade.
Starting from here, we can imagine 2 solutions :
So at least in a first time, we can implement the retry mechanism.
More digging again: we actually see in the logs that the watcher scans a temporary study, which it should ignore.
This is another bug that we should fix, which would probably solve the isues we have in unit tests, although not removing the small risk that the situation arises in real life on windows environments.
Description
Study upgrade tests randomly fail on windows with a "PermissionError", see logs:
This seems to be an issue with low level OS functions not always releasing soon enough the handle on the renamed file. See this analysis and workaround proposition: https://github.com/conan-io/conan/issues/6560#issuecomment-661679853
We should implement this workaround to ensure correct behaviour of the app and stability of the tests.