Skip to content

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

@etagwerker

Description

@etagwerker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions