Skip to content

fix(ci): use an available command for the Ghidra probe marker - #6400

Merged
gensokyo-dev merged 2 commits into
mainfrom
codex/fix-ghidra-probe-marker
Oct 23, 2026
Merged

gensokyo-dev merged 2 commits into
mainfrom
codex/fix-ghidra-probe-marker

Conversation

@morluto

@morluto morluto commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

The ARM/Thumb probe completes successfully, but main's Ghidra CI lane then exits 127 because the runner has no rg. Use the runner's standard grep -F for the same exact success marker. This is a workflow dependency correction; provider behavior, fixture bytes, authority and cleanup are unchanged.

This existing PR was refreshed from main f850b7c894fa5cba370092a3ad9ca3df899d6d6f, after merging #6431, while preserving its original commit history. Its complete diff against current main remains one line.

Validation executed on head 27177e46f:

  • The original failing main Ghidra 12.1.4 log contains REA_ARM_CONTEXT_OK arm=0 thumb=1 unavailable=null (injected provider value) before the missing-command failure.
  • Executed the actual workflow shell under a PATH with mkdir, timeout, cat, grep and no rg, using a controlled headless executable replaying that captured log: baseline exits 127; fixed exits 0. Missing marker, wrong Thumb context, and a failed producer that still prints the marker all exit 1. These five controls verify the shell gate, not real-engine execution.
  • node scripts/run-exact-tests.mjs run tests/boundary/filesystem/ghidraBridgeSources.test.ts tests/boundary/filesystem/workflowActionPinning.test.ts --maxWorkers=1: 17 passed across two files. On one CPU: 3.984 s elapsed, 3.953 s user+system CPU, peak sampled process-family RSS 380.3 MiB (100 ms sampling; shared pages may double-count and short-lived/reparented children may be missed). No speedup claim; agent token costs were not measured.
  • Targeted oxfmt --check and git diff --check origin/main: pass.
  • Current-head hosted Ghidra and CI validation passed, including static checks, the portable gate, the real Ghidra lane and CI required: CI run. The earlier run 39895697798 was cancelled because its event retained the old PR base and selected 199 unrelated existing-main changes. The PR base was explicitly refreshed, its API and Git diffs now both contain exactly the one-line workflow fix, and reopening generated a fresh event without an empty source commit.

Ordinary CI maintenance; no new capability or maintainer scope decision is required. No separate issue is needed because the failing main CI run is the report. No retries, timeouts, assertions or coverage were relaxed.

Actual engine verification on this head completed successfully before the broad run was cancelled: Ghidra job, Ghidra 12.1.4 / javac 21.0.12.1, nine bridge sources compiled, real ARM=0 / Thumb=1 and injected-null checks passed, with the replacement grep -F accepting the result. This is an individual passing lane, not a claim that the cancelled overall run passed.

Author readiness

Human owner: @gensokyo-dev

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

The human maintenance owner explicitly accepted ownership and declared all three readiness items after the final diff and executed validation were presented. Codex review completed on 27177e46f with no findings.

@gensokyo-dev

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T03:49:30.912820Z 27177e4 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 27177e46fb

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@gensokyo-dev
gensokyo-dev marked this pull request as ready for review October 23, 2026 03:48
@greptile-apps

greptile-apps Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This one-line workflow correction appears safe to merge.

Summary

Replaces rg -F with grep -F in the Ghidra workflow, removing the unavailable-command dependency without changing the success marker.

  • The Ghidra CI check finds its success marker with grep.

Reviews (1) · Last reviewed commit: "chore(ci): refresh Ghidra probe fix agai..." · Reviewed by Greptile

@gensokyo-dev
gensokyo-dev merged commit e32a049 into main Oct 23, 2026
71 of 94 checks passed
@gensokyo-dev
gensokyo-dev deleted the codex/fix-ghidra-probe-marker branch October 23, 2026 03:51
@morluto morluto added area: build Build, CI, packaging, and publishing bug Something isn't working provider: ghidra Analysis provider / engine: ghidra labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing bug Something isn't working provider: ghidra Analysis provider / engine: ghidra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants