Skip to content
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

Truncate PipelineRun names #526

Closed
callmevladik opened this issue Dec 17, 2024 · 0 comments · Fixed by #527
Closed

Truncate PipelineRun names #526

callmevladik opened this issue Dec 17, 2024 · 0 comments · Fixed by #527
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@callmevladik
Copy link
Contributor

callmevladik commented Dec 17, 2024

This task involves updating the Portal UI to ensure that when creating or re-running a PipelineRun, the naming convention follows a specific pattern. The pattern is "60-(build|review)-5(randn)-CODEBASEBRANCH", for example,

{codebasedbranch}-(build|review)-XXXXX

If the name exceeds 63 characters, it should be truncated from the left while always preserving the '-(build|review)-XXXXX' segment. So each time we are ok to reduce {codebasebranch}

Example:

run: ctp-frontend-feature-tt-380-implement-sso-build-n82qm
re-run: ctp-frontend-feature-tt-380-implement-sso-build-n82qm-r-kabf3
Acceptance Criteria
Implement the specified naming convention for PipelineRun creation and re-runs (when we add '-r-XXXXX') in the Portal UI.
Ensure that if the resulting name exceeds 63 characters, it is truncated from the left, prioritizing the preservation of the '-(build|review)-XXXXX' segment.
Conduct testing to verify that the naming convention is correctly applied in both creation and re-run scenarios.
Update relevant documentation to reflect the new naming convention and its implementation details.

@callmevladik callmevladik converted this from a draft issue Dec 17, 2024
@callmevladik callmevladik self-assigned this Dec 17, 2024
@callmevladik callmevladik added enhancement New feature or request bug Something isn't working labels Dec 17, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in KubeRocketCI Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant