Skip to content

Conversation

@hjmjohnson
Copy link
Contributor

@hjmjohnson hjmjohnson commented Dec 19, 2025

The cmd.fbracket-depth test intentionally uses a large amount of stack
space. With MSVC tools, the -STACK:10000000 link flag is required.
However, GitHub Actions imposes a lower stack size limit. Label the
test so it can be excluded.

Original Description

Followup on commit 5f551bd to ensure that the stack size linkage flag is respected.

Github CI appears to have a smaller default stack size than typical MSVC environments.

  1. Flag should be /STACK:### instead of -STACK:###

  2. The test cmd.fbracket-depth can be forced to fail by setting
    CMAKE_EXE_LINKER_FLAGS to /STACK:100

  3. Additionally, CMAKE_EXE_LINKER_FLAGS needs to be set with CACHE
    for the value to persist into the CMakeCache.txt. Without set(CACHE)
    statement, the CMakeCache.txt did not include the requested
    /STACK:###

@hjmjohnson
Copy link
Contributor Author

@thewtex @bradking

I think this fix to CastXML will fix the CI failure on CastXMLSuperbuild.

@hjmjohnson
Copy link
Contributor Author

See build test with CastXMLSuperbuild:

@hjmjohnson hjmjohnson force-pushed the 216-Followup-MSVC-fix branch 2 times, most recently from 326d18e to 60944e0 Compare December 20, 2025 16:52
@hjmjohnson
Copy link
Contributor Author

hjmjohnson commented Dec 20, 2025

@bradking @thewtex This PR allows targeted exclusion of the test that is incompatible with the github CI infrastructure.

@hjmjohnson
Copy link
Contributor Author

@bradking bradking changed the title test: Increase default stack size on MSVC to make CI pass test: Label tests requiring a large stack size Jan 5, 2026
The `cmd.fbracket-depth` test intentionally uses a large amount of stack
space.  With MSVC tools, the `-STACK:10000000` link flag is required.
However, GitHub Actions imposes a lower stack size limit.  Label the
test so it can be excluded.
@bradking bradking force-pushed the 216-Followup-MSVC-fix branch from 60944e0 to 084ccfc Compare January 5, 2026 21:12
bradking added a commit that referenced this pull request Jan 5, 2026
084ccfc test: Label tests requiring a large stack size

Pull-request: #295
@bradking bradking merged commit 7bac7e8 into CastXML:master Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants