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

20+ mins is kind of a crazy amount of time for unit tests to run #32

Open
richardpringle opened this issue Sep 6, 2023 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@richardpringle
Copy link
Collaborator

We should look into what's causing the tests to take so long, see if there's any way to speed them up or split them up.

We should only be running tests on a sub-crate that actually had changes applied, that would probably get us a nice speed up right off the bat.

Expected outcomes to close this issue:

  • Identify slow tests and create individual issues specifying that they need to be sped up (probably one issue per slow test)
  • Split up sub-crate tests based on diff.
@exdx exdx added the bug Something isn't working label Sep 8, 2023
@Angel-Petrov
Copy link
Contributor

Is this primarily a issue with the tests for CI or the local crate tests? Running cargo test on my machine yields satisfactory speeds.

@richardpringle
Copy link
Collaborator Author

@Angel-Petrov, cargo test doesn't actually run all of the tests. CI is a bit of a mess right now, it wasn't properly setup. It looks like the e2e tests can take a while as well as the unit tests (with all features).

This could also be a caching issue where a lot of the time is spent compiling the code.

I think someone internal has to work on this though as it'll be difficult without perms to make CI adjustments.

@richardpringle richardpringle self-assigned this Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants