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

Fix ArrayOutOfBounds / collection has wrong type errors by raising an incident #9178

Merged
merged 13 commits into from
Apr 26, 2022

Conversation

pihme
Copy link
Contributor

@pihme pihme commented Apr 20, 2022

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
closes #6953

Definition of Done

Code changes:

  • The changes are backwards compatibility with previous versions
  • If it fixes a bug then PRs are created to backport the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. backport stable/1.3) to the PR, in case that fails you need to create backports manually.

Testing:

  • There are unit/integration tests that verify all acceptance criterias of the issue
  • New tests are written to ensure backwards compatibility with further versions
  • The behavior is tested manually
  • The change has been verified by a QA run
  • The impact of the changes is verified by a benchmark

Documentation:

  • The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.)
  • New content is added to the release announcement
  • If the PR changes how BPMN processes are validated (e.g. support new BPMN element) then the Camunda modeling team should be informed to adjust the BPMN linting.

@pihme pihme requested a review from saig0 April 20, 2022 10:15
@pihme pihme changed the title 9143 fix Fix ArrayOutOfBounds / collection has wrong type errors by raising an incident Apr 20, 2022
Copy link
Member

@saig0 saig0 left a 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.

@pihme
Copy link
Contributor Author

pihme commented Apr 25, 2022

@saig0 Incorporated most of your suggestions. Regarding your rephrasing suggestions I took some liberties.

Two are still open for discussion, clarification.

@saig0 saig0 self-requested a review April 26, 2022 08:39
Copy link
Member

@saig0 saig0 left a 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.

@pihme
Copy link
Contributor Author

pihme commented Apr 26, 2022

bors merge

zeebe-bors-camunda bot added a commit that referenced this pull request Apr 26, 2022
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>
@zeebe-bors-camunda
Copy link
Contributor

Build failed:

@pihme
Copy link
Contributor Author

pihme commented Apr 26, 2022

bors merge

zeebe-bors-camunda bot added a commit that referenced this pull request Apr 26, 2022
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>
@pihme
Copy link
Contributor Author

pihme commented Apr 26, 2022

bors cancel

@zeebe-bors-camunda
Copy link
Contributor

Canceled.

@pihme
Copy link
Contributor Author

pihme commented Apr 26, 2022

bors merge

zeebe-bors-camunda bot added a commit that referenced this pull request Apr 26, 2022
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>
@zeebe-bors-camunda
Copy link
Contributor

Build failed:

@pihme
Copy link
Contributor Author

pihme commented Apr 26, 2022

bors merge

@zeebe-bors-camunda
Copy link
Contributor

@github-actions
Copy link
Contributor

Successfully created backport PR #9228 for stable/1.3.

@github-actions
Copy link
Contributor

Successfully created backport PR #9229 for stable/8.0.

zeebe-bors-camunda bot added a commit that referenced this pull request Apr 27, 2022
9229: [Backport stable/8.0] Fix ArrayOutOfBounds / collection has wrong type errors by raising an incident r=pihme a=github-actions[bot]

# Description
Backport of #9178 to `stable/8.0`.

relates to #9143

Co-authored-by: pihme <pihme@users.noreply.github.com>
zeebe-bors-camunda bot added a commit that referenced this pull request Apr 27, 2022
9228: [Backport stable/1.3] Fix ArrayOutOfBounds / collection has wrong type errors by raising an incident r=pihme a=github-actions[bot]

# Description
Backport of #9178 to `stable/1.3`.

relates to #9143

Co-authored-by: pihme <pihme@users.noreply.github.com>
@saig0
Copy link
Member

saig0 commented May 19, 2022

This PR fixed also the issue #6953.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants