-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
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
Invalid step name in conditions #3393
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
I can take a look at this if nobody else is. I'm seeing it a lot and I dislodged the bug. /assign |
mattmoor
added a commit
to mattmoor/pipeline
that referenced
this issue
Oct 15, 2020
My recent change uncovered a latent bug where especially long test names result in especially long container names, which fails certain validations. Unfortunately it slipped in because the test was expected to fail. This leverages an upstream helper we created to solve ~exactly this problem. You get DNS-safe short names based on an input name and a suffix, which are deterministic, and are friendly for suitably short inputs. Fixes: tektoncd#3393
4 tasks
mattmoor
added a commit
to mattmoor/pipeline
that referenced
this issue
Oct 15, 2020
My recent change uncovered a latent bug where especially long test names result in especially long container names, which fails certain validations. Unfortunately it slipped in because the test was expected to fail. This leverages the names.SimpleNameGenerator.RestrictLength helper to solve this problem. Fixes: tektoncd#3393
tekton-robot
pushed a commit
that referenced
this issue
Oct 15, 2020
My recent change uncovered a latent bug where especially long test names result in especially long container names, which fails certain validations. Unfortunately it slipped in because the test was expected to fail. This leverages the names.SimpleNameGenerator.RestrictLength helper to solve this problem. Fixes: #3393
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
The generated step name for conditions is valid
Actual Behavior
If the parent name is long enough, it may become too long:
Steps to Reproduce the Problem
Additional Info
The code that builds the name is
pipeline/pkg/reconciler/pipelinerun/resources/conditionresolution.go
Line 99 in bd885f8
We may be able to use
kmeta.ChildName
to fix the issue.v0.17.1
The text was updated successfully, but these errors were encountered: