Repository navigation
test: strengthen integration oracles and verification - #8295
Merged
Merged
Conversation
morluto
marked this pull request as ready for review
October 31, 2026 10:50
morluto
requested review from
N0zoM1z0,
gensokyo-dev and
kaoru0822-kitauji
as code owners
October 31, 2026 10:50
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
[Medium impact] The reviewed follow-up appears safe to merge; the reported gate-release issue is fixed. SummaryStrengthens CLI/MCP assertions, fixture cleanup, and CI verification.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Create gate and release function] --> B[Start request]
B --> C[Wait for acknowledgement]
C --> D[Check cancellation or shutdown]
C -->|Request settles early or deadline expires| E[Cleanup]
D --> E
E --> F[Release gate]
F --> G[Wait for request to finish]
G --> H[Close service and remove fixture]
Reviews (8) · Last reviewed commit: "test: release provider gates before late..." · Reviewed by Greptile |
This comment has been minimized.
This comment has been minimized.
…it-20261031 # Conflicts: # tests/boundary/wasm/interfaceComparison.test.ts
Entrpi
added a commit
to Entrpi/rea
that referenced
this pull request
Oct 31, 2026
The merge is clean. Main's changes to GhidraRiscvProfile.test.ts (morluto#8295), GhidraProviderClient.ts and docs/testing.md touch other regions than this branch.
coyoteXujie
pushed a commit
to coyoteXujie/rea
that referenced
this pull request
Nov 2, 2026
* test: strengthen integration oracles and verification * test: bound lifecycle gates and strengthen workflow checks * test: verify complete paged and extracted results * test: preserve bytecode and cancellation evidence * test: strengthen retained evidence and fixture cleanup * test: require cross-projection bridge identities * test: retain fixture owners through cleanup failures * test: verify graph examples and project selectors * test: tighten provider and lifecycle regressions * test: consolidate hex coverage and bound cutter cleanup * test: bound subprocess output waits and strengthen graph checks * test: check mcp recovery and preserve cleanup owners * test: verify structured mcp argument failures * test: preserve artifact cleanup and gdb limit evidence * test: preserve evidence identities and bound provider gates * test: retain browser and comparison cleanup owners * test: bound startup and strengthen fixture oracles * test: bound lifecycle gates and verify recovered evidence * test: verify public outcomes and lifecycle ownership * test: assert precise evidence and release lifecycle gates * test: verify selected facts and bound cleanup waits * test: check retained evidence and decoded records * test: verify final reports and retain cleanup ownership * test: bound reviewed startup gates and retain cleanup * test: verify PE errors and preserve MCP cleanup * test: preserve MCP fixture cleanup ownership * test: release provider gates before late startup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Strengthen test and CI verification where a passing result did not establish the intended behavior, and move duplicated format cases to public CLI coverage while retaining distinct boundary and lifecycle checks. This follows a test-suite audit; there is no linked issue.
Problem and expected behavior
Some tests accepted success without checking the recovered Evidence, the completed process, or the intended request and cleanup behavior. CI scope selection also omitted inputs to real browser and packet-capture verification, and the SQLite lane could silently omit a named test. Tests should exercise the relevant boundary and assert the facts that establish the outcome.
Change and scope
Contract and boundary impact
Evidence and regression coverage
Validation performed
On
b6fa73b8d, pre-created provider release gates cover startup that arrives after the acknowledgement deadline. An isolated delayed-stat probe hung in the original test and exited with the expected deadline error in the revised test. The source file passed all 72 tests;check:fast, formatting and diff checks passed. CI for this commit is pending.Follow-up commits through
f46bdad70bound the reviewed Rizin and native startup waits, strengthen selected-record, error and digest assertions, and make MCP teardown failures visible. Focused Node 24.22.1 runs passed 176 tests (21 skipped), 28 tests, 26 tests (one skipped), 129 tests, 153 tests (two skipped), 38 tests, and a separate two-test artifact file; the final three fixture files passed 2, 2 and 8 tests.check:fast, formatting and diff checks passed. Fault injections verified the corrected assertions and cleanup paths. Fixtures do not establish real-provider behavior; the process finalization and filesystem cases use real child processes. CI for the pushed head is pending.On follow-up commit
0ac43cfb6, 99 focused tests passed across 13 files on Node 24.22.1, with one Linux-only case skipped;check:fast, formatting and diff checks passed. Isolated probes showed that wrong errors, wrong trace identities and missing lifecycle acknowledgements previously passed or hung. Provider and capture fixtures are synthetic; CI for this commit is pending.On follow-up commit
af000f362, 274 focused tests passed across 16 files on Node 24.22.1; 39 Linux-only PCAP cases were skipped on macOS.check:fast, formatting and diff checks passed. Isolated early-settlement and wrong-input probes demonstrated previously hanging or false-green tests. ADB, SEA and provider fixtures are simulated; Linux PCAP and real-device behavior remain for their respective CI/provider checks. CI for this commit is pending.On follow-up commit
85eac2a53, 289 focused tests passed across 15 files on Node 24.22.1, including real child-process progress cases;check:fast, formatting and diff checks passed. Controlled probes demonstrated false-green Evidence projections and close failures, and showed missing lifecycle acknowledgements fail promptly. These probes do not establish real-provider coverage beyond the explicitly described real-process cases. CI for this commit is pending.After merging
mainata989c0e45, the startup gate uses a bounded acknowledgement raced against the request. An isolated invalid-tool probe failed promptly and exited normally. On Node 24.22.1, 241 focused tests passed across 11 files, including the moved WASM CLI regression and overlapping Evidence/MCP paths; 34 Python context tests,check:fast, formatting, discovery (2,919 files) and diff checks passed. Providers in fixture-based cases are simulated. CI for the merged head is pending.Earlier-tree results are identified below and do not validate the final PR tree:
Source lane: 1,204 files passed, 22,219 tests passed and 28 skipped. Acceptance lane: 1,849 tests passed and 15 skipped across 315 selected files. MCP boundary rerun: 252 files passed and two skipped; 1,654 tests passed and 11 skipped. Python lane: 135 tests passed. These broad runs preceded later edits.
Later focused checks recorded 78 passed and two skipped across five setup/capture acceptance files; 20 MCP cleanup tests, four ASAR MCP settings tests, 21 Ghidra extension tests and 11 Hopper instruction tests passed.
check:fast, formatting andgit diff --checkpassed on that earlier tree.Real Ghidra COM, RISC-V and raw verification passed with Ghidra 12.1.4 and JDK 21 on macOS arm64 using generated fixtures.
On earlier base
23de10bb2,npm run test:focused -- src/domain/firmware/espImage.test.ts tests/acceptance/espImageCli.test.ts tests/boundary/filesystem/ciChangeScope.test.ts tests/boundary/cli/developmentTests.test.ts tests/acceptance/pcapVerifier.test.ts— 435 passed, one Linux-only TShark test skipped on macOS.On the same tree,
npm run test:focusedfor the HTTP, managed, mobile, official-tool and advertised-schema MCP tests plus ASAR settings, qlog capture and CLI timing tests — 35 passed, one platform-specific qlog fallback skipped.npm run test:python,npm run check:fast,npm run format:check, andgit diff --checkpassed;npm run verify:test-discoveryfound all 2,909 tests exactly once.gitleaks protect --staged --redactreported no leaks.On PR commit
7e3998419, the required CI run passed, including all eight test shards, Python and the Windows lane. The following commits need their own CI run.Follow-up local validation on Node 24.22.1: Ghidra MCP harness and consumers 80 tests; Kuna boundary suite 379; browser MCP 17; process progress, compact schema and ownership lifecycle 23; mobile graph examples 9; test-project selectors 15. Focused Godot, BEAM, PyInstaller, firmware, packet, PE, JEB and reconciliation suites also passed. Providers in these checks are fixtures unless stated otherwise.
check:fast, formatting, discovery and diff checks passed.On PR commit
758603e04, required CI passed, including all eight shards, Python and Windows. Subsequent commits need their own CI run.Follow-up local checks on Node 24.22.1 covered PE import and HEX consolidation, route paging, package-gate diagnostics, guided MCP startup, GDB/Rizin cancellation and cleanup, Cutter descriptor lifecycle, MCP recovery and argument validation, and process-fixture timeout behavior. Focused tests and
check:fast, formatting, discovery and diff checks passed; simulated providers do not establish real-provider behavior.Compatibility, safety, and release
38844303, Linux real TShark executed the new verifier regression and passed; real browser and all eight main test shards also passed. The Python producer job aborted in build-plan parsing before tests with an allocator error; its cause remains unproven.4b8bb2eb9: SQLite compatibility 202 passed and three skipped on Node 24; lifecycle regressions 58 passed; browser MCP 16 passed; mobile CLI/MCP 9 passed; the cancellation fixture passed;check:fast, formatting and diff checks passed. Other Node-version matrix entries remain for CI.4b8bb2eb9, CI required passed, including all eight test shards, Python producer tests, all four SQLite versions and the Windows lane. The earlier allocator abort did not recur; its cause remains unproven.1c3c8b110and7e3998419: focused managed paging (16), retained inventory (4), ZIP and uImage extraction (2), iNES (41), JVM archives (2), JEB fixture and consumers (49), MCP cleanup (34), JavaScript cancellation (5), and Python CLI/MCP (23 plus a subsequent 6-test MCP rerun) passed. The regex suites passed 50 after consolidating duplicates.check:fast, formatting, test discovery (2,908 files) and diff checks passed locally. New CI is pending.Author readiness
Human owner:
Before merge
type(scope): outcome.