Skip to content

feat: upcoming release - #219

Merged
robertmarsal merged 103 commits into
mainfrom
staging
Nov 16, 2026
Merged

robertmarsal merged 103 commits into
mainfrom
staging

Conversation

@robertmarsal

Copy link
Copy Markdown
Contributor

No description provided.

brettwold and others added 30 commits November 10, 2026 15:48
chore(ENG-2785): stop sending advanced_analysis
…ra-sdk-bump-staging

feat(ENG-4421): bump ai.reveng:sdk to 4.75.1-rc.1 (staging)
Bound DNS lookups on the SDK HTTP client, since OkHttp's connect timeout
does not cover resolution and offline it can block for minutes.

Move the analysis status check on program open and the loading of
finished analysis results off the Swing thread into background tasks.
…ra-test-plugin-does-not-staging

fix(ENG-4400): keep Ghidra responsive when the network is down (staging)
…on matching

Match the portal's Match Settings: platform (Linux, Windows, Android) and
architecture (x86 64/32-bit, ARM 64-bit) toggles, where none ticked means
any, and a user search backed by v3ListUsers. The selections go out in
MatchFilters for both binary- and function-level matching, which now
share one buildMatchFilters.
…ra-function-matching-add-staging

feat(ENG-4403): add platform, architecture and user filters to function matching (staging)
…s bar

Split the dialog into "Filter Search" and "Filter Results" sections with
the Match Functions button right-aligned under the filters. Filters get
captions instead of titled boxes, in two equal columns; selectors show a
search hint and only show their tag strip once something is selected.
The results count moves next to the results filter, and the table and
assembly comparison share the space evenly.

Progress: the step reported by the server is now shown (it was dropped),
the bar fills by completed steps, and the Match button turns into a
working Cancel while a run is going. A cancelled run can no longer hide
the progress bar of, or write results into, the run that replaced it.
Renames get a task dialog instead of the hidden matching bar.
…nctions

The function-level dialog starts matching when it opens, and the Match
button now reads Cancel while a run is going. On slower CI runners the
tests' press landed during that first run and cancelled it, so the table
never filled. Wait for the first run to finish before pressing.
* fix: guard against null pointer exceptions

* fix: harden type names, recent analysis picker, chat worker and pull transaction

* test: give each test fork its own Ghidra temp dir
…atch

The run is marked finished and the button relabelled in one Swing update;
checking from the test thread could see it half done and find the button
still reading Cancel.
…ra-function-matching-design-staging

feat(ENG-4406): redesign function matching dialog and fix its progress bar (staging)
Replace the Rename buttons with Transfer dropdowns (Name / Signature /
Name and Signature), as in the portal. ApplyMatchCmd takes the part to
transfer; a signature-only transfer keeps the function's name and
namespace and pushes no rename to the portal.
…ra-function-matching-separate-staging

feat(ENG-4411): transfer name, signature or both from function matching (staging)
…older

Type extraction stores `undefined f(void)` (source SYSTEM, no parameters,
return type id 0 or none) for every function Ghidra had no signature for,
and reports it with has_signature true. Attaching an analysis applied it over
DWARF and analysis signatures, matching transferred it, and sync never pushed
the better local signature because the server seemed to have one.

- Treat the placeholder as no signature when pulling, syncing and matching.
- Don't let a SYSTEM signature replace a local IMPORTED or ANALYSIS one; the
  function still takes the portal's name. Portal edits (USER) still apply.
- Count a placeholder as missing when pushing back. Its row exists, so the
  signature PUT accepts the local signature.
…ra-dont-overwrite-real-staging

fix(ENG-4453): don't overwrite real signatures with the server placeholder (staging)
dorny/test-reporter creates the check run and updates it about 0.3 s later.
The update intermittently returns 404, which failed jobs whose tests had
passed and needed re-runs. Failing tests already fail the Run tests step,
so the report step can continue on error.
…r-staging

ci: don't fail the build when publishing the test report flakes (staging)
vgoat21 and others added 21 commits November 13, 2026 14:53
The fix itself landed with ENG-4457, which left transferred names to the
reactive push and dropped the comment claiming a signature-only transfer
had nothing to push. Add the missing coverage: a signature-only transfer
pushes the signature once and no rename, and a name-and-signature
transfer pushes each once.
…ra-matching-transfer-staging

test(ENG-4483): pin how a transferred signature reaches the portal
TestAnalysisLogComponent waited for its error dialog with
waitForDialogComponent(null, OptionDialog.class, 30_000), but Ghidra
ignores that timeout and waits only 2s. On a slow runner the chain from
the Queued event to the dialog (task, Swing, task, Swing) takes longer,
and the test failed with "Timed-out waiting for window". The awaitDialog
helper that polls against a 30s deadline moves from
FunctionLevelFunctionMatchingDialogTest into the shared base class, and
both classes use it. The other waitForDialogComponent calls show their
dialog straight from Swing, so the 2s wait is enough for them.

RejectedLocalEditsTest woke once the mock had recorded both renames, but
the mock records them inside the send, and the unpushed mark is cleared
only after the send returns. Asserting the mark right away could race
the sync thread, so the test now waits for it to clear.
…le events

Detaching while an analysis was still running left its monitoring task
polling, and the program stayed in the log component's tracked map. A
new analysis for the same program was then never monitored, and when
the old analysis finished its Complete event loaded the old analysis'
function IDs into a program whose options pointed at another analysis.
Closing the program also left the wait polling, and holding the
program, for up to three hours.

Each wait now runs on its own cancellable monitor that still shows its
progress on the shared TaskMonitorComponent. Detach and programClosed
stop the program's wait, and close also drops its stored logs and
terminal status line. A status event for a different analysis of an
already tracked program replaces the old wait instead of being
ignored, and a finished wait only removes its own map entry. The shared
component's cancelled state is cleared once no wait uses it, so a
Cancel press does not cancel the next wait.

The plugin ignores status events, and skips results loads, for a
ProgramWithID that is no longer the program's known analysis, so a
Complete or Error from a wait that had not yet noticed the detach does
nothing.
The 500-type closure cap was applied to the union of every function in a
push batch. Since pushes go out in batches (ENG-4482), a large binary
pushed types past the cap without a server id, and the signature and
struct-member writes then sent null data_type_ids. Both endpoints replace
the stored value in full, so this silently erased the portal's types, and
the edits were cleared as if they had gone up.

The cap now bounds each function's closure on its own, and the batch
passes the union of those closures to AnalysisDataTypesService.ensureTypes,
which de-duplicates without capping and already chunks its writes to the
endpoints' 100-type limit. Capping per function keeps the bound on a
single walk while making a function's ids independent of whatever else
shares its batch.

A reference that still has no id is never sent as null: a type
definition that would name one is withheld, and a function whose
signature or reachable types cannot be written in full is not sent. It
stays marked as unpushed and is reported like any other edit the portal
did not take (UnresolvedDataTypesException, classified REJECTED).

Test mocks that answered every create with a generic "pushed" type now
echo the requested types, since a signature naming unresolvable types is
no longer sent.
testUnrecognisedMatchingStatusStopsPolling waits for the dialog to see
CANCELLED. The dialog first sleeps its 2s poll interval, and Ghidra's
waitForCondition gives up after about the same time, so the test failed
on slow runners. It now uses a shared awaitCondition helper with a 30s
deadline.

awaitDialog also takes an optional failure message. The analysis error
dialog wait uses it again to say "the failed analysis should be reported".
…load

The plugin checked that the program was still attached only before the
load started. Loading makes several requests before it writes the
function IDs, so a Detach followed by Attach or Create new during those
requests still wrote the old analysis' IDs into the program.

The function info is now fetched before the load transaction opens,
and the service checks the attachment again before writing. If the
program was detached during the pull, the function IDs are removed and
the transaction is committed, not rolled back, because the Detach's own
change joined the same transaction. The plugin treats this as an
abandoned load, not a failed one.

Also from review: a stopped wait no longer passes its last log line to
the shared monitor, the deprecated checkCanceled honours a stop, the
shared monitor is updated on the Swing thread, logs for a closed
program are dropped, and a Cancel press now stops each running wait so
the shared monitor can be reset for the next one.
A function whose own closure is over the 500-type limit can never be
pushed: the types at the edge of the walk refer to ones it never
reached, so it is held back rather than written with null ids. The
limit stays, because it bounds the walk a single reactive edit can
trigger, but the reason now says so. UnresolvedDataTypesException
records whether the closure limit was the cause, and its message
names the limit instead of implying the portal gave no id.

A held-back function is an expected outcome, so the reactive push
logs it without a stack trace, and the sync backfill logs one summary
line with a few examples instead of one warning per function.

Adds a test for a single function over the limit: no null ids, no
partial struct write, no signature, and the edit stays marked. The
test mock's create answer now reuses CreatedDataTypes.echo.
Ghidra 12.2 removed the deprecated checkCanceled and clearCanceled, so the
wait monitor failed to compile there. Call and override only
clearCancelled and checkCancelled, which every supported version has.
…ra-staging-ci-flakes-turn-the-staging

fix(ENG-4588): stop staging CI flakes in dialog and sync tests
…ra-detach-during-a-running-staging

fix(ENG-4590): stop the analysis wait on Detach and close, ignore stale events
…eng-4589-ghidra-type-push-caps-the-closure-staging
ENG-4588 moved awaitDialog into RevEngMockableHeadedIntegrationTest while
ENG-4590 added a private copy to DetachDuringAnalysisTest. With both on
staging, the private static method clashes with the inherited one and
compileTestJava fails. The two are identical, so use the shared helper.
ENG-4588 moved awaitDialog into RevEngMockableHeadedIntegrationTest while
ENG-4590 added a private copy to DetachDuringAnalysisTest. With both on
staging, the private static method clashes with the inherited one and
compileTestJava fails. The two are identical, so use the shared helper.

(cherry picked from commit d5191b9)
The error-dialog tests still time out now and then on CI after a full 30s,
never locally. Print every thread's stack on a timeout so the next failure
shows where the work that leads to the dialog stopped.
Ghidra's EventManager drops an event fired while another of the same type
and name is being delivered, taking it for an event loop. The analysis
wait reports its status from a background thread, so on a slow machine
its first status (an Error or a Complete) could arrive while the Queued
event that started the wait was still being delivered, and was lost:
the failure was never reported, or the results never loaded. This is
what made the error-dialog tests time out on CI after a full 30s.

Fire status events from background threads with fireLater, which hands
them to the Swing thread to be fired once the current delivery is done.
The error-dialog tests still time out now and then on CI after a full 30s,
never locally. Print every thread's stack on a timeout so the next failure
shows where the work that leads to the dialog stopped.

(cherry picked from commit a6867d1)
Ghidra's EventManager drops an event fired while another of the same type
and name is being delivered, taking it for an event loop. The analysis
wait reports its status from a background thread, so on a slow machine
its first status (an Error or a Complete) could arrive while the Queued
event that started the wait was still being delivered, and was lost:
the failure was never reported, or the results never loaded. This is
what made the error-dialog tests time out on CI after a full 30s.

Fire status events from background threads with fireLater, which hands
them to the Swing thread to be fired once the current delivery is done.

(cherry picked from commit ad40ca3)
…ra-type-push-caps-the-closure-staging

fix(ENG-4589): never push a null data type id
…test-compile-staging

fix(ENG-4590): fix the staging test build and lost analysis status events
@vgoat21
vgoat21 marked this pull request as ready for review November 16, 2026 08:53
@vgoat21
vgoat21 requested a review from a team as a code owner November 16, 2026 08:53
Since the wait's statuses are fired after the current event delivery
(fireLater), the Queued a wait reported can arrive after the wait has been
cancelled and has ended. With the program no longer tracked,
AnalysisLogComponent took it for a new analysis and started another wait,
which cleared the cancel and polled on. This is what failed
testCancelledMonitoringUntracksProgram on the release PR.

Statuses a wait reports now carry their own source, and never start a
wait: only Start Analysis, reopening a program and the like do.
vgoat21 and others added 4 commits November 16, 2026 09:39
dorny/test-reporter creates its check run and updates it with the
results a moment later. That update intermittently 404s, because the new
check run is not visible to the API yet; continue-on-error keeps the job
green, but the check run stays in progress for good, so the PR never
shows all checks finished.

When the report step fails, find any 'Tests (Ghidra X)' check run for the
head commit that is not completed, retrying while it becomes visible, and
complete it with the outcome of the Run tests step. Look them up with
filter=all: with filter=latest the endpoint returned no runs at all for
two of the three stuck checks.
…lete-stuck-report-check-staging

ci(ENG-4588): complete a test report check the reporter left in progress
…e-wait-event-staging

fix(ENG-4588): don't let a late status from a cancelled wait resume it
@robertmarsal
robertmarsal merged commit 65eac79 into main Nov 16, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants