Skip to content

pkgxdev/dev@latest github action takes between 1 to 7 minutes to run #32

@iyefrat

Description

@iyefrat

Hey, recently pkgxdev/dev@latest has started taking 1-7 minutes to run, where it used to take about 20s. I'm not sure when exactly this started happening.

The following is the project pkgx.yaml:

dependencies:
  cli.github.com: 2.56.0
  cuelang.org: 0.11.1
  git-lfs.com: 3.5.1
  git-scm.org: 2.46.0
  nodejs.org: 22.12.0
  pnpm.io: 9.14.2
  moonrepo.dev/moon: 1.30.3
  google.com/gcloud: 504.0.1
  pulumi.io: 3.142.0

The part that seems to take a very long time is the initialization of installing pre-requisites, see the following snippet from a run, there is a 3 minute gap between timestamps:

2025-02-04T14:29:51.1546900Z ##[group]Run pkgxdev/dev@latest
2025-02-04T14:29:51.1547166Z with:
2025-02-04T14:29:51.1547336Z env:
2025-02-04T14:29:51.1547703Z   PULUMI_ACCESS_TOKEN: ***
2025-02-04T14:29:51.1547924Z   USE_MOON_CACHE: true
2025-02-04T14:29:51.1548332Z   USE_PNPM_CACHE: true
2025-02-04T14:29:51.1548528Z ##[endgroup]
2025-02-04T14:29:51.1627548Z ##[group]Run pkgxdev/setup@v3
2025-02-04T14:29:51.1627791Z with:
2025-02-04T14:29:51.1627973Z   version: ^2
2025-02-04T14:29:51.1628328Z env:
2025-02-04T14:29:51.1628707Z   PULUMI_ACCESS_TOKEN: ***
2025-02-04T14:29:51.1628931Z   USE_MOON_CACHE: true
2025-02-04T14:29:51.1629129Z   USE_PNPM_CACHE: true
2025-02-04T14:29:51.1629315Z ##[endgroup]
2025-02-04T14:29:51.2086856Z ##[group]installing /usr/local/bin/pkgx
2025-02-04T14:29:51.2090599Z fetching https://dist.pkgx.dev/pkgx.sh/linux/x86-64/versions.txt
2025-02-04T14:29:51.3727809Z selected pkgx v2.2.0
2025-02-04T14:29:51.3728540Z fetching https://dist.pkgx.dev/pkgx.sh/linux/x86-64/v2.2.0.tar.gz
2025-02-04T14:29:51.4739064Z extracting tarball…
2025-02-04T14:29:51.5969250Z ##[endgroup]
2025-02-04T14:29:51.5969660Z ##[group]installing pre-requisites
2025-02-04T14:32:59.3143452Z 
2025-02-04T14:32:59.3143991Z Running kernel seems to be up-to-date.
2025-02-04T14:32:59.3144297Z 
2025-02-04T14:32:59.3144405Z Restarting services...
2025-02-04T14:32:59.3145222Z  systemctl restart multipathd.service packagekit.service php8.3-fpm.service polkit.service rsyslog.service udisks2.service walinuxagent.service
2025-02-04T14:32:59.3146115Z 
2025-02-04T14:32:59.3146292Z Service restarts being deferred:
2025-02-04T14:32:59.3146756Z  systemctl restart ModemManager.service
2025-02-04T14:32:59.3147317Z  /etc/needrestart/restart.d/dbus.service
2025-02-04T14:32:59.3147847Z  systemctl restart docker.service
2025-02-04T14:32:59.3148452Z  systemctl restart networkd-dispatcher.service
2025-02-04T14:32:59.3148853Z  systemctl restart systemd-logind.service
2025-02-04T14:32:59.3149093Z 
2025-02-04T14:32:59.3149228Z No containers need to be restarted.
2025-02-04T14:32:59.3149445Z 
2025-02-04T14:32:59.3149573Z User sessions running outdated binaries:
2025-02-04T14:32:59.3149925Z  root @ user manager service: systemd[2021]
2025-02-04T14:32:59.3150291Z  runner @ user manager service: systemd[905]
2025-02-04T14:32:59.3150533Z 
2025-02-04T14:32:59.3150768Z No VM guests are running outdated hypervisor (qemu) binaries on this host.
2025-02-04T14:32:59.3151940Z ##[endgroup]
2025-02-04T14:32:59.3294577Z ##[group]Run TMP="$(mktemp)"
<<<truncated>>>

Although this is the main timesink, the timestamp of the log of the actual dependency installation from later on indicates that this takes 30s, while it used to take about 10:

<...>
2025-02-04T14:33:05.2566233Z �[0m�[32mDownload�[0m https://jsr.io/@std/assert/0.224.0/assertion_error.ts
2025-02-04T14:33:36.6448729Z +git-scm.org +pnpm.io +cli.github.com@2.56.0 +cuelang.org@0.11.1 +git-lfs.com@3.5.1 +git-scm.org@2.46.0 +nodejs.org@22.12.0 +pnpm.io@9.14.2 +moonrepo.dev/moon@1.30.3 +google.com/gcloud@504.0.1 +pulumi.io@3.142.0
<...>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions