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

Hangs forever with Event library on Github Actions #65

Open
PNixx opened this issue Sep 23, 2024 · 2 comments
Open

Hangs forever with Event library on Github Actions #65

PNixx opened this issue Sep 23, 2024 · 2 comments

Comments

@PNixx
Copy link

PNixx commented Sep 23, 2024

Example file .github/workflows/testing.yml never finish. If remove extension event will be work correctly.

name: Testing

on:
  push:
    branches: [ '**' ]
  pull_request:
    branches: [ 'main' ]

jobs:
  postgres:
    name: Testing
    runs-on: ubuntu-latest

    strategy:
      fail-fast: true
      max-parallel: 1
      matrix:
        php-version: [ '8.2' ]

    env:
      extensions: sockets,pcntl,event

    services:
      postgres:
        image: postgres
        env:
          POSTGRES_PASSWORD: postgres
        ports:
          - 15432:5432
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5

    steps:
      - name: Set up PHP ${{ matrix.php-version }}
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-version }}
          extensions: ${{ env.extensions }}
      - run: |
          echo '{"require": {"amphp/postgres": "^2.0"}}' > composer.json

      - name: Composer install
        run: composer install --no-progress --prefer-dist --optimize-autoloader

      - run: php -r 'require_once "vendor/autoload.php"; $pool = new \Amp\Postgres\PostgresConnectionPool(\Amp\Postgres\PostgresConfig::fromString("host=localhost user=postgres password=postgres port=15432")); print_r($pool->execute("SELECT 1")->fetchRow());'
@trowski
Copy link
Member

trowski commented Nov 17, 2024

There is an incompatibility with ext-ev and ext-pgsql which also causes hanging. I wonder if the same is true for ext-event? Were you using ext-pgsql or ext-pq? I'm assuming the former since I don't see anything about installing pq in the action config.

@PNixx
Copy link
Author

PNixx commented Nov 17, 2024

By default ext-pgsql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants