fix(ci): verify packaged Agent Environment bridges (#12874)

* test(agentenv): observe timeout before polling a pending run

* test(agentenv): verify bridge files at package boundary
This commit is contained in:
morluto authored and GitHub committed 2026-11-20 16:06:14 +00:00
1 parent b38438bab4
commit 41fc470072
14 files changed
+58 -94

No files matched your search

+1
View File
@@ -244,6 +244,7 @@ const PATH_SCOPES = {
"tests/process-global/runnerCancellation.test.ts",
"tests/process-global/windowsOwnedCommand.test.ts",
"tests/process-global/curatedWindowsLane.test.ts",
"src/desktop/AgentEnvBridgeSources.ts",
"src/ghidra/GhidraBridgeSources.ts",
"native/windows/**",
"src/process/capture/FilesystemSnapshot.ts",
+9
View File
@@ -1,7 +1,15 @@
import { relative, sep } from "node:path";
import { fileURLToPath } from "node:url";
import { AGENTENV_BRIDGE_SOURCES } from "../src/desktop/AgentEnvBridgeSources.ts";
import { GHIDRA_BRIDGE_SOURCES } from "../src/ghidra/GhidraBridgeSources.ts";
const packedHopperBridge = "package/bridge/hopper_bridge.py";
const packedCutterBridge = "package/bridge/cutter/rea_bridge.py";
const root = fileURLToPath(new URL("../", import.meta.url));
const packedAgentEnvSources = Object.values(AGENTENV_BRIDGE_SOURCES).map(
(url) => `package/${relative(root, fileURLToPath(url)).split(sep).join("/")}`,
);
/** Check shipped bridge files; real-provider lanes verify runtime behavior. */
export async function verifyPackedBridge({ tarball, packedFiles, commands }) {
@@ -15,6 +23,7 @@ export async function verifyPackedBridge({ tarball, packedFiles, commands }) {
for (const path of [
packedHopperBridge,
packedCutterBridge,
...packedAgentEnvSources,
...Object.values(GHIDRA_BRIDGE_SOURCES).map(
(name) => `package/bridge/ghidra/${name}`,
),