Repository navigation
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
|
TL;DR: I ran the new test file for this fix on current main. Both cases fail without the source change. Both pass with it. The one red check on GitHub is the PR-template check. ResultsI applied the PR's test changes and then its source changes onto current main (62bf098). Head is 41955b1. The PR's own base is older than main. Both halves applied cleanly.
Without the source change, both fail. The error says "Virtual address or string range is not file mapped". The ELF is a synthetic file built by the new fixture CI stateOn GitHub, the one failed check is "Validate author declaration". That is only the PR-template check, not a build or test failure. Real CI did run on this head. Its source tests, five test shards and static checks report success. Nine other runs show as cancelled. Not run
Thanks, chqcjq, for the fix and for the two-case test with a name-only control. Commands# in a copy of main at 62bf09809, Node 24, after npm ci and npm run build
git apply 3454.tests.diff
npm run test:focused -- tests/acceptance/rustGoSectionCli.test.ts # exit 1, 2 failed
git apply 3454.src.diff
npm run test:focused -- tests/acceptance/rustGoSectionCli.test.ts # exit 0, 2 passedTest setup🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
Thanks for the independent reproduction and validation. The current head now passes CI required and PR readiness, and GitHub reports no merge conflicts. Could a maintainer review this PR and let me know if any changes are needed before merging? The validation scope and remaining limitations are documented in the PR body. |
Summary
Fixes #3398. Rust dependency inspection now accepts an ELF with an unrelated nonallocated
.go.buildinfosection while preserving the original artifact identity.Problem and expected behavior
The existing shared ELF reader applies Go build-info mapping admission before Rust can decode
.dep-v0. On the affected base, a valid synthetic ELF succeeds when the extra section is named.extra, but the same bytes with.go.buildinfofail withinvalid_request/invalid_format: “Virtual address or string range is not file mapped”. Rust should not interpret that unrelated section as Go metadata.Change and scope
Distinguish the two existing ELF read purposes at the producing boundary. Rust requests section/container facts; the Go path retains its default build-info admission and mapping checks. This keeps one structural parser and avoids catching or suppressing generic container errors. The internal purpose is not a CLI/MCP option.
GoElfImage; forwarded byGoBinaryImageand selected byRustBinaryImage.Evidence and regression coverage
Executed on Windows with pinned Node 24.18.0 and locked dependencies:
invalid_request; Go inspection still rejects the invalid Go build-info mapping.Validation performed
npm run test:focused -- tests/acceptance/rustGoSectionCli.test.ts tests/acceptance/rustBinaryCli.test.ts tests/acceptance/goBinaryCli.test.ts tests/boundary/rust/rustBinaryImage.test.ts tests/boundary/go/goBinaryImage.test.ts tests/boundary/go/goBinaryMappings.test.ts tests/boundary/go/goBinaryProvider.test.ts tests/boundary/mcp/rustBinaryMcp.test.ts— 156 passed, 2 skipped.npm run checkandnpm run check:ci— pass; typecheck, lint, format, knip, metadata, duplication and architecture guards succeed.npm run docs:check— pass.npm run verify:test-discovery— all 1,274 test files discovered exactly once.Local source/diff review traced structural parsing, Go-specific admission, Rust dependency decoding, typed failures, and artifact identity. Fixtures are authored synthetic binaries; no compiler-produced Rust/Go binary or Linux/macOS runtime was exercised, and the full repository test suite was not run.
Review follow-up
Commit
d97e4b0f9addresses Greptile'sWrong rejection still passesfinding. Both CLI and stdio MCP now parse the complete typed Go error and assertinvalid_formatwith the mapping-specific diagnosticVirtual address or string range is not file mapped. The name-only.extracontrol also succeeds as Go withbuild_info: null, preventing unrelated rejections from satisfying the regression.Executed for this follow-up: the two public adapter tests pass;
npm run check:ciand normal pre-pushcheck:fastpass. Only the regression test changed; production behavior remains the original fix. The earlier 156-test run above is historical validation of the original revision.Latest CI integration validation
Synced this branch with main
eab789aed. Both lint task cache inputs now include checker-consumed code under.github, correcting the CI inventory failure caused by the publishing-action files.Commit
41955b140addresses the valid review finding that the previous test-side path conversion could hide incorrect saved report paths. The test again asserts the raw report names. The report writer now normalizes both absolute paths to the same Windows namespace before computing relative paths; clone locations and threshold handling are preserved. Restoring the strict assertion reproduced absolute//?/C:/...names before the writer fix, and the unchanged assertion passes after it.Executed for this correction: 2 files / 10 tests (CLI/MCP Go-error controls and static-check reports) pass;
npm run check:ciand normal pre-push checks pass. New-head remote CI is pending. Earlier validation above applies to its stated revisions; native runtime checks were not repeated for this CI/reporting correction.Author readiness
Human owner: @chqcjq
The human owner's readiness declarations are recorded above.