Repository navigation
Use a PSR-20 clock for time measurement #1771
Annotations
10 warnings and 1 notice
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Listener/StopWorkerOnMemoryLimitListener.php#L32
Escaped Mutant for Mutator "ArrayItem":
@@ @@
$this->logger?->info(
'Worker stopped due to memory limit of {limit} exceeded ({memory} used)',
- ['limit' => $this->memoryLimit->formatted(), 'memory' => $usedMemory->formatted()],
+ ['limit' => $this->memoryLimit->formatted(), 'memory' > $usedMemory->formatted()],
);
$event->worker->stop();
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Listener/StopWorkerOnMemoryLimitListener.php#L32
Escaped Mutant for Mutator "ArrayItem":
@@ @@
$this->logger?->info(
'Worker stopped due to memory limit of {limit} exceeded ({memory} used)',
- ['limit' => $this->memoryLimit->formatted(), 'memory' => $usedMemory->formatted()],
+ ['limit' > $this->memoryLimit->formatted(), 'memory' => $usedMemory->formatted()],
);
$event->worker->stop();
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Listener/StopWorkerOnMemoryLimitListener.php#L26
Escaped Mutant for Mutator "LessThanOrEqualTo":
@@ @@
{
$usedMemory = $this->usedMemory();
- if ($usedMemory->value() <= $this->memoryLimit->value()) {
+ if ($usedMemory->value() < $this->memoryLimit->value()) {
return;
}
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L72
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
}
$this->logger?->debug('Worker sleep for {sleepTimer}ms', ['sleepTimer' => $sleepFor]);
- usleep($sleepFor * 1000);
+
}
$this->shouldStop = false;
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L72
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
}
$this->logger?->debug('Worker sleep for {sleepTimer}ms', ['sleepTimer' => $sleepFor]);
- usleep($sleepFor * 1000);
+ usleep($sleepFor * 1001);
}
$this->shouldStop = false;
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L72
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
}
$this->logger?->debug('Worker sleep for {sleepTimer}ms', ['sleepTimer' => $sleepFor]);
- usleep($sleepFor * 1000);
+ usleep($sleepFor * 999);
}
$this->shouldStop = false;
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L65
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
break;
}
- $sleepFor = max($sleepTimer - $ranTime, 0);
+ $sleepFor = max($sleepTimer - $ranTime, -1);
if ($sleepFor <= 0) {
continue;
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L62
Escaped Mutant for Mutator "Break_":
@@ @@
$this->eventDispatcher->dispatch(new WorkerRunningEvent($this));
if ($this->shouldStop) {
- break;
+ continue;
}
$sleepFor = max($sleepTimer - $ranTime, 0);
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L41
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
}
/** @PARAM positive-int|0 $sleepTimer in milliseconds */
- public function run(int $sleepTimer = 1000): void
+ public function run(int $sleepTimer = 1001): void
{
$this->logger?->debug('Worker starting');
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L41
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
}
/** @PARAM positive-int|0 $sleepTimer in milliseconds */
- public function run(int $sleepTimer = 1000): void
+ public function run(int $sleepTimer = 999): void
{
$this->logger?->debug('Worker starting');
|
|
Mutation tests (locked, 8.4, ubuntu-latest)
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
|