-
Notifications
You must be signed in to change notification settings - Fork 2
Run execution timeout #9
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
base: master
Are you sure you want to change the base?
Run execution timeout #9
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 6
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
jbehave-core/src/main/java/org/jbehave/core/embedder/DelegatingEmbedderMonitor.java (1)
167-200: Delegate the new run-timeout callbacks.By swallowing
runTimeout/usingRunTimeoutinstead of forwarding them, every delegate monitor misses the notification, effectively disabling the feature for the standard delegating setup. Please keep the delegation consistent with the rest of the class.@Override public void runTimeout(String name, RunDuration runDuration) { - // do nothing + delegates.forEach(d -> d.runTimeout(name, runDuration)); } ... @Override public void usingRunTimeout(String name, long timeout) { - // do nothing + delegates.forEach(d -> d.usingRunTimeout(name, timeout)); }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (8)
jbehave-core/src/main/java/org/jbehave/core/embedder/DelegatingEmbedderMonitor.java(3 hunks)jbehave-core/src/main/java/org/jbehave/core/embedder/EmbedderControls.java(3 hunks)jbehave-core/src/main/java/org/jbehave/core/embedder/EmbedderMonitor.java(3 hunks)jbehave-core/src/main/java/org/jbehave/core/embedder/NullEmbedderMonitor.java(3 hunks)jbehave-core/src/main/java/org/jbehave/core/embedder/PrintingEmbedderMonitor.java(3 hunks)jbehave-core/src/main/java/org/jbehave/core/embedder/StoryManager.java(6 hunks)jbehave-core/src/main/java/org/jbehave/core/model/RunDuration.java(1 hunks)jbehave-maven-plugin/src/main/java/org/jbehave/mojo/AbstractEmbedderMojo.java(3 hunks)
🧰 Additional context used
🧬 Code graph analysis (6)
jbehave-core/src/main/java/org/jbehave/core/embedder/DelegatingEmbedderMonitor.java (1)
jbehave-core/src/main/java/org/jbehave/core/model/RunDuration.java (1)
RunDuration(6-39)
jbehave-core/src/main/java/org/jbehave/core/embedder/PrintingEmbedderMonitor.java (1)
jbehave-core/src/main/java/org/jbehave/core/model/RunDuration.java (1)
RunDuration(6-39)
jbehave-core/src/main/java/org/jbehave/core/embedder/StoryManager.java (1)
jbehave-core/src/main/java/org/jbehave/core/model/RunDuration.java (1)
RunDuration(6-39)
jbehave-core/src/main/java/org/jbehave/core/embedder/EmbedderMonitor.java (1)
jbehave-core/src/main/java/org/jbehave/core/model/RunDuration.java (1)
RunDuration(6-39)
jbehave-maven-plugin/src/main/java/org/jbehave/mojo/AbstractEmbedderMojo.java (1)
jbehave-core/src/main/java/org/jbehave/core/model/RunDuration.java (1)
RunDuration(6-39)
jbehave-core/src/main/java/org/jbehave/core/embedder/NullEmbedderMonitor.java (1)
jbehave-core/src/main/java/org/jbehave/core/model/RunDuration.java (1)
RunDuration(6-39)
jbehave-core/src/main/java/org/jbehave/core/embedder/EmbedderControls.java
Show resolved
Hide resolved
jbehave-core/src/main/java/org/jbehave/core/embedder/EmbedderControls.java
Outdated
Show resolved
Hide resolved
jbehave-core/src/main/java/org/jbehave/core/embedder/EmbedderControls.java
Show resolved
Hide resolved
jbehave-core/src/main/java/org/jbehave/core/embedder/EmbedderControls.java
Show resolved
Hide resolved
jbehave-core/src/main/java/org/jbehave/core/embedder/StoryManager.java
Outdated
Show resolved
Hide resolved
jbehave-core/src/main/java/org/jbehave/core/model/RunDuration.java
Outdated
Show resolved
Hide resolved
jbehave-core/src/main/java/org/jbehave/core/embedder/EmbedderMonitor.java
Outdated
Show resolved
Hide resolved
jbehave-core/src/main/java/org/jbehave/core/embedder/StoryManager.java
Outdated
Show resolved
Hide resolved
|
|
||
| public class RunDuration { | ||
| private final long timeoutInSecs; | ||
| private final Map<String, Long> inProgressStories = new HashMap<>(); |
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.
why is it needed to track?
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.
to have ability to stop execution of batch and interrupt not finished story
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.
but it's managed in StoryManager, is not it?
f0f552d to
7dd3ba5
Compare
7dd3ba5 to
cc5273d
Compare
Summary by CodeRabbit