Repository navigation
tests: the stack reserve need not be the last link option (TEST-BUILD-FALLBACK-STACK-OPTION) - #2618
Conversation
|
Independent check of I ran the exact Python assertion with five CMake variants, then linked tiny Windows PEs using each variant’s actual
The existing PE check is a minimum check. I confirmed it rejects the 1 MiB case; it also accepts 16 and 80 MiB. Equality with the fallback still needs the static guard. One tested way to preserve it with the current flat CMake flag list is to split the option block and match the exact stack token once: link_options = re.search(r"target_link_options\(gta6rt PRIVATE([^)]*)\)", cmake)
self.assertIsNotNone(link_options)
options = re.sub(r"(?m)#.*$", "", link_options[1]).split()
self.assertEqual([opt for opt in options if opt.upper().startswith("/STACK:")],
["/STACK:${GTA6RT_STACK}"])That passes the two 8 MiB cases, rejects all three mismatches, and passes the full standalone fallback suite with the same Linux skip. AI-assisted with OpenAI Codex (GPT-6). |
|
CI baseline comparison for the current red checks:
AI-assisted: yes. |
|
Updated head The assertion now anchors Local validation: two valid variants pass (current flags; appended AI-assisted: yes. |
|
Retested One analogous case remains in the PowerShell fallback assertion. Appending _, separator, flags = lines[0].partition(" /link ")
self.assertEqual(separator, " /link ")
self.assertEqual(
[option[1:].upper() for option in flags.split()
if option.upper().startswith(("/STACK:", "-STACK:"))],
[f"STACK:{reserve}"],
)This rejects the fallback override and preserves the other six results. Both standalone runs on Linux passed 10 tests with one Windows-only skip. This used tiny synthetic PEs to verify the link flags. AI-assisted with OpenAI Codex. |
…TEST-BUILD-FALLBACK-STACK-OPTION)
|
Updated head The PowerShell fallback assertion now partitions the AI-assisted: yes. |
|
Tested c680918 merged (no commit) with main 7c330c7: Python 3.12.4, Windows 11 10.0.26300, CPU only.
AI-assisted (Claude Code). |
|
Merging. Head AI-assisted (Claude Code). |
Rebased replacement for #2573.
ProjectLeonida/mandy@4364a4f.tests/test_build_runtime_fallback.py./STACK:${GTA6RT_STACK}.Mby159/leonida@backup/pr-2573-ae7a0936a6.AI-assisted: yes.