We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently script uses unix timestamp ($start) as both start time + section name (same goes for section_end - using $start).
This causes collision within multiple tasks running in the same second cause it's used by gitlab for grouping.
$this->output->writeln("\e[0Ksection_start:{$start}:{$start}[collapsed=true]\r\e[0K{$task->getName()}"); $this->output->writeln("\e[0Ksection_end:{$endTime}:{$start}\r\e[0K");
I think better solution is to use slug of task name:
$this->output->writeln("\e[0Ksection_start:{$start}:{$slug}[collapsed=true]\r\e[0K{$task->getName()}"); $this->output->writeln("\e[0Ksection_end:{$endTime}:{$slug}\r\e[0K");
or to be more "unique" - combination of task name slug + startTime:
$this->output->writeln("\e[0Ksection_start:{$start}:{$slug}_{$start}[collapsed=true]\r\e[0K{$task->getName()}"); $this->output->writeln("\e[0Ksection_end:{$endTime}:{$slug}_{$start}\r\e[0K");
The text was updated successfully, but these errors were encountered:
Or make use of e.g. uniqid()
uniqid()
Sorry, something went wrong.
use md5 of task name for section id in gitlab ci
9ddca10
Resolves deployphp#3787
use md5 of task name for section id in gitlab ci (#3817)
af6f878
Resolves #3787
Successfully merging a pull request may close this issue.
Currently script uses unix timestamp ($start) as both start time + section name (same goes for section_end - using $start).
This causes collision within multiple tasks running in the same second cause it's used by gitlab for grouping.
I think better solution is to use slug of task name:
or to be more "unique" - combination of task name slug + startTime:
The text was updated successfully, but these errors were encountered: