Skip to content
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

Refactor integration tests #4249

Merged
merged 15 commits into from
Feb 13, 2023
Merged

Refactor integration tests #4249

merged 15 commits into from
Feb 13, 2023

Conversation

neysofu
Copy link
Member

@neysofu neysofu commented Dec 16, 2022

This is a refactoring of our integration tests and "runner" tests.

  1. I'm moving the subgraphs designed for runner tests into a different directory named tests/runner-tests/, marking a clear separation between integration and runner tests. The new yarn.lock is a duplicate of the one we already had.
  2. runner_tests.rs is mostly untouched. There's a new helper called RunnerTestRecipe, but that's about it.
  3. I'm changing the way we generate Docker container names. Instead of global, atomic variables that provide numeric ids, I'm using v4 UUIDs prefixed with descriptive names.
  4. tokio::join! a lot of .await's, to run things as fast as possible. I also removed the code that waits 100ms after every output line, which I think was inserted out of an abundance of caution but doesn't seem to help with test flakiness.
  5. More code polishing in parallel_tests.rs (renamed to integration_tests.rs for consistency), which mostly doesn't impact the way tests are run.

@neysofu neysofu force-pushed the filippo/refactor-integration-tests branch from 3286c3f to b608b3c Compare January 3, 2023 10:42
@neysofu neysofu force-pushed the filippo/refactor-integration-tests branch 4 times, most recently from 02a02ee to f50e0b1 Compare January 18, 2023 13:22
@neysofu neysofu marked this pull request as ready for review January 18, 2023 14:05
@neysofu neysofu requested a review from mangas January 23, 2023 09:28
@neysofu neysofu self-assigned this Jan 24, 2023
Copy link
Collaborator

@leoyvens leoyvens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for showing the tests some love! Lgtm after a rebase

@neysofu neysofu force-pushed the filippo/refactor-integration-tests branch 2 times, most recently from dcc57ec to 2c448fb Compare February 8, 2023 14:51
@neysofu neysofu force-pushed the filippo/refactor-integration-tests branch from 2c448fb to c974657 Compare February 8, 2023 14:53
@neysofu neysofu merged commit e5dd53d into master Feb 13, 2023
@neysofu neysofu deleted the filippo/refactor-integration-tests branch February 13, 2023 11:04
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