Steps to replicate the issue (include links if applicable):
What I did:
Become the bridgebot tool; try to kick off a build (toolforge build start https://gitlab.wikimedia.org/toolforge-repos/bridgebot); get a quota error (“DENIED: adding 199.7 MiB of storage resource, which when updated to current usage of 938.6 MiB will exceed the configured upper limit of 1.0 GiB.”). Inspect the builds:
tools.bridgebot@tools-bastion-13:~$ toolforge build list build_id status start_time end_time source_url ref envvars destination_image bridgebot-buildpacks-pipelinerun-ghk8n error 2024-06-24T19:03:25Z 2024-06-24T19:05:03Z https://gitlab.wikimedia.org/toolforge-repos/bridgebot N/A N/A tools-harbor.wmcloud.org/tool-bridgebot/tool-bridgebot:latest bridgebot-buildpacks-pipelinerun-z5npk ok 2024-06-19T08:11:53Z 2024-06-19T08:14:10Z https://gitlab.wikimedia.org/toolforge-repos/bridgebot N/A N/A tools-harbor.wmcloud.org/tool-bridgebot/tool-bridgebot:latest bridgebot-buildpacks-pipelinerun-mqkrz ok 2024-04-27T22:42:24Z 2024-04-27T22:43:46Z https://gitlab.wikimedia.org/toolforge-repos/wikibugs2-znc N/A N/A tools-harbor.wmcloud.org/tool-bridgebot/znc:latest bridgebot-buildpacks-pipelinerun-k4ddk ok 2024-04-27T22:29:48Z 2024-04-27T22:31:16Z https://gitlab.wikimedia.org/toolforge-repos/wikibugs2-znc N/A N/A tools-harbor.wmcloud.org/tool-bridgebot/znc:latest bridgebot-buildpacks-pipelinerun-lvm2d ok 2024-04-25T21:29:00Z 2024-04-25T21:30:54Z https://gitlab.wikimedia.org/toolforge-repos/bridgebot N/A N/A tools-harbor.wmcloud.org/tool-bridgebot/tool-bridgebot:latest bridgebot-buildpacks-pipelinerun-knkch error 2024-04-24T17:57:03Z 2024-04-24T17:57:28Z https://gitlab.wikimedia.org/toolforge-repos/bridgebot N/A N/A tools-harbor.wmcloud.org/tool-bridgebot/tool-bridgebot:latest bridgebot-buildpacks-pipelinerun-bxnml error 2024-04-16T03:40:59Z 2024-04-16T03:42:16Z https://gitlab.wikimedia.org/toolforge-repos/bridgebot-matterbridge work/bd808/try-some-hacks N/A tools-harbor.wmcloud.org/tool-bridgebot/tool-bridgebot:latest
Delete several builds, with several build attempts in between, until we’re down to just two builds:
tools.bridgebot@tools-bastion-13:~$ toolforge build list build_id status start_time end_time source_url ref envvars destination_image bridgebot-buildpacks-pipelinerun-z5npk ok 2024-06-19T08:11:53Z 2024-06-19T08:14:10Z https://gitlab.wikimedia.org/toolforge-repos/bridgebot N/A N/A tools-harbor.wmcloud.org/tool-bridgebot/tool-bridgebot:latest bridgebot-buildpacks-pipelinerun-mqkrz ok 2024-04-27T22:42:24Z 2024-04-27T22:43:46Z https://gitlab.wikimedia.org/toolforge-repos/wikibugs2-znc N/A N/A tools-harbor.wmcloud.org/tool-bridgebot/znc:latest
What happens?:
The quota is still reported as basically full:
tools.bridgebot@tools-bastion-13:~$ toolforge build quota Registry =================== Storage ----------- Available 85.17Mi Capacity 92% Limit 1.00Gi Used 938.83Mi
And new builds still fail to store the resulting image.
What should have happened instead?:
Given that I deleted most builds, I would expect the tool to have enough free space for at least one new build.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Toolforge Builds CLI, version 0.0.16
Other information (browser name/version, screenshots, etc.):
Unfortunately I didn’t check the quota before the first build, but I still have the terminal scrollback, and it seems notable that it doesn’t have a message about the quota being near the limit:
tools.bridgebot@tools-bastion-13:~$ toolforge build start https://gitlab.wikimedia.org/toolforge-repos/bridgebot Waiting for the logs... if the build just started this might take a minute [place-tools] 2024-06-24T19:03:28.582717254Z 2024/06/24 19:03:28 Copied /ko-app/entrypoint to /tekton/bin/entrypoint [step-init] 2024-06-24T19:03:29.428446916Z 2024/06/24 19:03:29 Setup /step directories
Whereas later builds, starting with the next one already (note that this was immediately after I deleted four builds), did have that message:
tools.bridgebot@tools-bastion-13:~$ toolforge build start https://gitlab.wikimedia.org/toolforge-repos/bridgebot Warning: Tool bridgebot has used up 92% of it's alloted quota.To avoid the possibility of your build failing, run "toolforge build clean" to free up quota. Waiting for the logs... if the build just started this might take a minute [place-tools] 2024-06-24T19:06:44.836099757Z 2024/06/24 19:06:44 Copied /ko-app/entrypoint to /tekton/bin/entrypoint [step-init] 2024-06-24T19:06:45.694553003Z 2024/06/24 19:06:45 Setup /step directories