From a9be81d510361a54fc120078db5463cc2e09efb3 Mon Sep 17 00:00:00 2001 From: Vincent Koc <25068+vincentkoc@users.noreply.github.com> Date: Mon, 22 Jun 2026 11:44:08 +0800 Subject: [PATCH] fix(ci): repair baseline lint and test gates --- extensions/codex/src/app-server/run-attempt.ts | 4 +++- scripts/plugin-sdk-surface-report.mjs | 8 ++++---- src/scripts/test-projects.test.ts | 5 +++++ test/scripts/plugin-sdk-surface-report.test.ts | 4 ++-- test/scripts/resolve-openclaw-ref.test.ts | 1 + 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/extensions/codex/src/app-server/run-attempt.ts b/extensions/codex/src/app-server/run-attempt.ts index a52d4844b0b1..897f7e241386 100644 --- a/extensions/codex/src/app-server/run-attempt.ts +++ b/extensions/codex/src/app-server/run-attempt.ts @@ -790,7 +790,9 @@ export async function runCodexAppServerAttempt( onYieldDetected: () => { yieldDetected = true; }, - onCodexAppServerEvent: (event) => emitCodexAppServerEvent(params, event), + onCodexAppServerEvent: (event) => { + void emitCodexAppServerEvent(params, event); + }, onPersistentWebSearchPolicyResolved: (allowed) => { persistentWebSearchAllowed = allowed; }, diff --git a/scripts/plugin-sdk-surface-report.mjs b/scripts/plugin-sdk-surface-report.mjs index 736547c38ea0..5fb3a549b34a 100644 --- a/scripts/plugin-sdk-surface-report.mjs +++ b/scripts/plugin-sdk-surface-report.mjs @@ -92,7 +92,7 @@ const defaultPublicDeprecatedExportsByEntrypointBudget = Object.freeze({ "ssrf-policy": 1, "ssrf-runtime": 1, "media-runtime": 2, - "text-runtime": 188, + "text-runtime": 189, "agent-runtime": 7, "plugin-runtime": 13, "channel-secret-runtime": 23, @@ -163,11 +163,11 @@ let publicDeprecatedExportsByEntrypointBudget; try { budgets = { publicEntrypoints: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_ENTRYPOINTS", 321), - publicExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_EXPORTS", 10311), - publicFunctionExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_FUNCTION_EXPORTS", 5174), + publicExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_EXPORTS", 10327), + publicFunctionExports: readBudgetEnv("OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_FUNCTION_EXPORTS", 5184), publicDeprecatedExports: readBudgetEnv( "OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_DEPRECATED_EXPORTS", - 3246, + 3247, ), publicWildcardReexports: readBudgetEnv( "OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_WILDCARD_REEXPORTS", diff --git a/src/scripts/test-projects.test.ts b/src/scripts/test-projects.test.ts index ed51b5aba29a..d262d5603859 100644 --- a/src/scripts/test-projects.test.ts +++ b/src/scripts/test-projects.test.ts @@ -862,6 +862,7 @@ describe("test-projects args", () => { "src/install-sh-version.test.ts", "src/proxy-capture/store.sqlite.test.ts", "test/scripts/android-version.test.ts", + "test/scripts/resolve-openclaw-ref.test.ts", ], watchMode: false, }, @@ -881,6 +882,7 @@ describe("test-projects args", () => { "test/scripts/android-pin-version.test.ts", "test/scripts/bench-cli-startup.test.ts", "test/scripts/check-package-dist-imports.test.ts", + "test/scripts/ci-hydrate-testbox-env.test.ts", "test/scripts/clawhub-fixture-server.test.ts", "test/scripts/codex-install-assertions.test.ts", "test/scripts/config-reload-mutate-metadata.test.ts", @@ -898,8 +900,11 @@ describe("test-projects args", () => { "test/scripts/onboard-config-fixtures.test.ts", "test/scripts/parallels-lib-helpers.test.ts", "test/scripts/parallels-smoke-model.test.ts", + "test/scripts/plugin-package-dependencies.test.ts", "test/scripts/plugins-assertions.test.ts", "test/scripts/prepare-extension-package-boundary-artifacts.test.ts", + "test/scripts/proxy-install-ca.test.ts", + "test/scripts/release-preflight.test.ts", "test/scripts/report-test-temp-creations.test.ts", "test/scripts/test-install-sh-docker.test.ts", "test/scripts/test-projects.test.ts", diff --git a/test/scripts/plugin-sdk-surface-report.test.ts b/test/scripts/plugin-sdk-surface-report.test.ts index 25a58f6850c1..1774efb6e9e7 100644 --- a/test/scripts/plugin-sdk-surface-report.test.ts +++ b/test/scripts/plugin-sdk-surface-report.test.ts @@ -51,11 +51,11 @@ describe("plugin SDK surface report", () => { it("keeps generated package declarations out of source surface counts", () => { const result = runSurfaceReport({ - OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_FUNCTION_EXPORTS: "5173", + OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_FUNCTION_EXPORTS: "5183", }); expect(result.status).toBe(1); - expect(result.stderr).toContain("public callable exports 5174 > 5173"); + expect(result.stderr).toContain("public callable exports 5184 > 5183"); }); it("rejects deprecated export growth by public entrypoint", () => { diff --git a/test/scripts/resolve-openclaw-ref.test.ts b/test/scripts/resolve-openclaw-ref.test.ts index 56fb5a70b535..80ab0bc7b6b1 100644 --- a/test/scripts/resolve-openclaw-ref.test.ts +++ b/test/scripts/resolve-openclaw-ref.test.ts @@ -41,6 +41,7 @@ function runResolver(remote: string, args: string[]) { encoding: "utf8", env: { ...process.env, + GITHUB_OUTPUT: "", OPENCLAW_REF_REMOTE: remote, }, });