rea/tests/boundary
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
..
android fix(android): clean Windows workspaces after owner termination (#2440) 2026-10-13 22:03:16 +08:00
binaryDiagnostics feat(recorded-crash): decode AArch64 core register notes (#2505) 2026-10-13 23:48:24 +08:00
browser fix(browser): read expression-free template literals as module specifiers (#2842) 2026-10-14 06:40:25 +08:00
captures fix(process): preserve discovery ownership across cleanup retries (#2643) 2026-10-13 13:43:06 +00:00
cli fix(cli): refuse a JavaScript integrity policy the binary analyze lane cannot honor (#2808) 2026-10-14 07:28:00 +08:00
evm feat(evm): inspect lossless Solidity terminal CBOR metadata (#2790) 2026-10-13 21:55:30 +08:00
filesystem fix(javascript): exclude TypeScript this annotations from runtime parameters (#2761) 2026-10-14 07:18:50 +08:00
firmware fix: order remaining outputs independently of host locale (#1867) 2026-10-12 01:10:01 +08:00
go feat(native): read embedded cargo-auditable Rust dependency lists (#2456) 2026-10-14 02:50:30 +08:00
inspector fix(runtime)!: preserve unknown debugger attachment state 2026-10-12 12:37:00 +08:00
javascript test(javascript): run native type bindings with compiled boundary prerequisites 2026-10-14 06:32:39 +08:00
javascript-recovery fix(javascript): preserve cancellation through recovery publication cleanup 2026-10-13 15:19:18 +08:00
mcp fix(native): preserve observed function dossier coverage 2026-10-14 07:11:55 +08:00
native fix(artifacts): retain read cleanup ownership through CLI and MCP shutdown 2026-10-13 16:08:41 +08:00
pcap fix(pcap): name the host tool to configure in capability refusals (#2507) 2026-10-13 13:29:09 +08:00
process fix(electron): reject non-executable paths and contain launch rejections (#2705) 2026-10-14 07:30:14 +08:00
providers fix(native): preserve observed function dossier coverage 2026-10-14 07:11:55 +08:00
rust feat(native): read embedded cargo-auditable Rust dependency lists (#2456) 2026-10-14 02:50:30 +08:00
setup fix(hopper): recover provenance-verified Spotlight exits 2026-10-14 06:19:47 +08:00
signals fix(process): preserve discovery ownership across cleanup retries (#2643) 2026-10-13 13:43:06 +00:00
sqlite fix(sqlite): keep triggers whose declaration spells the table in another case (#2807) 2026-10-13 22:37:47 +08:00
idaStartupDiagnostics.test.ts fix(ida): retain bounded stderr on upstream transport failures (#2449) 2026-10-13 22:14:39 +08:00
javascriptSemanticTraceEvidence.test.ts fix: report malformed application evidence as input errors 2026-10-10 03:52:35 +08:00