rubymem / bundler-leak

Known-leaky gems verification for bundler: `bundle leak` to check your app and find leaky gems in your Gemfile :gem::droplet:
https://www.rubymem.com
GNU General Public License v3.0
288 stars 11 forks source link

[BUG] Flaky spec (database_spec.rb won't pass on GitHub Actions environment) #47

Open etagwerker opened 2 years ago

etagwerker commented 2 years ago

Before we start...:

Branch/Commit:

main branch.

Expected behavior:

Test suite should pass in both CI and local env.

Actual behavior:

Test suite does not pass in CI, but it passes on local env.

Steps to reproduce:

Stop marking the scenarios in database_spec.rb as pending, watch the CI fail.

Resources:

Found on: https://github.com/rubymem/bundler-leak/pull/45

Logs

243
Failures:
[244](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:244)

[245](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:245)
  1) Bundler::Plumber::Database path should prefer the user repo, if it's as up to date, or more up to date than the vendored one
[246](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:246)
     Failure/Error: expect(Bundler::Plumber::Database.path).to eq Bundler::Plumber::Database::VENDORED_PATH
[247](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:247)

[248](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:248)
       expected: "/home/runner/work/bundler-leak/bundler-leak/data/ruby-mem-advisory-db"
[249](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:249)
            got: "/home/runner/work/bundler-leak/bundler-leak/tmp/ruby-mem-advisory-db"
[250](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:250)

[251](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:251)
       (compared using ==)
[252](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:252)
     # ./spec/database_spec.rb:29:in `block (3 levels) in <top (required)>'
[253](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:253)

[254](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:254)
Finished in 1.68 seconds (files took 0.33134 seconds to load)
[255](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:255)
46 examples, 1 failure, 1 pending
[256](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:256)

[257](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:257)
Failed examples:
[258](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:258)

[259](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:259)
rspec ./spec/database_spec.rb:17 # Bundler::Plumber::Database path should prefer the user repo, if it's as up to date, or more up to date than the vendored one
[260](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:260)

[261](https://github.com/rubymem/bundler-leak/runs/5687452238?check_suite_focus=true#step:4:261)
Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected

I will abide by the code of conduct