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

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

Open
3 tasks done
etagwerker opened this issue Mar 25, 2022 · 0 comments
Open
3 tasks done

Comments

@etagwerker
Copy link
Collaborator

etagwerker commented Mar 25, 2022

Before we start...:

  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

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: #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

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

1 participant