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

Remove dead code #10977

Merged
merged 1 commit into from
Nov 11, 2022
Merged

Remove dead code #10977

merged 1 commit into from
Nov 11, 2022

Conversation

Zelldon
Copy link
Member

@Zelldon Zelldon commented Nov 11, 2022

Description

Remove all unused/dead code from the old StreamProcessorRules, after migrating tests to the StreamPlatformExtension.

Be aware the rules are still necessary since they are used by the EngineRule and tests.

Related issues

closes #10455

Definition of Done

Not all items need to be done depending on the issue and the pull request.

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.)
  • 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.

Please refer to our review guidelines.

Remove all unused/dead code after migrating tests to the StreamPlatformExtension
@github-actions
Copy link
Contributor

Test Results

   784 files   -    169     784 suites   - 169   1h 32m 28s ⏱️ - 7m 56s
6 253 tests  - 1 464  6 245 ✔️  - 1 465  7 💤 ±0  1 +1 
6 428 runs   - 1 488  6 418 ✔️  - 1 489  9 💤 ±0  1 +1 

For more details on these failures, see this check.

Results for commit d631229. ± Comparison against base commit fab118d.

@Zelldon
Copy link
Member Author

Zelldon commented Nov 11, 2022

Flaky test #10978

Copy link
Member

@lenaschoenburg lenaschoenburg left a comment

Choose a reason for hiding this comment

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

Well, that is easy to review :) LGTM 👍

@Zelldon
Copy link
Member Author

Zelldon commented Nov 11, 2022

bors r+

@zeebe-bors-camunda
Copy link
Contributor

Build succeeded:

@zeebe-bors-camunda zeebe-bors-camunda bot merged commit a8317c7 into main Nov 11, 2022
@zeebe-bors-camunda zeebe-bors-camunda bot deleted the zell-10455-clean-up branch November 11, 2022 13:04
zeebe-bors-camunda bot added a commit that referenced this pull request Nov 14, 2022
10979: Extract Streamprocessor from engine module r=Zelldon a=Zelldon

## Description

Split the engine module into two separate modules.

One called stream-platform (zeebe-stream-platform), the name is of course discussable, which contains everything related to stream processing. This module contains right now the API and implementation. It can and will be split further in the future.
There is a new package names `io.camunda.stream.api/impl` etc. Here we can also agree on a different name of course.

The other remaining module is still called engine, which contains the record processor implementation. It is the core or business logic of zeebe (the process engine). Right now it still depends on some impl classes like CopiedRecords, RecordValues mostly related to tests. This can hopefully be resolved in the future via iteration over the engine tests. #10004 

I prepared some structure in the API and impl, but can also be discussed.

There are several classes which have been moved, which we might want
to move to a different place later.

For example:

 * ZbColumnFamily
 * CopiedRecords
 * RecordValues
 * etc.

<!-- Please explain the changes you made here. -->

## Related issues

<!-- Which issues are closed by this PR or are related -->
closes #10977
closes #10130 
closes #9727
closes #9600



Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
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.

Migrate the StreamProcessor tests to the new StreamPlatformExtension
2 participants