Skip to content

Fix warnings when running the tests locally#6727

Closed
stefannibrasil wants to merge 1 commit intorubyforgood:mainfrom
hexdevs:sb-bump-bundler-version
Closed

Fix warnings when running the tests locally#6727
stefannibrasil wants to merge 1 commit intorubyforgood:mainfrom
hexdevs:sb-bump-bundler-version

Conversation

@stefannibrasil
Copy link
Contributor

@stefannibrasil stefannibrasil commented Feb 18, 2026

What github issue is this PR for, if any?

Resolves #6726

What changed, and why?

There are a bunch of warnings being generated when running the tests locally:

casa % bundle exec rspec
Run options: exclude {:ci_only=>true}

Randomized with seed 6314
......................./opt/homebrew/lib/ruby/gems/3.3.0/gems/cssbundling-rails-1.4.3/lib/tasks/cssbundling/build.rake:24: warning: already initialized constant Cssbundling::Tasks::LOCK_FILES
/opt/homebrew/lib/ruby/gems/3.3.0/gems/cssbundling-rails-1.4.3/lib/tasks/cssbundling/build.rake:24: warning: previous definition of LOCK_FILES was here
./opt/homebrew/lib/ruby/gems/3.3.0/gems/cssbundling-rails-1.4.3/lib/tasks/cssbundling/build.rake:24: warning: already initialized constant Cssbundling::Tasks::LOCK_FILES
/opt/homebrew/lib/ruby/gems/3.3.0/gems/cssbundling-rails-1.4.3/lib/tasks/cssbundling/build.rake:24: warning: previous definition of LOCK_FILES was here
./opt/homebrew/lib/ruby/gems/3.3.0/gems/cssbundling-rails-1.4.3/lib/tasks/cssbundling/build.rake:24: warning: already initialized constant Cssbundling::Tasks::LOCK_FILES
/opt/homebrew/lib/ruby/gems/3.3.0/gems/cssbundling-rails-1.4.3/lib/tasks/cssbundling/build.rake:24: warning: previous definition of LOCK_FILES was here

After upgrading bundler to the latest version, the warnings get resolved locally. In CI, because they run in parallel it seems, these warnings still get printed out. But this changes keeps local env cleaner and the project up to date wit the latest Bundler version.

Running the tests locally after this update:

casa % bundle exec rspec
Run options: exclude {:ci_only=>true}

Randomized with seed 48450

.........................................................................................................................................................
......................................

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Feb 18, 2026
@stefannibrasil stefannibrasil marked this pull request as ready for review February 18, 2026 22:31
@stefannibrasil stefannibrasil marked this pull request as draft February 18, 2026 22:35
@stefannibrasil stefannibrasil force-pushed the sb-bump-bundler-version branch 3 times, most recently from 8c5e437 to 4825ee4 Compare February 18, 2026 23:53
@github-actions github-actions bot added the ruby Pull requests that update Ruby code label Feb 19, 2026
This also resolves some local tests warnings.
@stefannibrasil stefannibrasil force-pushed the sb-bump-bundler-version branch from 1d6865d to 2233bcc Compare February 19, 2026 00:10
@stefannibrasil stefannibrasil changed the title Fix warnings when running the tests Fix warnings when running the tests locally Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix warnings when running the tests locally

1 participant

Comments