[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Tune test suite timeout #17096

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Tune test suite timeout #17096

merged 1 commit into from
Dec 3, 2024

Conversation

mfussenegger
Copy link
Member
@mfussenegger mfussenegger commented Dec 3, 2024
  • Increase it to 30 minutes if triggered with jdwp (=debugger) active
  • Lower it a bit for regular runs

- Increase it to 30 minutes if triggered with jdwp (=debugger) active
- Lower it a bit for regular runs
public Timeout globalTimeout = ManagementFactory.getRuntimeMXBean().getInputArguments().stream()
.anyMatch(s -> s.contains("-agentlib:jdwp"))
? new Timeout(30, TimeUnit.MINUTES)
: new Timeout(3, TimeUnit.MINUTES);
Copy link
Member

Choose a reason for hiding this comment

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

just curious: any reason to lower it?

Copy link
Member Author

Choose a reason for hiding this comment

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

In #16964 I made some changes that led to lots of test timeouts and if each suite is stuck for 5 minutes it takes ages to get the results and see which tests are having issues.

I even lowered it to 20sec on the branch to get results within a reasonable amount of time but based on the slow test case durations on https://wacklig.pipifein.dev/github/crate/crate and accounting for slower github actions that would be too low.

I'm thinking ideally we'd set a lower default and override in test suites as needed. That would also help us get a bit more conscious about test speed (and regressions in that regard) but I didn't want to open that box right now.

Copy link
Member Author

Choose a reason for hiding this comment

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

We should probably also do the same jdwp trick for the statement timeout used on execute. Avoids running into timeouts when you're too slow stepping through the code.

@mfussenegger mfussenegger added the ready-to-merge Let Mergify merge the PR once approved and checks pass label Dec 3, 2024
@mfussenegger mfussenegger merged commit 62dbd43 into master Dec 3, 2024
14 of 16 checks passed
@mfussenegger mfussenegger deleted the j/test-timeout branch December 3, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Let Mergify merge the PR once approved and checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants