Giter VIP home page Giter VIP logo

Comments (3)

ArturT avatar ArturT commented on June 16, 2024 1

Ok. So no action for now.

By default config.example_status_persistence_file_path is not used by the majority of users so they have no memory consumption issue.

Some customers use config.example_status_persistence_file_path and they use RSpec in Queue Mode and this can cause increased memory consumption. This is the issue you discovered.

When we merge PR #226 then the issue won't exist anymore for the customers. So let's focus on the PR.

I'm closing this one for now.

from knapsack_pro-ruby.

ArturT avatar ArturT commented on June 16, 2024

What do you mean by disabling example_status_persistence_file_path? Is it about getting rid of some internal RSpec code that is responsible for handling that?

If a user does not set example_status_persistence_file_path in their spec_helper.rb, does it mean RSpec is still consuming a lot of memory?

We have some customers using --only-failures option to retry flaky tests. This is documented here.
This means they need to set example_status_persistence_file_path.

from knapsack_pro-ruby.

technicalpickles avatar technicalpickles commented on June 16, 2024

I mean not setting config.example_status_persistence_file_path, or setting it to falsey

If a user does not set example_status_persistence_file_path in their spec_helper.rb, does it mean RSpec is still consuming a lot of memory?

The code path that allocates a lot of memory doesn't get used. Specifically, it's the persister and loader in https://github.com/rspec/rspec-core/blob/1c662c35f91f33946fdfbed431878f4798f06f70/lib/rspec/core/example_status_persister.rb .

We have some customers using --only-failures option to retry flaky tests. This is documented here.
This means they need to set example_status_persistence_file_path.

Ah, in that case, this wouldn't work for them. Given that, I don't think it's worth adding complexity code-wise or documentation-wise to specify it. I think we can leave it as is then, and let users identify and disable themselves. Or #226 lands and it's mitigated because it's only persisted/loaded once

from knapsack_pro-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.