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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky test in railties/test/applications/rake/dbs_test.rb #46965

Merged
merged 1 commit into from Jan 11, 2023

Conversation

fatkodima
Copy link
Member

A few recent CI failure examples:
https://buildkite.com/rails/rails/builds/92430#0185a069-e978-438d-b5d7-368e93a838cf
https://buildkite.com/rails/rails/builds/92444#0185a1ab-be07-4b8b-8709-1d0a822eba06
https://buildkite.com/rails/rails/builds/92401#01859d70-4586-4c31-b0bf-8792fbc0196b

To reproduce:

$ cd railties
$ SEED=59934 ruby -w -Itest -Ilib -I../activesupport/lib -I../actionpack/lib -I../actionview/lib -I../activemodel/lib test/application/rake/dbs_test.rb

The problem with use_postgresql is goodly described in the PR description - #45178.

I apologize, I am the one who introduced this flaky test in #46939 馃槃
So I updated use_postgresql signature to not allow custom db names to avoid such mistake in the future.

cc @eileencodes

@rails-bot rails-bot bot added the railties label Jan 11, 2023
@fatkodima fatkodima changed the title Fix flaky railties/test/applications/rake/dbs_test.rb Fix flaky test in railties/test/applications/rake/dbs_test.rb Jan 11, 2023
@rafaelfranca rafaelfranca merged commit 6ad6295 into rails:main Jan 11, 2023
@fatkodima fatkodima deleted the flaky-use_postgresql-test branch January 11, 2023 21:00
zzak pushed a commit to zzak/rails that referenced this pull request Jul 3, 2023
Fix flaky test in `railties/test/applications/rake/dbs_test.rb`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants