Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c55480c
fix(ci): isolate platform compatibility tests
rsliter Sep 8, 2026
17f4d04
merge: refresh platform CI fix from main
rsliter Sep 8, 2026
e8cc4d9
fix(ci): scope platform package credentials
rsliter Sep 8, 2026
8682e61
fix(ci): declare platform test prerequisites
rsliter Sep 8, 2026
b408fb8
fix(ci): align gateway TLS runtime fixture
rsliter Sep 8, 2026
d85798f
Merge branch 'main' into codex/fix-11208-platform-ci
rsliter Sep 8, 2026
191a5bb
fix(ci): address platform review findings
rsliter Sep 8, 2026
b45a32d
fix(ci): preserve trusted gateway runtime template
rsliter Sep 8, 2026
d1ed448
fix(ci): verify runner GNU tar before Homebrew
rsliter Sep 8, 2026
169fc3c
fix(onboard): defer prepared runtime lookup
rsliter Sep 8, 2026
281705d
fix(ci): isolate WSL platform fixtures
rsliter Sep 8, 2026
acc7f1e
test(ci): require WSL suite ordering target
rsliter Sep 8, 2026
a8ced84
test(ci): harden platform compatibility fixtures
rsliter Sep 9, 2026
4b60472
Merge remote-tracking branch 'origin/main' into codex/fix-11208-platf…
rsliter Sep 9, 2026
08dfe7e
fix(ci): restrict package token to main
rsliter Sep 9, 2026
cd0c40b
fix(ci): stabilize platform compatibility suites
rsliter Sep 9, 2026
be0dc84
test(ci): isolate Station Docker inventory fixtures
rsliter Sep 9, 2026
585a61b
ci: decouple macOS live compatibility evidence
rsliter Sep 9, 2026
5dc2314
docs(ci): align platform E2E ownership
rsliter Sep 9, 2026
5ec51d7
test(ci): prove platform runtime handoffs
rsliter Sep 9, 2026
ff3b2a2
fix(ci): make runtime handoffs explicit
rsliter Sep 9, 2026
d84c45a
test(ci): update gateway preparation fixture
rsliter Sep 9, 2026
9a09765
merge: refresh platform compatibility fixes from main
rsliter Sep 9, 2026
4f67bfe
fix(ci): integrate trusted runtime and isolate platform fixtures
rsliter Sep 10, 2026
c65fc2d
fix(ci): repair platform fixtures and stage reviewed SDK
rsliter Sep 10, 2026
9c0930a
test(platform): isolate health fixture hostname lookup
rsliter Sep 10, 2026
39a49c7
merge: resolve gateway preparation conflict with main
rsliter Sep 10, 2026
032e3cc
test(platform): use writable home for component fixtures
rsliter Sep 10, 2026
c26f11b
merge: consume canonical validation dependencies
rsliter Sep 10, 2026
aea0cfe
test(platform): isolate preflight and model host observations
rsliter Sep 10, 2026
27eaf05
test(platform): await backend process reaping
rsliter Sep 10, 2026
bde214a
merge: consume canonical workflow validation dependency
rsliter Sep 10, 2026
f5e7133
test(platform): wait for descendant readiness before deadline
rsliter Sep 11, 2026
c9f6bd0
merge: consume canonical publication validation dependency
rsliter Sep 11, 2026
d24182d
merge: consume current semantic validator dependency
rsliter Sep 11, 2026
d65aa11
test(platform): isolate inherited fixture host assumptions
rsliter Sep 11, 2026
5e9e8cc
merge: consume provider fence fixes and resolve main conflict
rsliter Sep 11, 2026
58eaf7f
merge: resolve installer fixture conflicts with main
rsliter Sep 11, 2026
b98aece
test(platform): keep component fixtures in the protected user home
rsliter Sep 11, 2026
869f35b
merge: refresh main after passing platform validation
rsliter Sep 11, 2026
75161b5
merge(ci): reconcile platform fixtures with main
rsliter Sep 11, 2026
b156d8a
fix(ci): preserve diagnostics after SSH readiness expires
rsliter Sep 11, 2026
c40483e
merge(ci): consume current test-size validation budget
rsliter Sep 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 23 additions & 16 deletions .github/workflows/platform-vitest-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:

permissions:
contents: read
packages: read

concurrency:
group: platform-evidence-${{ github.ref }}
Expand Down Expand Up @@ -147,16 +148,10 @@ jobs:
stat --version | head -n 1
awk --version | head -n 1

- name: Install pinned OpenShell
env:
NEMOCLAW_NON_INTERACTIVE: "1"
run: env -u GH_TOKEN -u GITHUB_TOKEN bash scripts/install-openshell.sh

- name: Install dependencies
run: |
npm ci --ignore-scripts
cd nemoclaw
npm ci --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ github.token }}
run: bash .github/actions/ci-install-dependencies.sh
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

- name: Build CLI and plugin
run: |
Expand All @@ -167,6 +162,12 @@ jobs:
- name: Run full Vitest suite on macOS
run: npx vitest run --testTimeout 60000 --shard="${{ matrix.shard }}/4"

- name: Install pinned OpenShell for macOS E2E
if: ${{ matrix.shard == 1 }}
env:
NEMOCLAW_NON_INTERACTIVE: "1"
run: env -u GH_TOKEN -u GITHUB_TOKEN bash scripts/install-openshell.sh

- id: macos_docker
name: Detect Docker availability for macOS E2E
if: ${{ matrix.shard == 1 }}
Expand Down Expand Up @@ -239,10 +240,6 @@ jobs:
WSL_DISTRO: Ubuntu
WSL_TEST_USER: nemoclaw-ci
TRUSTED_WSL_HELPER: ${{ github.workspace }}\trusted-wsl-ci\tools\wsl\ci-helper.ps1
NEMOCLAW_NON_INTERACTIVE: "1"
NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1"
NEMOCLAW_RECREATE_SANDBOX: "1"
NEMOCLAW_SANDBOX_NAME: "e2e-wsl"
steps:
- name: Force LF line endings for checkout
shell: powershell
Expand Down Expand Up @@ -288,7 +285,8 @@ jobs:
. "$env:TRUSTED_WSL_HELPER"
$packages = @(
'bash', 'ca-certificates', 'curl', 'git', 'jq', 'lsb-release', 'make',
'python3', 'python3-pip', 'python3-venv', 'ripgrep', 'rsync', 'tar', 'unzip', 'xz-utils'
'docker.io', 'iproute2', 'procps', 'python3', 'python3-pip', 'python3-venv',
'ripgrep', 'rsync', 'tar', 'unzip', 'xz-utils'
)
Install-WslUbuntuDependencies -Distro $env:WSL_DISTRO -Packages $packages -TestUser $env:WSL_TEST_USER

Expand All @@ -310,18 +308,23 @@ jobs:

- name: Install dependencies and build in WSL
shell: powershell
env:
NODE_AUTH_TOKEN: ${{ github.token }}
run: |
. "$env:TRUSTED_WSL_HELPER"
$testUser = ConvertTo-BashLiteral -Value $env:WSL_TEST_USER
$workdir = ConvertTo-BashLiteral -Value $env:WSL_WORKDIR
$nodeAuthToken = ConvertTo-BashLiteral -Value ([string]$env:NODE_AUTH_TOKEN)
$script = @"
set -euo pipefail
id -un | grep -Fxq $testUser
cd $workdir
npm ci --ignore-scripts
export NODE_AUTH_TOKEN=$nodeAuthToken
export GITHUB_EVENT_NAME=push
bash .github/actions/ci-install-dependencies.sh
unset NODE_AUTH_TOKEN
npm run build:cli
cd nemoclaw
npm ci --ignore-scripts
npm run build
"@
Invoke-WslScript -Distro $env:WSL_DISTRO -User $env:WSL_TEST_USER -Script $script
Expand Down Expand Up @@ -401,6 +404,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
NVIDIA_INFERENCE_API_KEY: ${{ secrets.NVIDIA_INFERENCE_API_KEY }}
NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1"
NEMOCLAW_NON_INTERACTIVE: "1"
NEMOCLAW_RECREATE_SANDBOX: "1"
NEMOCLAW_SANDBOX_NAME: "e2e-wsl"
run: |
. "$env:TRUSTED_WSL_HELPER"
$workdir = ConvertTo-BashLiteral -Value $env:WSL_WORKDIR
Expand Down
5 changes: 5 additions & 0 deletions src/lib/onboard/docker-driver-gateway-env.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
writeDockerGatewayDebEnvOverride,
} from "./docker-driver-gateway-env";
import { PORTABLE_HOST_GATEWAY_IP } from "./experimental/portable-profile";
import { prepareNativePodmanGatewayHostRuntime } from "./runtime-provider/podman-runtime-surfaces";

function homeEnv(home: string, xdgConfigHome = ""): NodeJS.ProcessEnv {
return { HOME: home, XDG_CONFIG_HOME: xdgConfigHome } as NodeJS.ProcessEnv;
Expand Down Expand Up @@ -183,6 +184,10 @@ describe("buildDockerDriverGatewayEnv", () => {
const env = buildDockerDriverGatewayEnv({
platform: "linux",
stateDir,
gatewayHostRuntime: prepareNativePodmanGatewayHostRuntime({
environment: process.env,
platform: "linux",
}),
getDockerSupervisorImage: () => "supervisor:test",
resolveSandboxBin: () => "/usr/bin/openshell-sandbox",
});
Expand Down
40 changes: 40 additions & 0 deletions test/automation/e2e/platform-vitest-main-workflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,44 @@ describe("platform evidence workflow", () => {
NVIDIA_INFERENCE_API_KEY: "${{ secrets.NVIDIA_INFERENCE_API_KEY }}",
});
});

it("keeps real macOS OpenShell state out of the non-live suite", () => {
const steps = job("macos-vitest").steps ?? [];
const nonLiveIndex = steps.findIndex(
(entry) => entry.name === "Run full Vitest suite on macOS",
);
const installIndex = steps.findIndex(
(entry) => entry.name === "Install pinned OpenShell for macOS E2E",
);
expect(nonLiveIndex).toBeGreaterThanOrEqual(0);
expect(installIndex).toBeGreaterThan(nonLiveIndex);
expect(steps[installIndex]?.if).toContain("matrix.shard == 1");
});

it("scopes WSL live-E2E settings to the credentialed live step", () => {
const wsl = job("wsl-vitest");
const live = step("wsl-vitest", "Run WSL live E2E");
const liveOnlyEnvironment = {
NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1",
NEMOCLAW_NON_INTERACTIVE: "1",
NEMOCLAW_RECREATE_SANDBOX: "1",
NEMOCLAW_SANDBOX_NAME: "e2e-wsl",
};
expect(wsl.env).not.toMatchObject(liveOnlyEnvironment);
expect(live.env).toMatchObject(liveOnlyEnvironment);
});

it.each(["macos-vitest", "wsl-vitest"])(
"stages the approved OpenShell SDK for %s dependencies",
(jobName) => {
const install = step(
jobName,
jobName === "macos-vitest"
? "Install dependencies"
: "Install dependencies and build in WSL",
);
expect(install.env).toMatchObject({ NODE_AUTH_TOKEN: "${{ github.token }}" });
expect(install.run).toContain(".github/actions/ci-install-dependencies.sh");
},
);
});
59 changes: 39 additions & 20 deletions test/automation/pull-requests/analyze-pr-value-stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -660,32 +660,51 @@ describe("pull request value-stream analysis", () => {
await expect(stat(candidate)).rejects.toThrow();
});

test("reclaims stale publication locks but preserves active locks (#10542)", async () => {
const publicationRoot = await mkdtemp(path.join(tmpdir(), "value-stream-lock-"));
test.runIf(process.platform === "linux")(
"reclaims stale publication locks but preserves active locks (#10542)",
async () => {
const publicationRoot = await mkdtemp(path.join(tmpdir(), "value-stream-lock-"));
temporaryDirectories.push(publicationRoot);
const lock = path.join(publicationRoot, "pr-42.lock");
await mkdir(lock);
const liveStart = await readFile("/proc/" + process.pid + "/stat", "utf8");
const liveIdentity =
liveStart
.slice(liveStart.lastIndexOf(")") + 2)
.trim()
.split(/\s+/u)[19] ?? null;
await writeFile(
path.join(lock, "owner.json"),
JSON.stringify({ pid: process.pid, startIdentity: liveIdentity }),
);
expect(await reclaimStalePublicationLock(lock)).toBe(false);
const stale = new Date(Date.now() - 6 * 60 * 1_000);
await utimes(lock, stale, stale);
expect(await reclaimStalePublicationLock(lock)).toBe(false);
await writeFile(path.join(lock, "owner.json"), JSON.stringify({ pid: process.pid }));
expect(await reclaimStalePublicationLock(lock)).toBe(false);
await writeFile(
path.join(lock, "owner.json"),
JSON.stringify({ pid: process.pid, startIdentity: "reused-owner" }),
);
expect(await reclaimStalePublicationLock(lock)).toBe(true);
await mkdir(lock);
await utimes(lock, stale, stale);
expect(await reclaimStalePublicationLock(lock)).toBe(true);
await expect(stat(lock)).rejects.toThrow();
},
);

test("preserves active locks without a Linux start identity", async () => {
const publicationRoot = await mkdtemp(path.join(tmpdir(), "value-stream-portable-lock-"));
temporaryDirectories.push(publicationRoot);
const lock = path.join(publicationRoot, "pr-42.lock");
await mkdir(lock);
const liveStart = await readFile("/proc/" + process.pid + "/stat", "utf8");
const liveIdentity = liveStart
.slice(liveStart.lastIndexOf(")") + 2)
.trim()
.split(/\s+/u)[19];
await writeFile(
path.join(lock, "owner.json"),
JSON.stringify({ pid: process.pid, startIdentity: liveIdentity }),
);
expect(await reclaimStalePublicationLock(lock)).toBe(false);
const stale = new Date(Date.now() - 6 * 60 * 1_000);
await utimes(lock, stale, stale);
expect(await reclaimStalePublicationLock(lock)).toBe(false);
await writeFile(path.join(lock, "owner.json"), JSON.stringify({ pid: process.pid }));
await utimes(lock, stale, stale);
expect(await reclaimStalePublicationLock(lock)).toBe(false);
await writeFile(
path.join(lock, "owner.json"),
JSON.stringify({ pid: process.pid, startIdentity: "reused-owner" }),
);
expect(await reclaimStalePublicationLock(lock)).toBe(true);
await mkdir(lock);
await writeFile(path.join(lock, "owner.json"), "{}\n");
await utimes(lock, stale, stale);
expect(await reclaimStalePublicationLock(lock)).toBe(true);
await expect(stat(lock)).rejects.toThrow();
Expand Down
Loading