Commit Graph

27 Commits

Author SHA1 Message Date
Lars Kanis 5736fdc762 CI: Print spec names while running binary gem tests 2022-10-05 17:46:11 +02:00
Lars Kanis d0ce908d45 CI: Use PostgreSQL-15.0-rc1 on Windows
It should fix wrong error transmission due to aborted client<->server connection.
But it doesn't.
2022-10-05 17:43:58 +02:00
Lars Kanis df27ef05e0 CI: Install PostgreSQL in /LibraryPostgreSQL on MacOS
Because this is the default install location and pg/libpq prints an error message when not there:

<internal:/Users/runner/.rubies/ruby-head/lib/ruby/3.2.0+2/rubygems/core_ext/kernel_require.rb>:85:in `require': dlopen(/Users/runner/.rubies/ruby-head/lib/ruby/gems/3.2.0+2/gems/pg-1.4.4/lib/pg_ext.bundle, 9): Library not loaded: /Library/PostgreSQL/14/lib/libpq.5.dylib (LoadError)
  Referenced from: /Users/runner/.rubies/ruby-head/lib/ruby/gems/3.2.0+2/gems/pg-1.4.4/lib/pg_ext.bundle
  Reason: image not found - /Users/runner/.rubies/ruby-head/lib/ruby/gems/3.2.0+2/gems/pg-1.4.4/lib/pg_ext.bundle
	from <internal:/Users/runner/.rubies/ruby-head/lib/ruby/3.2.0+2/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /Users/runner/.rubies/ruby-head/lib/ruby/gems/3.2.0+2/gems/pg-1.4.4/lib/pg.rb:49:in `block in <module:PG>'
	from /Users/runner/.rubies/ruby-head/lib/ruby/gems/3.2.0+2/gems/pg-1.4.4/lib/pg.rb:37:in `block in <module:PG>'
	from /Users/runner/.rubies/ruby-head/lib/ruby/gems/3.2.0+2/gems/pg-1.4.4/lib/pg.rb:42:in `<module:PG>'
	from /Users/runner/.rubies/ruby-head/lib/ruby/gems/3.2.0+2/gems/pg-1.4.4/lib/pg.rb:6:in `<top (required)>'
	from <internal:/Users/runner/.rubies/ruby-head/lib/ruby/3.2.0+2/rubygems/core_ext/kernel_require.rb>:160:in `require'
	from <internal:/Users/runner/.rubies/ruby-head/lib/ruby/3.2.0+2/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
	from <internal:/Users/runner/.rubies/ruby-head/lib/ruby/3.2.0+2/rubygems/core_ext/kernel_require.rb>:149:in `require'
<internal:/Users/runner/.rubies/ruby-head/lib/ruby/3.2.0+2/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- pg (LoadError)
	from <internal:/Users/runner/.rubies/ruby-head/lib/ruby/3.2.0+2/rubygems/core_ext/kernel_require.rb>:85:in `require'
Error: Process completed with exit code 1.
2022-09-30 14:36:17 +02:00
Lars Kanis c90a10ce74 CI: Print compiler flags while build 2022-09-30 14:35:28 +02:00
Lars Kanis 87aa151bef CI: Update PostgreSQL versions 2022-09-30 14:35:18 +02:00
Lars Kanis 940fd90382 Avoid scheduler tests on Truffleruby
Truffleruby-22.0 claims to support ruby-3.0 features, but doesn't implement Fiber.scheduler .
2022-02-18 16:32:54 +01:00
MSP-Greg 8402da9009
CI: use ruby/setup-ruby
Change MSP-Greg/ruby-setup-ruby@win-ucrt-1 to ruby/setup-ruby@v1
2022-02-16 10:12:47 -06:00
Lars Kanis a2a2055599 CI: Fix build on Windows-2022 on Github Actions
PostgreSQL-9.3's pg_config.exe segfaults for some reason on Windows-2022.
Update to 9.4 helps.
2022-02-15 11:32:55 +01:00
Lars Kanis 6b534a3bea Update to PostgreSQL-14.2 2022-02-11 07:02:04 +01:00
Lars Kanis c4632676c9 CI: Fix ruby-2.5 on github actions
Error was:

  ERROR:  While executing gem ... (ArgumentError)
    wrong number of arguments (given 4, expected 1)
  Error: Process completed with exit code 1.

