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

Add GlobalTimeoutExtension and use it in specs #1986

Merged
merged 6 commits into from
Aug 19, 2024

Conversation

leonard84
Copy link
Member

Also, use virtual threads for the timeout monitoring thread if available

Also, use virtual threads for the timeout monitoring thread if available
@leonard84 leonard84 self-assigned this Aug 16, 2024
@leonard84 leonard84 added this to the 2.4-M5 milestone Aug 16, 2024
@@ -323,6 +322,11 @@ class TimedSpec extends Specification {

@Timeout(value = 250, unit = MILLISECONDS)
def "I fail much faster"() { ... }

Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it be better to convert that example into a real test, to be sure that the example is "working" at least syntactically.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but in a separate PR. I'd like to get this merged soon to hopefully trace the hanging builds we've seen.

docs/extensions.adoc Outdated Show resolved Hide resolved
docs/release_notes.adoc Outdated Show resolved Hide resolved
spock-specs/SpockTestConfig.groovy Show resolved Hide resolved
AndreasTu
AndreasTu previously approved these changes Aug 18, 2024
Copy link
Member

@AndreasTu AndreasTu left a comment

Choose a reason for hiding this comment

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

Thank you for the feature!

AndreasTu
AndreasTu previously approved these changes Aug 19, 2024
@leonard84 leonard84 enabled auto-merge (squash) August 19, 2024 12:23
@leonard84
Copy link
Member Author

😬 https://github.com/spockframework/spock/actions/runs/10452252979/job/28940316954?pr=1986 is already running 1h+. Either we need to add it to fixtures too, or the problem lies somewhere in-betwee.

@leonard84
Copy link
Member Author

@AndreasTu, thanks for the review. Could you approve the last commit?

@leonard84
Copy link
Member Author

Same job is stuck again, looks like it wasn't the fixtures either 😞

@leonard84 leonard84 merged commit 177821c into master Aug 19, 2024
43 of 44 checks passed
@leonard84 leonard84 deleted the global-timeout-extension branch August 19, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants