Page MenuHomePhabricator

fagiani/apt buildpack very slow when processing a large collection of packages
Open, LowPublicBUG REPORT

Description

$ toolforge build start --image-name perl-bastion --ref work/bd808/hacks https://gitlab.wikimedia.org/toolforge-repos/bd808-buildpack-perl-bastion
Waiting for the logs... if the build just started this might take a minute
[place-tools] 2024-07-08T21:33:09.796059585Z 2024/07/08 21:33:09 Copied /ko-app/entrypoint to /tekton/bin/entrypoint

...

[step-build] 2024-07-08T21:54:03.624940744Z        Elapsed time: 1234530ms

...

[step-results] 2024-07-08T21:55:09.743193289Z Built image tools-harbor.wmcloud.org/tool-bd808-buildpack/perl-bastion:latest@sha256:1b9f8740c8f212b698bdca8bf1c9637158a160318747a796aa293d6b154257c8

22 minute build time for a container with 89 packages in its Aptfile.

I assume this is largely a function of the debs being fetched linearly followed by a similar linear fetch of the dependencies for each package.