-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Test spin -2 #4307
Closed
Closed
Test spin -2 #4307
Conversation
This file contains 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
Context: Exclusive jobs that originate from process hierarchies (processes which contain multi-instance subprocesses) can now be executed exclusively. Why: The exclusive execution would only be applied on tasks that originate at a root level. Any subprocess spawned by root processes would not be correlated and considered for exclusive execution. Changes: See below the changes of this feature - New column `ROOT_PROC_INST_ID_ ` is introduced to correlated a process instance with its root parent - The column is added to all supported databases & `7.20_to_7.21` migration scripts. - The query `selectNextJobsToExecute` is enriched to consider the root process instance id when the feature is enabled. - The feature flag `jobExecutorAcquireExclusiveOverProcessHierarchies` enables / disables the feature. - The feature is disabled by default for backwards compatibility with the legacy behaviour. Tests: - Unit tests under `ExclusiveJobAcquisitionTest` which cover: - Legacy behaviour with the feature disabled - Feature behaviour with the feature enabled & a 1-level deep process hierarchy (process which spawns a subprocess) - Feature behaviour with the feature enabled & a 2-level deep process hierarchy (process which spawns a subprocess - which spawns another subprocess) - Migration tests under `ExclusiveOverProcessHierarchiesTest` which cover: - How the job acquisition and execution (see `AcquireJobsCmd`) behave with existing 7.20 process instances when the feature is disabled (legacy behaviour and backwards compatibility) - How the job acquisition and execution (see `AcquireJobsCmd`) behave with existing 7.20 process instances when the feature is enabled (feature behaviour) - The tests need to select all the jobs and lock them to perform their logic. After the test execution the jobs are unlocked. Other Notable Changes: - Fixed flakiness of `DecisionDefinitionTest` - The Test class was susceptible to timezone changes due its test data using the current date; as a result, depending on the date of execution, changing to DST could fail the tests. - This behaviour is fixed by adjusting the test data to use a fixed past date, rendering the test executions immune to date of execution. - The waiting behaviour on jobs for the tests to rely on the scheduler, shared by `SequentialJobAcquisitionTest`, `ExclusiveJobAcquisitionTest` is extracted into class `JobExecutorWaitUtils` Co-authored-by: daniel.kelemen Co-authored-by: yanavasileva Co-authored-by: petros.savvidis Related-to: #4004 , #4003
* set false as default value for initializeTelemetry and switch to primitive * engine tests: test default value * LoginIT: remove telemetry close modal * initializeTelemetryProperty: add null check related to #4167
in installation path #4227
Related to #3848 Co-authored-by: Daniel Kelemen <[email protected]>
related to #4239
Related to #4188
related to #4243
…etch and lock Related to #4051
Signed-off-by: Cameron Brown <[email protected]> Related-to: #4246
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.
Try merging master into branch where spin consolidation seems to work.
Possible use binary search to find with witch commit are the spin changes incompatible with.