Skip to content

Setup-PHP slow since moving to ARC #922

Closed
@mason-rogers

Description

Describe the bug
Setup-php takes over 2 minutes to setup every time, since moving to ARC.

I previously had a single runner running directly on a Ubuntu 22.04 VPS, but outgrew this and needed automatically scaling runners (alongside the issue of running directly on the node means runs are not ephemeral), but since doing this i've noticed a dramatic decrease in speed.

Supposedly because the apt files are now being destroyed with the runners container. Is there any recommended way to cache this or should I just be mounting the apt cache to the runners so that it persists between runs?

To put it into context, the setup-php runs have gone from 1-5 seconds, to 1:30-3:00 minutes. It feels un-usable and I feel like there is a thing i'm missing for self hosted users

Version
v2

Environment
Self Hosted - Github Actions ARC running in k3s

PHP versions
8.3

To Reproduce

      - name: Setup PHP
        uses: shivammathur/setup-php@more-verbose
        with:
          php-version: '8.3'
          extensions: soap
        env:
          runner: self-hosted

Expected behavior
Installation to be cached/quicker in subsequent runs

Screenshots/Logs

Image
setup-php.log

Before ARC:

Image

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions