Repository navigation
fix(engine): Stabilize rejected job metrics test - #3097
Merged
Merged
Conversation
Related to https://github.com/camunda/team-automation-platform/issues/304 Related to camunda/camunda-bpm-platform#5048 Backported commit 3998bf59f1f61647f5515c17d96ad0ea66a35ec5 from the camunda-bpm-platform repository. Original author: Miklas Boskamp <[email protected]> Backport change unit: 4789
|
kthoms
approved these changes
Jun 11, 2026
kthoms
pushed a commit
that referenced
this pull request
Jun 11, 2026
Related to https://github.com/camunda/team-automation-platform/issues/304 Related to camunda/camunda-bpm-platform#5048 Backported commit 3998bf59f1f61647f5515c17d96ad0ea66a35ec5 from the camunda-bpm-platform repository. Original author: Miklas Boskamp <[email protected]> Backport change unit: 4789 (cherry picked from commit f05583e)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Backports the Camunda 7 test stabilization from camunda/camunda-bpm-platform#5048. This is a test-only change for
JobExecutorMetricsTestand does not change production behavior.Why this is needed
Operaton
mainstill useswaitForJobExecutorToProcessAllJobs(5000L)intestJobRejectedExecutionMetricReporting. That helper waits broadly for the job executor to process jobs instead of explicitly executing only the jobs created by this test case.In larger or parallel test runs, that makes the test more sensitive to unrelated executable jobs in the same engine context and weakens the intent of the assertion: the metric should count the three jobs that were deliberately submitted to the rejecting executor.
Fix
The test now queries the job IDs for the deployed
asyncServiceTaskProcessinstances and executes exactly those jobs through the currently configuredRejectingJobExecutor. The final metric assertion remains the same:JOB_EXECUTION_REJECTEDmust be3.I adapted the original patch to the current Operaton/JUnit 5 test style and reused the existing
processEngineConfigurationfield instead of adding an extra configuration cast.Attribution
Original Camunda change:
Verification
./mvnw -pl engine -Dtest=JobExecutorMetricsTest#testJobRejectedExecutionMetricReporting test./mvnw -pl engine -Dtest=JobExecutorMetricsTest test