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

Caching of setup fixtures' results #215

Open
Midnighter opened this issue May 7, 2024 · 2 comments
Open

Caching of setup fixtures' results #215

Midnighter opened this issue May 7, 2024 · 2 comments

Comments

@Midnighter
Copy link

I recently worked on a test that involved using a setup step to untar a rather large database (~8 GB), see here. These tests were causing the GitHub runners to fail because they ran out of space. So that's when I discovered that files for an identical setup step are staged and results generated individually. Leading to more than 24 GB space being used.

In pytest, there is a concept of fixture scope, which can be per function, module, or the entire test session. Results of fixtures are cached and reused accordingly. I think, that'd be a fantastic feature for nf-test as well.

@lukfor
Copy link
Collaborator

lukfor commented May 9, 2024

Thanks, great idea! I will look into this in the next few weeks 👍

@jfy133
Copy link
Contributor

jfy133 commented Aug 29, 2024

This would be awesome, having the same issue as with @Midnighter !

I actually had assumed that the global setup meant that the output would be reused across each test, and only learnt today that that wasn't the case - so it would make more sense 'intuitively' to me too :)

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

3 participants