Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ def cook_and_activate
self.activate
self
end

# Increase number of download retries; otherwise it fails often in CI
alias download_file_count_3 download_file
def download_file(url, full_path, count = 60)
download_file_count_3(url, full_path, count)
end
end

openssl_platform = with_config("openssl-platform")
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ def set_etc_hosts(hostaddr, hostname)
config.filter_run_excluding( :scheduler ) if RUBY_VERSION < "3.0" || (RUBY_PLATFORM =~ /mingw|mswin/ && RUBY_VERSION < "3.1") || !Fiber.respond_to?(:scheduler)
config.filter_run_excluding( :scheduler_address_resolve ) if RUBY_VERSION < "3.1"
config.filter_run_excluding( :ipv6 ) if Addrinfo.getaddrinfo("localhost", nil, nil, :STREAM).size < 2
config.filter_run_excluding( :ractor ) unless defined?(Ractor)
config.filter_run_excluding( :ractor ) unless defined?(Ractor) && RUBY_VERSION >= "4"
begin
PG.require_bigdecimal_without_warning
rescue LoadError
Expand Down
6 changes: 5 additions & 1 deletion spec/pg/connection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3089,7 +3089,11 @@ def with_std_conf_strings(conn, onoff)
https://www.postgresql.org/docs/current/sql-syntax-lexical.html. Should you find any syntax changes in
string literals - please adjust PG::Connection::PLACEHOLDER_RE constant accordingly
TEXT
expect(latest_commit_info.dig(0, :sha)).to eq("45762084545ec14dbbe66ace1d69d7e89f8978ac"), error_message
expect(latest_commit_info).to be_kind_of(Array), latest_commit_info.to_s
expect(latest_commit_info[0]).to be_kind_of(Hash), latest_commit_info.to_s
expect(latest_commit_info[0][:sha]).to eq("45762084545ec14dbbe66ace1d69d7e89f8978ac"), error_message
rescue SocketError, JSON::ParserError => err
skip "cannot access PostgreSQL git repository: #{err}"
end

describe "default type map" do
Expand Down
Loading