-
Notifications
You must be signed in to change notification settings - Fork 244
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
Use a single listener for all timeout fixture invocations #12426
Use a single listener for all timeout fixture invocations #12426
Conversation
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the timeout listener setup used in integration tests to employ a single static listener instance, improving resource utilization and consistency.
- The Python test initialization now sets global defaults and initializes the singleton listener.
- The Java listener has been refactored to use static fields and includes a static initializer and unregister logic.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
integration_tests/src/main/python/spark_init_internal.py | Introduces global default timeout settings and adjusts the timeout fixture to use these defaults. |
integration_tests/src/main/java/org/apache/spark/rapids/tests/TimeoutSparkListener.java | Refactors TimeoutSparkListener into a singleton with static fields and methods to manage listener registration and timeout settings. |
integration_tests/src/main/java/org/apache/spark/rapids/tests/TimeoutSparkListener.java
Outdated
Show resolved
Hide resolved
…TimeoutSparkListener.java Co-authored-by: Copilot <[email protected]>
integration_tests/src/main/java/org/apache/spark/rapids/tests/TimeoutSparkListener.java
Show resolved
Hide resolved
integration_tests/src/main/java/org/apache/spark/rapids/tests/TimeoutSparkListener.java
Outdated
Show resolved
Hide resolved
build |
Signed-off-by: Gera Shegalov <[email protected]>
build |
CI hitting SIGSEGV which affects other PRs is unrelated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
build |
Resolves #12413
Resolves #12408
static
Verified that the number of threads grows linearly without this PR and stays flat with this PR using