Reverse engineer anything with agents, from app behavior down to native binaries.
TypeScript agent-skillsai-agentsbinary-analysisclaude-codeclicodexcordisdecompilerdeveloper-toolsdshdsh-pluginghidrahopperllmmcpmodel-context-protocolreareverse-engineeringstatic-analysistouhou
test: repair remaining bulk-merge regression fixtures (#6375)
morluto7091be291c2c
diff --git a/src/application/LinuxHopper.test.ts b/src/application/LinuxHopper.test.tsindex 929be58da..06a10224d 100644--- a/src/application/LinuxHopper.test.ts+++ b/src/application/LinuxHopper.test.ts@@ -9,7 +9,6 @@ import {linuxPackageManagerCommands,linuxSharedLibrariesAvailable,parseLinuxDistribution,- readLinuxDistribution,supportsReaHost,LinuxHopperTemporaryCleanupOwner,systemLinuxHopperInstallHost,@@ -386,7 +385,7 @@ describe("Linux Hopper cleanup and failure details", () => {HOME: directory,XDG_CACHE_HOME: join(directory, "cache"),},- () => readLinuxDistribution(process.arch),+ async () => undefined,);const command = vi.spyOn(nativeCommands, "execFileOutput")diff --git a/src/application/LinuxHopperPackageRuntime.test.ts b/src/application/LinuxHopperPackageRuntime.test.tsindex 34bdf1eca..359c51f81 100644--- a/src/application/LinuxHopperPackageRuntime.test.ts+++ b/src/application/LinuxHopperPackageRuntime.test.ts@@ -6,12 +6,9 @@ import { err, ok } from "../domain/result.js";import * as pythonRuntime from "./LinuxHopperPython.js";import {linuxHopperInstallDisclosure,- readLinuxDistribution,systemLinuxHopperInstallHost,} from "./LinuxHopper.js";-const hostDistribution = () => readLinuxDistribution(process.arch);-const missingPython = {interpreter: "/usr/bin/python3",version: [3, 14],@@ -85,7 +82,7 @@ describe("Linux Hopper package runtime", () => {);const host = systemLinuxHopperInstallHost({ XDG_CACHE_HOME: directory },- hostDistribution,+ async () => undefined,);const command = vi.spyOn(boundedCommands, "execFileBoundedOutput")@@ -123,7 +120,7 @@ describe("Linux Hopper package runtime", () => {);const host = systemLinuxHopperInstallHost({ XDG_CACHE_HOME: directory },- hostDistribution,+ async () => undefined,);const failed = {exitCode: 67,@@ -164,7 +161,7 @@ describe("Linux Hopper package mapping", () => {const directory = await createTestTempDirectory("rea-python-package-map-");const host = systemLinuxHopperInstallHost({ XDG_CACHE_HOME: directory },- hostDistribution,+ async () => undefined,);const command = vi.spyOn(boundedCommands, "execFileBoundedOutput")@@ -215,7 +212,7 @@ describe("Linux Hopper package cancellation and disclosure", () => {);const host = systemLinuxHopperInstallHost({ XDG_CACHE_HOME: directory },- hostDistribution,+ async () => undefined,);const controller = new AbortController();const cause = new Error("caller cancelled at " + phase);diff --git a/src/domain/browserScenarioDiff.test.ts b/src/domain/browserScenarioDiff.test.tsindex e1ad0d375..d3144f375 100644--- a/src/domain/browserScenarioDiff.test.ts+++ b/src/domain/browserScenarioDiff.test.ts@@ -12,6 +12,7 @@ import {type BrowserScenarioCapture,} from "./browserScenarioCapture.js";import { DEFAULT_BROWSER_SCENARIO_CAPTURE_LIMITS } from "./browserScenarioCaptureLimits.js";+import { BROWSER_STORAGE_FINGERPRINT_VERSION } from "./browserScenarioCaptureValues.js";const noEventOmissions = {by_kind: [],@@ -1190,7 +1191,7 @@ const storageScenarioCapture = (storage: {state: "captured",value: {- fingerprint_version: 2,+ fingerprint_version: BROWSER_STORAGE_FINGERPRINT_VERSION,cookies: [],local_storage: [],session_storage: [],diff --git a/src/ida/IdaSessionClient.test.ts b/src/ida/IdaSessionClient.test.tsindex 52947d673..d297e6ce7 100644--- a/src/ida/IdaSessionClient.test.ts+++ b/src/ida/IdaSessionClient.test.ts@@ -9,7 +9,11 @@ import {import { IdaSessionClient } from "./IdaSessionClient.js";import { functionDossierSchema } from "../domain/hopperValues.js";import { jsonValueSchema, type JsonValue } from "../domain/jsonValue.js";-import { AnalysisProtocolError } from "../domain/analysisErrorCore.js";+import {+ AnalysisProtocolError,+ AnalysisResourceConstraintError,+} from "../domain/analysisErrorCore.js";+import { DEFAULT_REGEX_MATCHING_DEADLINE } from "../config/regexMatchingDeadline.js";import { ProviderAdapterError } from "../domain/providerAdapterError.js";import { projectAnalysisError } from "../domain/analysisErrorProjection.js";import { WindowsPrivateRuntime } from "../windows/WindowsPrivateRuntime.js";@@ -573,8 +577,19 @@ describe("attached IDA regex supervision", () => {mode: "regex",});expect(result.ok).toBe(false);- if (!result.ok)- expect(result.error._tag).toBe("AnalysisResourceConstraintError");+ if (+ result.ok ||+ !(result.error instanceof AnalysisResourceConstraintError)+ )+ throw new Error("Expected a supervised regex deadline");+ expect(result.error).toMatchObject({+ operation: "search_strings",+ resource: "cpu",+ reportedLimits: {+ matching_deadline_ms: DEFAULT_REGEX_MATCHING_DEADLINE.deadlineMs,+ matching_deadline_source: DEFAULT_REGEX_MATCHING_DEADLINE.source,+ },+ });const recovered = await client.execute("search_strings", {pattern: "!$",mode: "regex",diff --git a/tests/boundary/cli/browserCli.test.ts b/tests/boundary/cli/browserCli.test.tsindex 2f77db727..a8b63ca64 100644--- a/tests/boundary/cli/browserCli.test.ts+++ b/tests/boundary/cli/browserCli.test.ts@@ -2,6 +2,7 @@ import { afterEach, describe, expect, it } from "vitest";import { runCliJson as runCli } from "../../fixtures/cliJsonProcess.js";import { DEFAULT_BROWSER_SCENARIO_CAPTURE_LIMITS } from "../../../src/domain/browserScenarioCaptureLimits.js";+import { BROWSER_STORAGE_FINGERPRINT_VERSION } from "../../../src/domain/browserScenarioCaptureValues.js";import {startFakeCdpBrowser,type FakeCdpBrowser,@@ -704,7 +705,12 @@ it(...step.artifacts,storage: {state: "captured",- value: { cookies: [], local_storage: values, session_storage: [] },+ value: {+ fingerprint_version: BROWSER_STORAGE_FINGERPRINT_VERSION,+ cookies: [],+ local_storage: values,+ session_storage: [],+ },},},})),