Autodevops may generate too long labels for hostnames

I am using the current version of gitlab ce (11.9.1). I just noticed, that the review stage of autodevops may automatically produce labels, which are too long for valid urls.
This happens in the case of a nested structure of subgroups or very long project names.
The corresponding line is most likely: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml#L265

Any ideas on how this can be circumvented, apart from a different project/group structure?