[php-src] PR #17166: Reduce excessive stack reserve for testing in CI
| From: | cmb69 | Date: | Sun, 15 Dec 2024 13:09:31 +0000 |
| Subject: | [php-src] PR #17166: Reduce excessive stack reserve for testing in CI | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30011@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17166
Author: cmb69
For some reason the stack reserve of php.exe and php-cgi.exe is very large on Windows (64MB)[1].
While this might not be bad for production purposes, it causes stack_limit_014.phpt to be unbearably
slow; the test may easily run for a minute, and due to a recent
stream_select()
improvement[2], that can cause a timeout, what triggers the test to be run again. So this single
test case may run for two minutes, and still might fail (happened a couple of times).
Instead of skipping the test in CI, we reduce the stack reserve to 8MB, what improves the
performance of this test case (and maybe others), and should still be good enough for CI.
[1] <https://github.com/php/php-src/commit/54906c760fb578079b6783a2aa4184372a3179d3>
[2] <https://github.com/php/php-src/commit/b614b4a69ae7bab13c39af2f4a01dea846dfa307>