Skip to content

Y20230429-1000

@HeikoKlare HeikoKlare tagged this 28 Apr 09:34
The test case
RelaxedSchedRuleBuilderTest.testBuilderDeltaUsingRelaxedRuleBug343256
performs a workspace change between calling getRule and build when
performing a build operation to ensure that build properly considers
changes performed in between. To ensure that the job performing a
workspace change is scheduled in between executing getRule and build,
getRule ends with a sleep to ensure that the workspace-changing job
reaches a point where it acquires a lock in between, so it is scheduled
before the build operation. Whenever the sleep is not sufficiently long,
the test fails.
This change makes the getRule operation finish when the
workspace-changing job has acquired a lock instead of waiting for a
specific amount of time. This ensure that the build operation is always
scheduled after the workspace-changing job.
Assets 2
Loading