From 3a2e4d854311b1f19b4ace21d9c66a8a2134c381 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Mon, 20 Jul 2026 16:53:30 +0100 Subject: [PATCH 1/2] Make testCreateDeploymentLarge compression-agnostic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test asserted buildSize > 10MB by copying an identical video (cp blue.mp4 copy.mp4). That holds for gzip-of-tar but not for squashfs, which deduplicates the two identical copies down to ~7MB. Generate a unique, incompressible 12MB file (head -c … /dev/urandom) instead, so the assertion holds under every build compression — gzip, zstd, and squashfs+lz4 — rather than relying on the packer keeping redundant bytes. Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/e2e/Services/Functions/FunctionsCustomServerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index c2dbe7c614..72b4284f38 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -1027,7 +1027,7 @@ final class FunctionsCustomServerTest extends Scope 'entrypoint' => 'index.js', 'code' => $curlFile, 'activate' => true, - 'commands' => 'cp blue.mp4 copy.mp4 && ls -al' // +7MB buildSize + 'commands' => 'head -c 12582912 /dev/urandom > random.bin && ls -al' // +12MB unique, incompressible: survives squashfs dedup and any compressor ]); $counter++; $id = $largeTag['body']['$id']; @@ -1050,7 +1050,7 @@ final class FunctionsCustomServerTest extends Scope $this->assertEquals(200, $deployment['headers']['status-code']); $this->assertEquals('ready', $deployment['body']['status']); $this->assertEquals($deploymentSize, $deployment['body']['sourceSize']); - $this->assertGreaterThan(1024 * 1024 * 10, $deployment['body']['buildSize']); // ~7MB video file + 10MB sample file + $this->assertGreaterThan(1024 * 1024 * 10, $deployment['body']['buildSize']); // ~7MB video + 12MB incompressible sample; compression/dedup-agnostic }, 120000, 500); } From 5e56337104900940c87a326ac8a0957933719de7 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Mon, 20 Jul 2026 17:05:16 +0100 Subject: [PATCH 2/2] Allow open-runtimes/sdk-for-php 0.7.x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 0.7.0 is purely additive over 0.6.0 — an `lz4` case on ArchiveCompression and a `blockSize` field on ArchiveArtifact, mirroring the orchestrator's squashfs archive options. Nothing was removed, so widening to `0.6.* || 0.7.*` is safe and lets consumers request the lz4 / 1 MiB-block squashfs artifact the jobs sidecar produces. Co-Authored-By: Claude Opus 4.8 (1M context) --- composer.json | 2 +- composer.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index f9770cc9d1..fe8a0a4eef 100644 --- a/composer.json +++ b/composer.json @@ -106,7 +106,7 @@ "league/csv": "9.14.*", "enshrined/svg-sanitize": "0.22.*", "utopia-php/client": "^0.2.2", - "open-runtimes/sdk-for-php": "0.6.*" + "open-runtimes/sdk-for-php": "0.6.* || 0.7.*" }, "require-dev": { "ext-fileinfo": "*", diff --git a/composer.lock b/composer.lock index 2144d45e02..7d4a801cc2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f007708a2c4301c72ae22feadcad6c8f", + "content-hash": "f1d913d8ccc683139c24d76d7d697e97", "packages": [ { "name": "adhocore/jwt", @@ -1147,16 +1147,16 @@ }, { "name": "open-runtimes/sdk-for-php", - "version": "0.6.0", + "version": "0.7.0", "source": { "type": "git", "url": "https://github.com/open-runtimes/sdk-for-php.git", - "reference": "17776aeee6321a05e83ab2704e410f8fd8ffd9cf" + "reference": "ad80f366bdb0ec79ff22a58efc657d8f1a4154a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/open-runtimes/sdk-for-php/zipball/17776aeee6321a05e83ab2704e410f8fd8ffd9cf", - "reference": "17776aeee6321a05e83ab2704e410f8fd8ffd9cf", + "url": "https://api.github.com/repos/open-runtimes/sdk-for-php/zipball/ad80f366bdb0ec79ff22a58efc657d8f1a4154a2", + "reference": "ad80f366bdb0ec79ff22a58efc657d8f1a4154a2", "shasum": "" }, "require": { @@ -1184,9 +1184,9 @@ "description": "PHP SDK for the Open Runtimes orchestrator Jobs API.", "support": { "issues": "https://github.com/open-runtimes/sdk-for-php/issues", - "source": "https://github.com/open-runtimes/sdk-for-php/tree/0.6.0" + "source": "https://github.com/open-runtimes/sdk-for-php/tree/0.7.0" }, - "time": "2026-07-17T09:11:17+00:00" + "time": "2026-07-20T14:46:08+00:00" }, { "name": "open-telemetry/api",