Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Box::pin(run()) and 2MB test stack #4851

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

konstin
Copy link
Member

@konstin konstin commented Jul 6, 2024

By using Box::pin(run()) we can reduce the artificial stack size for running tests on windows in debug mode from 8MB to 2MB. I've checked and 1MB/no custom stack size still fail tests, e.g. add_workspace_editable.

By using `Box::pin(run())` we can reduce the artificial stack size for running tests on windows in debug mode from 8MB to 2MB. I've checked and 1MB/no custom stack size still fail tests, e.g. `add_workspace_editable`.
@konstin konstin added internal A refactor or improvement that is not user-facing windows Specific to the Windows platform labels Jul 6, 2024
@konstin konstin requested a review from ibraheemdev July 6, 2024 21:03
Copy link
Member

@ibraheemdev ibraheemdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Maybe we should add a comment explaining why this is necessary?

@charliermarsh charliermarsh merged commit a76d04b into main Jul 8, 2024
49 checks passed
@charliermarsh charliermarsh deleted the konsti/box-pin-run-and-decrease-test-stack-size branch July 8, 2024 00:50
@charliermarsh
Copy link
Member

I need this as some of my PRs are now failing due to stack size. Hope that's cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal A refactor or improvement that is not user-facing windows Specific to the Windows platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants