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

database_connectivity? should handle not-running database #21064

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

Fryguy
Copy link
Member

@Fryguy Fryguy commented Feb 18, 2021

To reproduce, disable your local postgres instance and run
bundle exec rake test:verify_no_db_access_loading_rails_environment

Follow up to 76731ae (#21038)

In the original pass, we didn't handle when the database just isn't running at all, which raises a different exception. As such, this is blocking builds, because they are blowing up trying to check if the database is connectable or not.

@NickLaMuro Please review.
cc @simaishi @agrare

Copy link
Member

@NickLaMuro NickLaMuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected. 👍

(I figured we would have another error class or two that would be required for this section)

lib/tasks/test.rake Outdated Show resolved Hide resolved
@chessbyte chessbyte assigned chessbyte and unassigned agrare Feb 18, 2021
To reproduce, disable your local postgres instance and run
`bundle exec rake test:verify_no_db_access_loading_rails_environment`

Follow up to 76731ae
@miq-bot
Copy link
Member

miq-bot commented Feb 18, 2021

Checked commit Fryguy@72f25df with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint
2 files checked, 0 offenses detected
Everything looks fine. 👍

@agrare agrare merged commit 3dd17ba into ManageIQ:master Feb 18, 2021
@agrare agrare added the core label Feb 18, 2021
@agrare agrare assigned agrare and unassigned chessbyte Feb 18, 2021
@Fryguy Fryguy deleted the fix_database_source2 branch February 18, 2021 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants