Simplify task input handling and tighten runner coordination
Build custom container images / build (map[base_image:php:8-fpm-alpine build_args:PHP_VERSION=8 context:php8-pgsql fingerprint_command:{ apk info -v | LC_ALL=C sort; find /usr/local/lib/php/extensions /usr/local/etc/php/conf.d -type f -exec sha256sum {} + | LC_ALL=C sort; } name:ph… (push) Successful in 50s
Build custom container images / build (map[base_image:postgres:18 build_args:PG_VERSION=18 POSTGIS_VERSION=3 VCHORD_VERSION=0.5.3 context:postgres fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; find /usr/lib/postgresql -type f -exec sha256su… (push) Successful in 50s
Build custom container images / build (map[base_image:python:3 build_args:PYTHON_VERSION=3 context:python-tools fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:python-tools oci_labels:org.opencontainers.ima… (push) Successful in 1m37s
Build custom container images / build (map[base_image:python:3.12-slim build_args:PYTHON_VERSION=3.12-slim context:linkki-tiedotus fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:linkki-tiedotus oci_labels:… (push) Successful in 36s
Build custom container images / build (map[base_image:python:3.12-slim build_args:PYTHON_VERSION=3.12-slim context:timepoll fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:timepoll oci_labels:org.opencontai… (push) Successful in 42s

This commit is contained in:
ajp_anton committed 2026-11-01 16:44:11 +00:00
1 parent 3bfd199b9c
commit 1c713ff635
7 files changed
+130 -67

No files matched your search

+7 -4
View File
@@ -144,18 +144,21 @@ class Progress:
self.baseline: dict[str, int] = {}
def update(self, label: str, done: int, *, force: bool = False) -> None:
force = force or label not in self.started or done >= self.totals[label]
self.started.setdefault(label, time.monotonic())
self.baseline.setdefault(label, done)
self.done[label] = done
lines = []
for name, total in self.totals.items():
count = self.done[name]
percent = min(100, int(count * 100 / total)) if total else (100 if name in self.started else 0)
line = f"{name}: {percent}%"
if total:
line = f"{name}: {count}/{total} ({min(100, int(count * 100 / total))}%)"
else:
line = f"{name}: {'no items' if name in self.started else 'waiting'}"
processed = count - self.baseline.get(name, 0)
if processed > 0 and count < total and name in self.started:
seconds = max(0, round((time.monotonic() - self.started[name]) / processed * (total - count)))
estimate = f"{seconds} seconds" if seconds < 60 else f"{max(1, round(seconds / 60))} minutes"
line += f", ETA {estimate}"
value, unit = (seconds, "second") if seconds < 60 else (round(seconds / 60), "minute")
line += f", ETA {value} {unit}{'' if value == 1 else 's'}"
lines.append(line)
progress("\n".join(lines), force=force)