Page MenuHomePhabricator

[build-service] remove legacy fagiani/apt 0.2.5 builder from `--use-latest-versions` stack
Closed, DuplicatePublicBUG REPORT

Description

The fagiani/apt 0.2.5 builder fails the build when used with the --use-latest-versions stack. This failure prevents the newer heroku/deb-packages 0.1.3 from processing the project's Debian package configuration as long as an Aptfile is present in the repo.

tools.bd808-test@tools-bastion-12:~$ toolforge build start --use-latest-versions --image-name bnc https://gitlab.wikimedia.org/toolforge-repos/containers-bnc
Waiting for the logs... if the build just started this might take a minute
[prepare] 2025-05-13T00:19:45.157490308Z 2025/05/13 00:19:45 Entrypoint initialization
...
[step-detect] 2025-05-13T00:20:03.675228280Z target distro name/version labels not found, reading /etc/os-release file
[step-detect] 2025-05-13T00:20:03.846777101Z 4 of 5 buildpacks participating
[step-detect] 2025-05-13T00:20:03.846849355Z fagiani/apt         0.2.5
[step-detect] 2025-05-13T00:20:03.846961265Z heroku/deb-packages 0.1.3
[step-detect] 2025-05-13T00:20:03.847132129Z heroku/python       0.26.1
[step-detect] 2025-05-13T00:20:03.847155742Z heroku/procfile     4.2.1
...
[step-build] 2025-05-13T00:20:04.508189328Z -----> Detected Aptfile changes, flushing cache
[step-build] 2025-05-13T00:20:04.528869392Z -----> Updating apt caches
[step-build] 2025-05-13T00:20:04.568831321Z        Reading package lists...
[step-build] 2025-05-13T00:20:04.580120949Z -----> Fetching .debs for znc
[step-build] 2025-05-13T00:20:04.696581994Z ERROR: failed to build: exit status 1
[step-fix-nested-procfile-launcher] 2025-05-13T00:20:05.681342457Z 2025/05/13 00:20:05 Skipping step because a previous step failed
[step-fix-imagemagick-config] 2025-05-13T00:20:05.890304373Z 2025/05/13 00:20:05 Skipping step because a previous step failed
[step-fix-permissions] 2025-05-13T00:20:06.400446359Z 2025/05/13 00:20:06 Skipping step because a previous step failed
[step-export] 2025-05-13T00:19:51.479838567Z 2025/05/13 00:19:51 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/tekton/home": unable to open destination: open /tekton/home/.docker/config.json: permission denied
[step-export] 2025-05-13T00:20:06.524138441Z 2025/05/13 00:20:06 Skipping step because a previous step failed
[step-results] 2025-05-13T00:20:06.668298182Z 2025/05/13 00:20:06 Skipping step because a previous step failed

Tools will need to change their configuration by migrating from Aptfile to project.toml for configuring the builder, but according to the upstream documentation there will be instructions on doing that output by the builder when an Aptfile is found in the detection phase.

Discovered at T380108#10814575

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
dcaro subscribed.

Thanks @bd808, I've added a preliminar things to test in the parent task, if you find/notice any issues can you add them also?

I'll try to test as much as I can but there's quite a big matrix of things and the changelogs for the buildpacks+lifecycle are a bit all over the place.

Thanks @bd808, I've added a preliminar things to test in the parent task, if you find/notice any issues can you add them also?

For sure.

I'll try to test as much as I can but there's quite a big matrix of things and the changelogs for the buildpacks+lifecycle are a bit all over the place.

I actually don't think it is reasonable for us to expect or claim that we will track down all the changes. What we probably can do is work towards having a set of example projects that are sufficiently complex to represent things that tool maintainers are most likely to run into. We can then at least try building & running those projects under each successive "next" builder stack to surface the biggest changes that folks are likely to run into. It looks like you have a pretty good start on a list of things to be able to test in T380127. Maybe we can solicit help from the community to get "my first X" tools built using those language/feature combinations where we have gaps?

Yep :), my idea was to start by reusing the current "sample" apps we have, and extend/add more, so they can be used as tutorials too. Asking for help getting those gaps is a great idea 👍