Upstream issue is:
  https://github.com/rubygems/rubygems/issues/4976
2022-01-14 20:58:58 +01:00
Lars Kanis ec09240988 Use our own function and constants names, to avoid conflicts with truffleruby-head on its road to ruby-3.0 compatibility
This rename was suggested here: https://github.com/oracle/truffleruby/issues/2564#issuecomment-1008830567

It still fails in the specs, since truffleruby-head claims to be ruby-3.0 but doesn't implement Fiber.scheduler so far.
2022-01-10 14:00:53 +01:00
Lars Kanis 3519d2ab0f CI: Ignore errors on truffleruby-head 2022-01-08 18:33:18 +01:00
Lars Kanis 7757e485bb CI: Add windows fat binary support for ruby-3.1 2022-01-05 21:35:58 +01:00
Lars Kanis be9ee534d7 CI: Update PostgreSQL-Servers to 14.1 2021-12-27 22:53:44 +01:00
Lars Kanis ea66c277d0 Revert "CI: Lower the PostgreSQL version on Macos to 13.2"
The system installed libpq on Github Actions seems to be from PostgreSQL-14, so that the pipeline tests can run.

This reverts commit 39b9a3ba8f4394f7188dfe6470f0aed330b11708.
2021-12-27 15:01:31 +01:00
Lars Kanis ead21199ed CI: Lower the PostgreSQL version on Macos to 13.2
Although our custom libpq of PostgreSQL-14 is regisered per rpath, the system library is loaded instead.
The error looks like so:

dyld: lazy symbol binding failed: Symbol not found: _PQpipelineStatus
  Referenced from: /Users/runner/.rubies/ruby-head/lib/ruby/gems/3.1.0/gems/pg-1.2.3/lib/pg_ext.bundle
  Expected in: /usr/local/lib/libpq.5.dylib
2021-10-04 17:58:41 +02:00
Lars Kanis 33d2910bb6 Update CI to PostgreSQL-14.0
... and disable PG_DEBUG, since the TcpGateScheduler seems to run well now.
2021-10-01 23:20:05 +02:00
Lars Kanis 1b155a9a06 Allow truffleruby to fail on github actions and add it to travis-ci
Truffleruby-21.1.0 currently fails on Github Actions like here: https://github.com/larskanis/ruby-pg/runs/3766520041?check_suite_focus=true
However it works with the same version on my local laptop, on travis-ci and with the current truffleruby-head version on Github.
Since it looks like some issue that's already fixed, this commit allows truffleruby to fail on github for now.
2021-10-01 20:27:25 +02:00
Lars Kanis cacf429fa9 Bump required ruby version to 2.5
since we broke 2.4 again (by Hash#transform_keys)
2021-09-20 21:56:49 +02:00
Lars Kanis 99664bf80d Add ruby-3.0 to verify scheduler on it's first ruby release. 2021-09-20 21:56:48 +02:00
Lars Kanis f4b7d12cd5 More verbose CI output 2021-09-20 21:56:48 +02:00
Lars Kanis 683c54822e Bump required ruby version to 2.4
Since ruby-2.3 fails with:
     TypeError:
       can't dup NilClass
2021-08-17 11:27:50 +02:00
Lars Kanis f04d4f2a9b Bump required Ruby to 2.3 and PostgreSQL to 9.3 2021-08-17 10:14:43 +02:00
Lars Kanis d65fbdbe92 CI: Do not update pacman databases on Windows
This is not necessary, can lead to inconsistent MSYS2 state and slows the test run down.
2021-06-29 09:34:31 +02:00
Lars Kanis 89f513e7a3 CI: Better step description 2021-06-28 17:15:08 +02:00
Lars Kanis c331f85242 CI: Use MSYS2's ucrt packages for ruby-head build on Windows
RubyInstaller-head is now UCRT-based, so that the correct gcc should be used to build the C extension.
The MSVCRT based gcc indeed worked for pg's specs, but it could fails due to memory issues when using the wrong CRT.
2021-06-28 17:14:23 +02:00
Lars Kanis 754eeaefaf Add github actions for tests of source gem and binary gems
That way we can finally test if our binary windows gems run properly and if gem packaging works.
And this adds a run on Macos.

Also remove no longer necessary jobs from Appveyor and Travis-CI.

Fixes #362
2021-03-21 20:16:14 +01:00