Repository navigation
Conversation
tests/test_wb_shadow_remake.py (NotRexed#2767) compiles a fixture that reads the environment through gpu/vk/compat/hookshot_env.h and getenv. With MSVC's headers getenv is deprecated, and under the check's -Werror that is an error, so the Windows part 2/2 of the Python source checks has failed on main since the merge (3 errors, all "'getenv' is deprecated"). Linux was never affected. Pass -D_CRT_SECURE_NO_WARNINGS on the fixture's command line, as 34 other checks already do. Nothing else changes; the fixture and its assertions are untouched. Assisted-by: Claude Fable 5.2 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 12, 2026
Contributor
Author
|
Closing: #2883 has merged the same one-flag fix for this test ( |
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.
What this is for:
tests/test_wb_shadow_remake.py(added by #2767) does not compile on Windows, so part 2/2 of the Windows Python source checks is red on main and on every pull request merged with it. What is measured: the same check on Windows, in the project's own workflow, before and after; Linux with two compilers. Not measured: nothing else changes, so nothing else was run.Problem
The check's fixture reads the environment through
gpu/vk/compat/hookshot_env.handgetenv. With MSVC's headersgetenvis deprecated, and the check compiles with-Werror:Linux never showed it. Main's own runs have been cancelled by the next merge all day, so no completed run of main shows it either; I found it in the Windows log of a docs-only pull request (#2778).
What changed
One flag on the fixture's command line:
-D_CRT_SECURE_NO_WARNINGS, which 34 other checks already pass. The fixture and its assertions are untouched.How it was tested
tests/test_wb_shadow_remake.pypasses (1.1 s) and Windows part 2/2 is green. Without it, the same job fails on this test alone: #2778's run.That fork run still shows red in three other jobs. Both failing tests there are main's own and have fixes open:
test_program_cache_one_variant.py(#2861) andtest_readme_menu_rows.py(#2857). With those two and this one, main's source checks are green again.Assisted-by: Claude Fable 5.2
Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com