setup-php icon indicating copy to clipboard operation
setup-php copied to clipboard

ssh2 failing to install with php 8.2

Open jaysen-fullbay opened this issue 2 years ago • 10 comments

Describe the bug Approximately 2 hours ago (9:30am mountain time, 3/20/2024) all of my builds that were previously working started to fail saying ssh2: Could not install ssh2 on PHP 8.2.15.

Version

  • [ ] I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • [ x ] v2
  • [ ] v1

Runners

  • [ x ] GitHub Hosted
  • [ ] Self Hosted

Operating systems ubuntu-latest

PHP versions 8.2.4 (but setup-php installs 8.2.15)

To Reproduce env: php-version: '8.2.4' php-extensions: curl, json, simplexml, soap, ssh2, zip php-extension-cache-key: cache-v1 steps: - name: Setup PHP environment uses: shivammathur/setup-php@v2 with: php-version: ${{ env.php-version }} extensions: ${{ env.php-extensions }} tools: none

Expected behavior I expect php to be installed with the ssh2 extension

Screenshots/Logs image

jaysen-fullbay avatar Mar 20 '24 16:03 jaysen-fullbay

Encountered something similar in our own flows installing gnupg over 8.1.25 using the configuration

    - uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0
      with:
        tools: phpunit, composer:v2.7.1
        php-version: 8.1.27
        coverage: none
        extensions: gnupg, ast-1.0.16
image

Can we have the entire action fail in this case? I don't think it helps to have a broken extension and then attempt to move forward in the rest of the action. Thanks!

johnmlee101 avatar Mar 20 '24 16:03 johnmlee101

All my jobs started failing about this time too, although my error is different image

rettigd avatar Mar 20 '24 16:03 rettigd

Getting this error for rdkafka install..started a couple of hours ago github hosted runner image

richardkielyags avatar Mar 20 '24 16:03 richardkielyags

Encountered something similar in our own flows installing gnupg over 8.1.25 using the configuration

    - uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0
      with:
        tools: phpunit, composer:v2.7.1
        php-version: 8.1.27
        coverage: none
        extensions: gnupg, ast-1.0.16
image Can we have the entire action fail in this case? I don't think it helps to have a broken extension and then attempt to move forward in the rest of the action. Thanks!

johnmlee101 FYI, there is already a "fail-fast" option that will kill the entire action if an extension fails. image

jaysen-fullbay avatar Mar 20 '24 16:03 jaysen-fullbay

Same but for mailparse extension and PHP 8.2.15. Tried both on 2.29.0 and 2.30.0 versions of setup-php.

Run shivammathur/[email protected]
  with:
    coverage: none
    php-version: 8.2.14
    tools: composer:v2, pecl
    extensions: mbstring, amqp, ctype, iconv, mailparse, pdo
    ini-file: production
  env:
    MESSENGER_TRANSPORT_DSN_ENTITY_CACHE_UPDATE: in-memory://
/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/2.30.0/src/scripts/run.sh

==> Setup PHP
✓ PHP Installed PHP 8.2.15

==> Setup Extensions
✓ mbstring Enabled
✓ amqp Enabled
✓ ctype Enabled
✓ iconv Enabled
✗ mailparse Could not install mailparse on PHP 8.2.15
✓ pdo Enabled

==> Setup Tools
✓ composer Added composer 2.7.2
✓ PECL Added PECL 1.[10](https://github.com/celebrityagent/celebrityagent/actions/runs/8362309078/job/22894602343#step:4:10).[12](https://github.com/celebrityagent/celebrityagent/actions/runs/8362309078/job/22894602343#step:4:12)

==> Setup Coverage
✓ none Disabled Xdebug and PCOV

pluseg avatar Mar 20 '24 17:03 pluseg

Launchpad PPA hosting is down for maintenance. This affects downloading the extension packages. https://twitter.com/launchpadstatus/status/1770482383453577682

shivammathur avatar Mar 20 '24 17:03 shivammathur

This has been resolved. Please restart your workflows. https://twitter.com/launchpadstatus/status/1770532196257849798

shivammathur avatar Mar 20 '24 19:03 shivammathur

Thanks shivammathur. Really appreciate your work on these GH actions!

jaysen-fullbay avatar Mar 20 '24 19:03 jaysen-fullbay

Any updates on this? I'm getting it today:

Run shivammathur/[email protected]
/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/2.30.2/src/scripts/run.sh

==> Setup PHP
✓ PHP Installed PHP 8.1.31

==> Setup Extensions
✓ pdo_sqlite Enabled
✗ rdkafka Could not install rdkafka on PHP 8.1.31

==> Setup Tools
✓ composer Added composer 2.8.5

==> Setup Coverage
✓ pcov.enabled=1 Added to php.ini
✓ pcov PCOV 1.0.11 enabled as coverage driver

==> Sponsor setup-php
✓ setup-php https://setup-php.com/sponsor

aykonsvk avatar Feb 07 '25 13:02 aykonsvk

@aykonsvk Please create a new issue along with the details of your workflow

shivammathur avatar Feb 07 '25 15:02 shivammathur