From f3c2b66b0629c57e411f462fabe58d6a2de84636 Mon Sep 17 00:00:00 2001 From: Rahul Varghese Date: Thu, 15 Oct 2026 01:09:29 +0530 Subject: [PATCH] feat(install): one workspace install per lane (0.20.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every job of a lane runs the same `pnpm install --frozen-lockfile`, and a lane of twelve workers ran it twelve times on one runner, at once — the step the lane spec measured at ~40 s per job, and the CPU the deploys then waited on. cloudflare-worker-turbo and cloudflare-workers-assets-turbo mark it `scope: lane`: orun ≥ 2.78.2 runs it once in the shared source tree, after the setup actions and before each job's private tree is staged, and the other jobs reuse it. It runs at the monorepo root (`workspaceDir`) so every component's step is the same step; a workspace install from any directory installs the whole workspace anyway. An older orun ignores `scope` and runs it per job at the root. Co-Authored-By: Claude Fable 5.1 --- .../jobs/cloudflare-worker-turbo-verify-deploy.yaml | 12 ++++++++++++ ...loudflare-workers-assets-turbo-verify-deploy.yaml | 12 ++++++++++++ stack.yaml | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/compositions/cloudflare-worker-turbo/jobs/cloudflare-worker-turbo-verify-deploy.yaml b/compositions/cloudflare-worker-turbo/jobs/cloudflare-worker-turbo-verify-deploy.yaml index 08e7720..0d872d1 100644 --- a/compositions/cloudflare-worker-turbo/jobs/cloudflare-worker-turbo-verify-deploy.yaml +++ b/compositions/cloudflare-worker-turbo/jobs/cloudflare-worker-turbo-verify-deploy.yaml @@ -42,10 +42,22 @@ spec: with: version: "{{ .parameters.pnpmVersion }}" + # ONE INSTALL PER LANE (orun ≥ 2.78.2, runner-efficiency RE4). Every job + # of a lane runs the same workspace install, and a lane of twelve workers + # used to run it twelve times on one runner, at once. `scope: lane` runs + # it once in the shared source tree, after the setup actions and before + # each job's private tree is staged; the other jobs wait for that run and + # reuse it. A lane-scoped step is shared only when its command, shell, + # environment and working directory match across jobs, so it runs at the + # monorepo root (`workspaceDir`), the same directory for every component; + # a workspace install from any directory installs the whole workspace + # anyway. An older orun ignores `scope` and runs it per job at the root. - id: install-workspace-dependencies name: install-workspace-dependencies capability: cloudflare-worker-turbo.install + scope: lane shell: bash + working-directory: "{{ .parameters.workspaceDir }}" run: "{{ .parameters.installCommand }}" onFailure: stop diff --git a/compositions/cloudflare-workers-assets-turbo/jobs/cloudflare-workers-assets-turbo-verify-deploy.yaml b/compositions/cloudflare-workers-assets-turbo/jobs/cloudflare-workers-assets-turbo-verify-deploy.yaml index 5158722..c5bf772 100644 --- a/compositions/cloudflare-workers-assets-turbo/jobs/cloudflare-workers-assets-turbo-verify-deploy.yaml +++ b/compositions/cloudflare-workers-assets-turbo/jobs/cloudflare-workers-assets-turbo-verify-deploy.yaml @@ -37,10 +37,22 @@ spec: with: version: "{{ .parameters.pnpmVersion }}" + # ONE INSTALL PER LANE (orun ≥ 2.78.2, runner-efficiency RE4). Every job + # of a lane runs the same workspace install, and a lane of twelve workers + # used to run it twelve times on one runner, at once. `scope: lane` runs + # it once in the shared source tree, after the setup actions and before + # each job's private tree is staged; the other jobs wait for that run and + # reuse it. A lane-scoped step is shared only when its command, shell, + # environment and working directory match across jobs, so it runs at the + # monorepo root (`workspaceDir`), the same directory for every component; + # a workspace install from any directory installs the whole workspace + # anyway. An older orun ignores `scope` and runs it per job at the root. - id: install-workspace-dependencies name: install-workspace-dependencies capability: cloudflare-workers-assets-turbo.install + scope: lane shell: bash + working-directory: "{{ .parameters.workspaceDir }}" run: "{{ .parameters.installCommand }}" onFailure: stop diff --git a/stack.yaml b/stack.yaml index 1f204fc..8c61e5d 100644 --- a/stack.yaml +++ b/stack.yaml @@ -3,7 +3,7 @@ kind: Stack metadata: name: stack-tectonic title: Stack Tectonic - version: 0.19.0 + version: 0.20.0 description: Versioned OCI-hosted catalog of Cloudflare, Terraform and monorepo compositions for Sourceplane repositories. owner: sourceplane tags: