Skip to content
This repository has been archived by the owner on Jun 14, 2019. It is now read-only.

WARN: Generated job name is longer than 63 characters #17

Open
tnozicka opened this issue Sep 20, 2018 · 5 comments
Open

WARN: Generated job name is longer than 63 characters #17

tnozicka opened this issue Sep 20, 2018 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@tnozicka
Copy link

$ go run cmd/ci-operator-prowgen/main.go --from-dir ../release/ci-operator/config/openshift/cluster-openshift-controller-manager-operator --to-dir ../release/ci-operator/jobs
WARN[0000] Generated job name is longer than 63 characters. This may cause issues when Prow attempts to label resources with job name.  name=pull-ci-openshift-cluster-openshift-controller-manager-operator-master-verify
WARN[0000] Generated job name is longer than 63 characters. This may cause issues when Prow attempts to label resources with job name.  name=pull-ci-openshift-cluster-openshift-controller-manager-operator-master-unit
WARN[0000] Generated job name is longer than 63 characters. This may cause issues when Prow attempts to label resources with job name.  name=pull-ci-openshift-cluster-openshift-controller-manager-operator-master-images
WARN[0000] Generated job name is longer than 63 characters. This may cause issues when Prow attempts to label resources with job name.  name=branch-ci-openshift-cluster-openshift-controller-manager-operator-master-images

AFAICS the name is taken from the repo name so I can't influence it. The tool needs to handle it, not complain to me about something I can't configure.

/kind bug
/cc @stevekuznetsov

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 20, 2018
@stevekuznetsov
Copy link
Contributor

It's a warning. You can ignore it if you haven't written the job. We will gracefully handle names that are too long downstream of the config. How can we make the output better?

@chancez
Copy link

chancez commented Feb 25, 2019

We should probably just support overriding the job name from the ci-operator config.

@stevekuznetsov
Copy link
Contributor

Why? Job name is opaque to users once it's committed to config. We just don't want people going crazy. Only reason this is even warned about is that we add the job name to a label on our CRD and want to be able to use label selectors to get at branches

@chancez
Copy link

chancez commented Feb 25, 2019

Seems more obvious than trying to turn the generated name into something short enough. Is labels potentially overlapping not a problem?

@stevekuznetsov
Copy link
Contributor

No, truncating them and having them overlap is the issue. But job names -- internal names to Prow, not the context names that show up to devs on PRs -- are an implementation detail and we shouldn't really care about them. This is a warning in case your actual job name is long. The logic right now gating this warning is checking to see how long your generated org/repo/branch prefix is and if you have a lot of room before you hit the label size limit, and you hit it, then you're perhaps making a really long job name.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants