From f2911600fa1878e661ec04e418e70e6c5a1bdf5a Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Wed, 8 Jul 2026 19:04:41 +0100 Subject: [PATCH] Close the template sourceSize gap on orchestrator 0.4.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 0.4.3 emits artifact callbacks for pre-job (input-phase) artifacts, not just post-job ones. Revert the source stat to depends:'source' so it fires right after the download — its size callback now lands well before the exit callback that marks the deployment ready, eliminating the race where a reader at 'ready' saw sourceSize=0. Bump the jobs-service + sidecar images to 0.4.3. Verified locally against 0.4.3: testCreateFunctionAndDeploymentFromTemplateBranch and …Commit both pass (sourceSize/totalSize populated). The remaining template failure (…FromTemplate, a "0.3.*" tag range) is the separate vcs listTags unauthenticated fix, still pending. Co-Authored-By: Claude Opus 4.8 (1M context) --- docker-compose.yml | 4 ++-- src/Appwrite/Compute/Job.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 79254258cc..416f9e21d7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1243,7 +1243,7 @@ services: options: max-file: "5" max-size: 10m - image: ghcr.io/open-runtimes/orchestrator/jobs-service:0.4.2 + image: ghcr.io/open-runtimes/orchestrator/jobs-service:0.4.3 restart: unless-stopped user: root networks: @@ -1254,7 +1254,7 @@ services: - ORCHESTRATOR_BACKEND=docker - ORCHESTRATOR_NETWORK=appwrite - ARTIFACT_ENDPOINT=http://orchestrator-jobs:8080 - - JOB_SIDECAR_IMAGE=ghcr.io/open-runtimes/orchestrator/job-sidecar:0.4.2 + - JOB_SIDECAR_IMAGE=ghcr.io/open-runtimes/orchestrator/job-sidecar:0.4.3 mariadb: image: mariadb:10.11 diff --git a/src/Appwrite/Compute/Job.php b/src/Appwrite/Compute/Job.php index 0dcd4e3a93..ac8d2ce84e 100644 --- a/src/Appwrite/Compute/Job.php +++ b/src/Appwrite/Compute/Job.php @@ -78,7 +78,7 @@ final class Job // so unlike the uploaded-tarball path it can't size it. Stat the // downloaded archive so the orchestrator reports its byte size in // an artifact callback, which the worker records as sourceSize. - new StatArtifact(id: 'sourceSize', in: 'source.tar.gz', depends: 'job'), + new StatArtifact(id: 'sourceSize', in: 'source.tar.gz', depends: 'source'), ]; } else { // Presigned source-download URL (GET, no request-body cap), fetched by