diff --git a/src/Executor/Messenger.php b/src/Executor/Messenger.php index 17b4d604a..266868a1e 100644 --- a/src/Executor/Messenger.php +++ b/src/Executor/Messenger.php @@ -52,8 +52,9 @@ public function startTask(Task $task): void if (getenv('GITHUB_WORKFLOW')) { $this->output->writeln("::group::task {$task->getName()}"); } else if (getenv('GITLAB_CI')) { + $sectionId = md5($task->getName()); $start = round($this->startTime/1000); - $this->output->writeln("\e[0Ksection_start:{$start}:{$start}[collapsed=true]\r\e[0K{$task->getName()}"); + $this->output->writeln("\e[0Ksection_start:{$start}:{$sectionId}[collapsed=true]\r\e[0K{$task->getName()}"); } else { $this->output->writeln("task {$task->getName()}"); } @@ -78,9 +79,9 @@ public function endTask(Task $task, bool $error = false): void if (getenv('GITHUB_WORKFLOW')) { $this->output->writeln("::endgroup::"); } else if (getenv('GITLAB_CI')) { + $sectionId = md5($task->getName()); $endTime = round($endTime/1000); - $start = round($this->startTime/1000); - $this->output->writeln("\e[0Ksection_end:{$endTime}:{$start}\r\e[0K"); + $this->output->writeln("\e[0Ksection_end:{$endTime}:{$sectionId}\r\e[0K"); } else if ($this->output->isVeryVerbose()) { $this->output->writeln("done {$task->getName()} $taskTime"); }