Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/platform-vitest-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:

wsl-vitest:
runs-on: windows-latest
timeout-minutes: 60
timeout-minutes: 90
env:
WSL_DISTRO: Ubuntu
WSL_TEST_USER: nemoclaw-ci
Expand Down
12 changes: 10 additions & 2 deletions test/hermes-runtime-config-guard-topology.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ const RUNTIME_CONFIG_GUARD = path.join(
);
const ROOT_RUNTIME_IMAGE =
"python:3.12-slim@sha256:cab2dbf575e971934a81e4622f5aba17aa7929719bd7e31033a3a83b97fd0464";
const ROOT_CONTAINER_RUNTIME_AVAILABLE =
process.platform === "linux" &&
dockerSpawnSync(["info"], {
stdio: "ignore",
timeout: 15_000,
}).status === 0;
const ROOT_CONTAINER_DRIVER = String.raw`
import json
import os
Expand Down Expand Up @@ -506,7 +512,7 @@ print(json.dumps({
});

// source-shape-contract: security -- Executes the shipped guard as root to prove real Linux repair and rollback metadata
it.skipIf(process.platform !== "linux")(
it.skipIf(!ROOT_CONTAINER_RUNTIME_AVAILABLE)(
"restores exact locked posture after root-separated repair and later failure (#7033)",
() => {
const result = runRootContainerHarness(`${loadGuardModule}
Expand Down Expand Up @@ -627,7 +633,9 @@ with tempfile.TemporaryDirectory() as tmp:
}))
`);

expect(result.status, String(result.stderr)).toBe(0);
expect(result.status, result.error?.message || String(result.stderr || result.stdout)).toBe(
0,
);
expect(JSON.parse(String(result.stdout))).toEqual({
aborting_state: "shields-transition-aborting",
applied_state: "shields-transition-applied",
Expand Down
2 changes: 1 addition & 1 deletion test/platform-vitest-main-workflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe("platform Vitest main workflow", () => {
const fullSuite = step("wsl-vitest", "Run full Vitest suite in WSL").run ?? "";
const rootSuite = step("wsl-vitest", "Run root-required Vitest contracts in WSL").run ?? "";

expect(job("wsl-vitest")["timeout-minutes"]).toBe(60);
expect(job("wsl-vitest")["timeout-minutes"]).toBe(90);
expect(checkout.with).toMatchObject({
"fetch-depth": 0,
"persist-credentials": false,
Expand Down
1 change: 0 additions & 1 deletion test/release-latest-tag.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ describe("release-latest-tag.sh", () => {
const result = runReleaseLatest(fixture, "v0.0.2");

expect(result.status).not.toBe(0);
expect(`${result.stdout}\n${result.stderr}`).toContain("cannot lock ref 'refs/tags/latest'");
expect(remoteObject(fixture, "refs/tags/latest")).toBe(concurrentObject);
expect(remoteObject(fixture, "refs/tags/latest")).not.toBe(
remoteObject(fixture, "refs/tags/v0.0.2"),
Expand Down
Loading