-
Notifications
You must be signed in to change notification settings - Fork 564
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
Fix ArrayOutOfBounds / collection has wrong type errors by raising an incident #9178
Conversation
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.
@pihme thank you for fixing the issue 👍
I just have a few suggestions and one concern about the test. But I like the direction.
I highly recommend testing the behavior manually (if not already done). A manual test can discover odd behaviors sometimes easier than our tests.
...src/main/java/io/camunda/zeebe/engine/processing/bpmn/behavior/OutputCollectionBehavior.java
Outdated
Show resolved
Hide resolved
...src/main/java/io/camunda/zeebe/engine/processing/bpmn/behavior/OutputCollectionBehavior.java
Outdated
Show resolved
Hide resolved
...src/main/java/io/camunda/zeebe/engine/processing/bpmn/behavior/OutputCollectionBehavior.java
Outdated
Show resolved
Hide resolved
...src/main/java/io/camunda/zeebe/engine/processing/bpmn/behavior/OutputCollectionBehavior.java
Outdated
Show resolved
Hide resolved
.../main/java/io/camunda/zeebe/engine/processing/bpmn/container/MultiInstanceBodyProcessor.java
Outdated
Show resolved
Hide resolved
...test/java/io/camunda/zeebe/engine/processing/bpmn/behavior/OutputCollectionBehaviorTest.java
Outdated
Show resolved
Hide resolved
engine/src/test/java/io/camunda/zeebe/engine/processing/incident/MultiInstanceIncidentTest.java
Outdated
Show resolved
Hide resolved
engine/src/test/java/io/camunda/zeebe/engine/processing/incident/MultiInstanceIncidentTest.java
Show resolved
Hide resolved
@saig0 Incorporated most of your suggestions. Regarding your rephrasing suggestions I took some liberties. Two are still open for discussion, clarification. |
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.
Feel free to merge when you're ready. The major points are solved 👍
We discussed that
- we want to merge the two cases in the incident test to avoid duplication
- we could keep the unit mock test (if you prefer) with the assumption that it would help us to root cause issues.
bors merge |
9178: Fix ArrayOutOfBounds / collection has wrong type errors by raising an incident r=pihme a=pihme ## Description * Move updating of outbound collection into behavior class * Some refactorings (mostly renames) * Check for index out of bounds, implement tests for it * Check for outbound collection is not an array, implement tests for it ## Related issues closes #9143 Co-authored-by: pihme <pihme@users.noreply.github.com>
Build failed: |
- also rename variables to be more descriptive
- also change variables in tests, which had been confused
…cess to outbound collection
bors merge |
9178: Fix ArrayOutOfBounds / collection has wrong type errors by raising an incident r=pihme a=pihme ## Description * Move updating of outbound collection into behavior class * Some refactorings (mostly renames) * Check for index out of bounds, implement tests for it * Check for outbound collection is not an array, implement tests for it ## Related issues closes #9143 Co-authored-by: pihme <pihme@users.noreply.github.com>
bors cancel |
Canceled. |
bors merge |
9178: Fix ArrayOutOfBounds / collection has wrong type errors by raising an incident r=pihme a=pihme ## Description * Move updating of outbound collection into behavior class * Some refactorings (mostly renames) * Check for index out of bounds, implement tests for it * Check for outbound collection is not an array, implement tests for it ## Related issues closes #9143 Co-authored-by: pihme <pihme@users.noreply.github.com>
Build failed: |
bors merge |
Successfully created backport PR #9228 for |
Successfully created backport PR #9229 for |
This PR fixed also the issue #6953. |
Description
Related issues
closes #9143
closes #6953
Definition of Done
Code changes:
backport stable/1.3
) to the PR, in case that fails you need to create backports manually.Testing:
Documentation: