Skip to content

Bug: brew retry logic appears to be broken #1120

Closed

Description

@TimWolla

Describe the bug

While using setup-php on an Intel-based macOS runner, the download apparently took more than 3 minutes, which lead to setup-php terminating and retrying the brew command:


Tue, 08 Sep 2026 10:04:52 GMT setup-php: brew produced no output for 180s; terminating and retrying...
[…]
Tue, 08 Sep 2026 10:04:52 GMT setup-php: retrying brew command (attempt 2/3, exit 124)

The third attempt was made on:

Tue, 08 Sep 2026 10:08:02 GMT setup-php: retrying brew command (attempt 3/3, exit 124)

and then aborted in:


Tue, 08 Sep 2026 10:11:17 GMT setup-php: brew produced no output for 180s; terminating and retrying...
Tue, 08 Sep 2026 10:11:17 GMT Error: SIGTERM

however immediately after another execution begun despite this being the 4th of three attempts:

Tue, 08 Sep 2026 10:15:48 GMT ==> Installing dependencies for shivammathur/php/php@8.4: openssl@3, pcre2, httpd, pkgconf, capstone, curl, cmake, nasm, aom, make and gcc
Tue, 08 Sep 2026 10:15:52 GMT ==> Upgrading shivammathur/php/php@8.4 dependency: openssl@3
Tue, 08 Sep 2026 10:15:58 GMT ==> perl ./Configure --prefix=/usr/local/Cellar/openssl@3/3.6.4 --openssldir=/us
Tue, 08 Sep 2026 10:16:22 GMT ==> make
Tue, 08 Sep 2026 10:18:53 GMT Error: The operation was canceled.

This one was terminated by the global job timeout configured in my repository.

Version

  • v2
  • v1

Runners

GitHub Hosted

Operating systems

macos-15-intel, but probably independent.

PHP versions

PHP 8.4, but probably independent.

To Reproduce

Unsure. Probably only reliably reproducible by making test changes (e.g. decreasing the timeout to 1 second or so).

Expected behavior

I did not expect a 4th attempt to be made based on the messages emitted.

Screenshots/Logs

No response

Additional context

No response

Are you willing to submit a PR?

No

Activity

  1. shivammathur commented on Sep 29, 2026

    @shivammathur
    Owner

    Fixed in the 2.40.0-beta and the upcoming 2.40.0 release.

  2. shivammathur commented on Oct 8, 2026

    @shivammathur
    Owner

    Released 2.40.0 with the fix.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions