这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@liam923
Copy link
Contributor

@liam923 liam923 commented Jul 18, 2025

The tests for parameterized libs (tests/test-dirs/parameters.t) have been flaky. Presumably this is because they use the merlin server, and multiple tests that use the Merlin server running concurrently can cause unexpected behavior. There is prior art to dealing with this - dune locks, as seen in tests/test-dirs/server-tests/dune. This PR makes the parameters.t test take out the merlin_server lock.

Locally on my computer, I have been able to reliably trigger a test failure when building and running tests from a clean repo. After this change, I have not triggered the error (n=4), so I am fairly confident that this change fixes the issue.

@dkalinichenko-js dkalinichenko-js merged commit c9145f8 into main Jul 21, 2025
1 check passed
@liam923 liam923 deleted the use-locks-in-tests branch July 21, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants