rea/tests/acceptance
Cassie_Fox 97aff28201
fix(electron): reject non-executable paths and contain launch rejections (#2705)
* fix(electron): reject non-executable paths and contain launch rejections

An executable_path that runs but never prints the inspector line made
Playwright's electron.launch() leave three waits unawaited. They rejected
unhandled and Node ended the CLI or the MCP server (#2269).

Check the resolved executable_path is a regular file, and on non-Windows
hosts that it passes X_OK, before any launch. Wrap only the launch call
in a scoped unhandledRejection listener that absorbs rejections whose
stack is in playwright-core/lib and re-throws anything else.

Tested on Linux with Node 22.23.1, 24.18.0 and 26.11.1.

Refs #2269

🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊

* fix(electron): absorb only this launch's orphaned rejections

The listener around the launch dropped every rejection with a
playwright-core stack, so an unrelated Playwright failure during the
launch window would vanish. Hold those rejections instead. When the
launch settles, drop only the ones whose message is part of the launch's
own error (the orphans of a failed launch). Raise every other one again
through the unhandledRejection path, so the process still fails. A launch
that succeeds raises all of them. Rejections without a Playwright stack
still fail at once.

One setImmediate turn before the decision lets rejections queued by the
settling tick arrive first. It is a single turn, not a timer. A shared
set of absorbed errors stops overlapping launches from raising each
other's orphans. The listener is removed on every path.

Add child-process tests that drive the built provider through its launch
seam, since Vitest's worker has its own unhandledRejection listener.

🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊

* test(electron): distinguish launch success from capture ownership

* test(electron): assert cleanup ownership failures around overlapping launches

* fix(comparison): recheck historical calls-only changes (#2223)

* fix(comparison): preserve incomplete function call evidence

Keep missing, unknown, partial and unresolved call relationships unknown in function comparisons and reconstruction claims. Aggregate IDA caller and callee coverage without overwriting uncertainty.

Validate with 144 focused tests, typecheck/lint, docs checks and test discovery. Real providers were not verified; the full headless IDA session suite requires unavailable Windows native controls.

* fix(comparison): recheck historical calls-only changes

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>

* fix(android): make DEX descriptor pattern portable

* fix(ci): isolate Linux Hopper process fixture inventory

* fix(browser): avoid replaying observed launch rejections

* style: format comparison and IDA sources

* test(electron): allow cold macOS ownership setup

* test(electron): allow cold macOS setup in the early-exit path test

The test that runs an executable which exits at once builds the Swift
ownership helper twice on macOS: in the CLI process, and again in the
MCP server process on its first tool call that prepares. A cold Swift
cache can spend up to 120 seconds on a build. The test had only the
30 second default.

Give the test 180 seconds, as e1579ec31 did for
electronLaunchRejections.test.ts and 65a809a0d did for
webSourceLocationCli.test.ts. cli.run has no deadline of its own, so
it needs no timeoutMs.

🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊

* test(ci): isolate report fixtures and declare PowerPC Java bounds

---------

Co-authored-by: Claude Opus 5.5 <opus@fox.invalid>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
Co-authored-by: Lucien <164857476+dakjdakd@users.noreply.github.com>
2026-10-14 07:30:14 +08:00
..
applications fix(electron): reject non-executable paths and contain launch rejections (#2705) 2026-10-14 07:30:14 +08:00
browser fix(cli): await browser scenario cleanup on interrupts 2026-10-11 17:33:57 +08:00
process ci: keep validation fresh and preserve failed-shard reports (#2210) 2026-10-12 23:42:47 +08:00
providers fix(managed): pair members by declared identity before name-free remaps (#2116) 2026-10-14 06:36:43 +08:00
setup fix(setup): resolve DeepSeek Harness home overrides (#2461) 2026-10-13 20:05:31 +08:00
tools feat(browser): inspect retained aioquic qlog JSON captures 2026-10-13 03:24:05 +00:00
artifactClassification.test.ts fix(artifacts): distinguish JVM classes from universal Mach-O files (#2327) 2026-10-13 20:27:38 +08:00
artifactComparisonPlist.test.ts fix(artifacts): compare leaf inventories using explicit coverage 2026-10-13 03:47:45 +08:00
artifactInventoryJvmClass.test.ts fix(artifacts): distinguish Java classes from universal Mach-O 2026-10-13 04:12:04 +08:00
emptyTargetPathCli.test.ts fix(cli): reject empty analyze and artifact target paths (#2687) 2026-10-13 23:48:09 +08:00
flutterAnalysis.test.ts fix(flutter): reject ambiguous ELF mappings and bound note reads (#2334) 2026-10-13 22:13:22 +08:00
goBinaryCli.test.ts feat(go): inspect embedded binary build metadata (#1363) 2026-10-12 11:34:02 +08:00
harmonyArtifactJourney.test.ts fix: align MCP archive contracts and documentation (#2478) 2026-10-13 12:06:41 +08:00
managedCliOutput.test.ts fix(managed): report malformed PE layouts as invalid input (#2194) 2026-10-12 06:53:26 -07:00
managedMemberPointers.test.ts fix(managed): resolve member ownership through pointer tables (#1886) 2026-10-12 01:40:48 +08:00
managedMetadataExtraData.test.ts fix(managed): honor metadata ExtraData before table decoding (#1893) 2026-10-12 02:28:22 +08:00
nonBinaryComposition.test.ts fix(mcp): admit composed analysis through result bookkeeping 2026-10-10 00:35:17 +08:00
rustBinaryCli.test.ts feat(native): read embedded cargo-auditable Rust dependency lists (#2456) 2026-10-14 02:50:30 +08:00
sqliteDatabaseCli.test.ts feat(sqlite): inspect offline snapshots with selective evidence (#2271) 2026-10-12 18:33:23 +00:00
wasmInterfaceComparison.test.ts feat(wasm): compare retained core-module interfaces (#2464) 2026-10-13 23:49:04 +08:00
webModuleCli.test.ts test(cli): preserve Windows runtime paths and failure diagnostics 2026-10-12 15:46:42 +08:00
webRuntimeCli.test.ts test(cli): verify self-import parity and cleanup 2026-10-09 07:29:16 +08:00
webSourceLocationCli.test.ts test(cli): preserve Windows runtime paths and failure diagnostics 2026-10-12 15:46:42 +08:00