fix: set fixed paths_list in TreeMatcher init#2130
Conversation
|
Thanks for this. Can you share the project that caused the error? I'd like to understand better where the concurrent access is coming from. |
Unfortunately it's a closed-source company project. But I believe it occurs because, during testing, we run which updates the |
|
It looks like a good fix, thanks. |
|
Thanks Ned you're a legend! (Unicode sandwich saved me ten years ago when I started coding) |
|
Wow, Unicode sandwich, a historical deep cut! :D |
|
Haha I did a double take when I saw your name on the contributors list. Definitely uncovered some old memories of string processing pain (and retribution) XD |
|
This is now released as part of coverage 7.13.4. |
This lil fix simply ensures we don't get hit with
RuntimeError: Set changed size during iterationif there's any concurrent update tosys.pathswhileTreeMatcher.__init__runs.My CI pipeline has encountered this error:
This seems like a very similar situation to #1733
which was fixed by something similar: 08fc997.