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

Fanning out a large spec file to multiple workers #88

Open
louim opened this issue Apr 24, 2024 · 1 comment
Open

Fanning out a large spec file to multiple workers #88

louim opened this issue Apr 24, 2024 · 1 comment

Comments

@louim
Copy link

louim commented Apr 24, 2024

Hey! I see that flatware logs each individual specs timing. Would it be possible to fan out a large file based on individual timings? So if I do bin/flatware rspec -r ./spec/flatware_helper.rb spec/myspec.rb it run chunk of that file in multiple workers efficiently?

@louim louim changed the title Fanning out a large spec file to multiple Fanning out a large spec file to multiple workers Apr 24, 2024
@briandunn
Copy link
Owner

briandunn commented May 13, 2024

Hello! The main blocker on spec level granularity, as apposed to file level, is that all tests must be loaded and parsed before they can be distributed. RSpec does not like to load a spec file and then not run it. Last I was working on this, that couldn't be achieved without significant private API hacks.

If you can check it out and see if that can be achieved cleanly I'm very open to the feature.

Oh and the individual logging is just because we are using the features already in RSpec. There is also interest in reducing the granularity in order to save on time tracking performance.

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

No branches or pull requests

2 participants