You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: fix hanging resource limits test with proper mocking
The `test_resource_limits_set` unit test was previously setting resource limits (such as a 100MB memory cap) on the test runner process itself, rather than the isolated subprocess. This caused the CI runner (e.g., GitHub Actions) to starve for resources and hang or crash.
This change fixes the issue by scoping the `setrlimit` mock correctly and adds a safety mechanism to prevent future regressions from bringing down CI.
Co-authored-by: Liang Wu <wuliang@google.com>
PiperOrigin-RevId: 895565166
0 commit comments