Repository navigation
AV lint: record the sd.cpp missing-DLL probe test's python.exe copy - #16108
Merged
Merged
Conversation
#16031's Windows-only test copies python.exe away from pythonXY.dll so a real loader failure can be checked; the AV shapes lint reads it as AV009 and every PR's lint and CPU shards fail on it. The console stub links nothing and would start, so the copy stays and is recorded with its reason.
Member
Author
|
@codex review |
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. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Since #16031 (test-launch sd.cpp binaries without the Windows missing-DLL box), the AV shapes lint finds a new error on main. Every PR's
Source lintjob and thetest_lint_av_shapes.py::test_the_repository_is_clean_against_its_baselinetest in the CPU shards fail on it, for example on #16018 and #15994:test_a_real_binary_missing_its_dll_is_reported_unrunnablecopiespython.exeintotmp_pathassd-server.exe, away frompythonXY.dll, and cutsPATHto System32. The result is a real PE whose loader fails withSTATUS_DLL_NOT_FOUND, the same failure as an sd.cpp ROCm build without HIP. The lint's suggested replacement,windows_console_stub.py, links nothing and starts fine, so it cannot produce that failure. The copy has to stay. The lint documents this route for that case: the finding is recorded inscripts/av_shapes_baseline.jsonwith the reason. The entry carries the digest of that one line, so any other copy in the file is still a new error.I did not use
--update. It would also have pruned many unrelated stale entries across the baseline. This adds the one group (9 lines).The CI message also prints an AV010 warning for
.github/workflows/studio-tauri-smoke.yml:374first, but warnings do not fail the check. With only this entry added, the test passes.Verification
python scripts/lint_av_shapes.py:1 new error(s)on main,0 new errorshere.tests/security/test_lint_av_shapes.py::test_the_repository_is_clean_against_its_baseline: fails on main on the AV009 line, passes here. The rest of the file passes (19 passed).--self-teststill passes, since the lint is unchanged.