Skip to content

Conversation

@Gerg
Copy link
Member

@Gerg Gerg commented Jan 27, 2026

  • So that the spring-ified rspec binary (and other spring binstubs) run
    by default
  • This makes tests run faster by default

Continuation of #4802


Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:

  • A short explanation of the proposed change:

  • An explanation of the use cases your change solves

  • Links to any other associated PRs

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

Gerg added 2 commits January 24, 2026 13:20
- Load the "init_block" of spec_helper pre-fork when using Spring
  - Previously the init_block was only used by Spork.
  - Spring would run it on every fork. This made tests load slower and
    reduced the benefit of using Spring, since less was being preloaded
    than could be.
- I blindly copied over the current init/run blocks, without
  investigating in any depth. It's possible that more can be moved into
  the "init" method, to further reduce test load times when using
  Spring. This could be a worthwhile follow-up, especially if/when Spork
  is removed.
- Extract out a SpecHelperHelper module so the "init_block" can be
  shared between spec_helper and Spring
- Enforce that SpecHelperHelper.init only runs once. That way it doesn't
  run post-fork, which is a minor performance improvement and means we
  don't need to worry about everything in there being idempotent.
- Add documentation to spec/README
- So that the spring-ified rspec binary (and other spring binstubs) run
  by default
- This makes tests run faster by default
@Gerg Gerg force-pushed the direnv_add_bin_to_path branch from d6c69db to b0da8bc Compare January 27, 2026 08:04
@Gerg Gerg changed the title Direnv add bin to path Direnv (.envrc) adds ./bin to path Jan 27, 2026
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.

1 participant