Skip to content

HTTP tests: have a separate pid and socket file per test suite#1062

Merged
samoht merged 6 commits intomirage:masterfrom
samoht:flaky-tests
Aug 12, 2020
Merged

HTTP tests: have a separate pid and socket file per test suite#1062
samoht merged 6 commits intomirage:masterfrom
samoht:flaky-tests

Conversation

@samoht
Copy link
Copy Markdown
Member

@samoht samoht commented Aug 12, 2020

No description provided.

@samoht samoht added the no-changelog-needed No changelog is needed here label Aug 12, 2020
samoht added 3 commits August 12, 2020 09:03
otherwise the file's mode is set read-only by dune and that fails
if you run the test twice.
@samoht
Copy link
Copy Markdown
Member Author

samoht commented Aug 12, 2020

There were indeed still a race where a previous test could delete the pid file of the next one. I have no idea how this could be happening, still investigating. But I've made sure every test have their own pid file, to avoid this being removed accidentally. With that change I think we don't need the test locks anymore (will test that in another PR once I managed to fix the flakiness).

@samoht samoht force-pushed the flaky-tests branch 2 times, most recently from 33b693f to 418631d Compare August 12, 2020 10:18
@samoht
Copy link
Copy Markdown
Member Author

samoht commented Aug 12, 2020

All green from first run 🎉

The remaining issue is the ppx one (same as #1060 (comment) but @craigfe is working on a fix)

@samoht samoht merged commit a84f5f4 into mirage:master Aug 12, 2020
@samoht samoht deleted the flaky-tests branch August 12, 2020 12:18
@dinosaure dinosaure mentioned this pull request Aug 28, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed No changelog is needed here

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant