You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched the issue queue to verify this is not a duplicate bug report.
I've included steps to reproduce the bug.
I've pasted the output of kargo version.
I've pasted logs, if applicable.
Description
Execution of stages with long name (>=30 characters) and spec.verification configured results in failure to create AnalysisRun resources. This is due to the kargo.akuity.io/promotion label value exceeding the 63 character limit.
Steps to Reproduce
Create a Stage with a sufficiently long name (>30 characters)
Configure a spec.verification step that triggers an AnalysisTemplate - any configuration will do.
Promote a Freight to the Stage with the long name.
Note that the verification step fails to create the AnalysisRun resource.
Version
v1.1.2
Logs
Error message:
error creating AnalysisRun "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.01jgjn7248tgmb6xq3wxzrqp9s.43776e4" in namespace "kargo-xxxxx": AnalysisRun.argoproj.io "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.01jgjn7248tgmb6xq3wxzrqp9s.43776e4" is invalid: metadata.labels: Invalid value: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.01jgjn66w0kkacc9yaajzc0713.56d0e7f": must be no more than 63 characters
Investigation
The long name generation looks to come from the generateName method here. It's being set as a label on the AnalysisRun here from the previous promotion value.
The ULID + Freight ID take a fair chunk of the available real estate - perhaps generateName() should simply truncate (or hash + truncate) long prefixes. Not sure what the implications of diverging from the 1:1 Stage name are though.
For a workaround, I will likely do some internal truncating of the Stage name to keep it <=29 chars though this may impact readability and identification of the stages running (and what environment they represent). Are there plans to display additional Stage metadata in the UI via something like annotations?
The text was updated successfully, but these errors were encountered:
Checklist
kargo version
.Description
Execution of stages with long name (>=30 characters) and
spec.verification
configured results in failure to createAnalysisRun
resources. This is due to thekargo.akuity.io/promotion
label value exceeding the 63 character limit.Steps to Reproduce
Stage
with a sufficiently long name (>30 characters)spec.verification
step that triggers an AnalysisTemplate - any configuration will do.Stage
with the long name.Version
Logs
Error message:
Investigation
The long name generation looks to come from the
generateName
method here. It's being set as a label on the AnalysisRun here from the previous promotion value.The ULID + Freight ID take a fair chunk of the available real estate - perhaps
generateName()
should simply truncate (or hash + truncate) long prefixes. Not sure what the implications of diverging from the 1:1 Stage name are though.For a workaround, I will likely do some internal truncating of the Stage name to keep it <=29 chars though this may impact readability and identification of the stages running (and what environment they represent). Are there plans to display additional Stage metadata in the UI via something like annotations?
The text was updated successfully, but these errors were encountered: