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

Fix database connection using a socket on CI #15

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

Fryguy
Copy link
Member

@Fryguy Fryguy commented Jan 4, 2022

No description provided.

@Fryguy Fryguy force-pushed the github_actions branch 6 times, most recently from 85dd1df to 7a7f1bb Compare January 4, 2022 23:17
@jrafanie jrafanie self-assigned this Jan 19, 2022
@jrafanie jrafanie added the test label Jan 19, 2022
@jrafanie
Copy link
Member

bump, this is failing on multiple rubies with an invalid connection string... does this make sense?

  23) PG::LogicalReplication::Client with a subscription #alter_subscription_options changes the options provided by CREATE SUBSCRIPTION
      Failure/Error: result = connection.async_exec(sql, params, nil, self.class.type_map_for_queries(connection))

      PG::SyntaxError:
        ERROR:  invalid connection string syntax: invalid connection option "sslsni"
      # ./lib/pg/logical_replication/client.rb:356:in `exec'
      # ./lib/pg/logical_replication/client.rb:356:in `typed_exec'
      # ./lib/pg/logical_replication/client.rb:70:in `create_subscription'
      # ./spec/client_spec.rb:155:in `create_subscription'
      # ./spec/client_spec.rb:145:in `block (3 levels) in <top (required)>'
      # ./spec/client_spec.rb:14:in `block (3 levels) in <top (required)>'
      # ./spec/support/database_helper.rb:53:in `with_clean_environment'
      # ./spec/client_spec.rb:14:in `block (2 levels) in <top (required)>'

@Fryguy
Copy link
Member Author

Fryguy commented Jan 26, 2022

@jrafanie Yeah that's where I'm stuck...There's some other sort of setting I need

@miq-bot
Copy link
Member

miq-bot commented Jul 5, 2022

This pull request is not mergeable. Please rebase and repush.

@miq-bot
Copy link
Member

miq-bot commented Feb 27, 2023

This pull request has been automatically closed because it has not been updated for at least 3 months.

Feel free to reopen this pull request if these changes are still valid.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@Fryguy Fryguy reopened this Mar 2, 2023
@Fryguy Fryguy added help wanted Extra attention is needed pinned and removed stale labels Mar 2, 2023
@miq-bot
Copy link
Member

miq-bot commented Jul 27, 2023

This pull request is not mergeable. Please rebase and repush.

@Fryguy Fryguy closed this Jul 27, 2023
@Fryguy Fryguy reopened this Jul 27, 2023
@miq-bot
Copy link
Member

miq-bot commented Jul 27, 2023

Some comments on commits Fryguy/pg-logical_replication@b3d147c~...a3f93bd

lib/pg/logical_replication/client.rb

  • ⚠️ - 356 - Detected puts. Remove all debugging statements.
  • ⚠️ - 357 - Detected puts. Remove all debugging statements.
  • ⚠️ - 358 - Detected puts. Remove all debugging statements.

@miq-bot
Copy link
Member

miq-bot commented Jul 27, 2023

Checked commits Fryguy/pg-logical_replication@b3d147c~...a3f93bd with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
7 files checked, 13 offenses detected

Rakefile

**

  • 💣 💥 🔥 🚒 - Linter/Yaml - missing config files

lib/pg/logical_replication/client.rb

  • ❗ - Line 356, Col 9 - Rails/Output - Do not write to stdout. Use Rails's logger if you want to log.
  • ❗ - Line 357, Col 9 - Rails/Output - Do not write to stdout. Use Rails's logger if you want to log.
  • ❗ - Line 358, Col 9 - Rails/Output - Do not write to stdout. Use Rails's logger if you want to log.

spec/spec_helper.rb

spec/support/connection_helper.rb

  • ⚠️ - Line 12, Col 32 - Lint/UnusedBlockArgument - Unused block argument - r. You can omit the argument if you don't care about it.
  • ⚠️ - Line 18, Col 32 - Lint/UnusedBlockArgument - Unused block argument - r. You can omit the argument if you don't care about it.
  • ❗ - Line 23, Col 5 - Style/ExplicitBlockArgument - Consider using explicit block argument in the surrounding method's signature over yield.
  • ❗ - Line 4, Col 32 - Style/FetchEnvVar - Use ENV.fetch("POSTGRESQL_USER") or ENV.fetch("POSTGRESQL_USER", nil) instead of ENV["POSTGRESQL_USER"].
  • ❗ - Line 4, Col 58 - Style/FetchEnvVar - Use ENV.fetch("POSTGRESQL_PASSWORD") or ENV.fetch("POSTGRESQL_PASSWORD", nil) instead of ENV["POSTGRESQL_PASSWORD"].
  • ❗ - Line 4, Col 88 - Style/FetchEnvVar - Use ENV.fetch("POSTGRESQL_HOST") or ENV.fetch("POSTGRESQL_HOST", nil) instead of ENV["POSTGRESQL_HOST"].

spec/support/database_helper.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

3 participants