Skip to content

Conversation

@fmeum
Copy link
Collaborator

@fmeum fmeum commented Jan 17, 2026

The test case that verifies stack trace printing for SIGTERM during suite setup failed and is fixed by moving the installation of signal handlers to main.

A follow-up change will extend the stack trace logic as well as the test to record stack traces of virtual threads.

Work towards #28302

The test case that verifies stack trace printing for SIGTERM during suite setup failed and is fixed by moving the installation of signal handlers to main.
@fmeum fmeum force-pushed the fix-stack-trace-integration-test branch from 9f9c965 to 26f8efb Compare January 17, 2026 18:13
@fmeum fmeum changed the title Add missing test target for stack_traces_integration_tests.sh Add and fix test target for stack_traces_integration_tests.sh Jan 17, 2026
@fmeum fmeum marked this pull request as ready for review January 17, 2026 18:38
@github-actions github-actions bot added team-Rules-Java Issues for Java rules awaiting-review PR is awaiting review from an assigned reviewer labels Jan 17, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly moves the SIGTERM signal handler installation to the beginning of the main method. This ensures that stack traces are printed even if the test process is terminated during test suite creation. The changes also include removing the now-redundant JUnit4TestStackTraceListener and updating the integration tests to verify the new behavior. My review includes suggestions to improve the reliability of the integration tests by replacing fixed sleep calls with a polling mechanism, which will help prevent test flakiness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Rules-Java Issues for Java rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant