-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cram] Add locks to the Cram stanza #4397
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation looks good to me. If you think this should be introduced in 2.9, you should add the appropriate milestone and update CHANGES
One remark: locks are filenames and a cram stanza apply to a whole subtree. So it's important that the lock names are interpreted relative to where the cram stanza is written rather than where the .t file happens to be. Might be worth adding a test with a single cram stanza and cram tests at different depth in the tree, to verify that they all take the same lock. |
Well spotted: if I move one of the two tests that should share the same lock in a subdirectory they don(t run sequentially. |
9349675
to
9a3742a
Compare
@rgrinberg I changed the implementation to have locks always relative to the cram stanza , it should be worth it to review it again. |
Signed-off-by: Ulysse Gérard <[email protected]>
Signed-off-by: Ulysse Gérard <[email protected]>
Signed-off-by: Ulysse Gérard <[email protected]>
Signed-off-by: Ulysse Gérard <[email protected]>
* Add locks to Cram stanza * Add timing-based tests for the locks * Reference the new option in the docs * Add changelog entry Signed-off-by: Ulysse Gérard <[email protected]>
* Add locks to Cram stanza * Add timing-based tests for the locks * Reference the new option in the docs * Add changelog entry Signed-off-by: Ulysse Gérard <[email protected]>
* Add locks to Cram stanza * Add timing-based tests for the locks * Reference the new option in the docs * Add changelog entry Signed-off-by: Ulysse Gérard <[email protected]>
* Add locks to Cram stanza * Add timing-based tests for the locks * Reference the new option in the docs * Add changelog entry Signed-off-by: Ulysse Gérard <[email protected]>
* Add locks to Cram stanza * Add timing-based tests for the locks * Reference the new option in the docs * Add changelog entry Signed-off-by: Ulysse Gérard <[email protected]>
* Add locks to Cram stanza * Add timing-based tests for the locks * Reference the new option in the docs * Add changelog entry Signed-off-by: Ulysse Gérard <[email protected]> Co-authored-by: Emilio Jesús Gallego Arias <[email protected]>
This PR adds locks to the Cram stanza. This is necessary to run some mutually exclusive tests.
For example we have some tests of the Merlin server that fail randomly when executed concurrently.
Of course the hard part is testing these changes:
INSIDE_DUNE
but I believe this should not be too dangerous if I then always specify the--root
of the workspace on the command line ?