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

[CAPPL-400] Fix/truncate workflow names #15864

Closed
wants to merge 3 commits into from

Conversation

MStreet3
Copy link
Contributor

@MStreet3 MStreet3 commented Jan 8, 2025

this PR truncates the workflow name before starting an engine. https://smartcontract-it.atlassian.net/browse/CAPPL-400

Requires

Supports

@MStreet3 MStreet3 requested review from a team as code owners January 8, 2025 17:17
@MStreet3 MStreet3 requested a review from ilija42 January 8, 2025 17:17
Copy link
Contributor

@shileiwill shileiwill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@chainchad chainchad added the build-publish Build and Publish image to SDLC label Jan 8, 2025
@cl-sonarqube-production
Copy link

@@ -531,12 +531,14 @@ func (h *eventHandler) engineFactoryFn(ctx context.Context, id string, owner str
return nil, fmt.Errorf("failed to get workflow sdk spec: %w", err)
}

truncName := pkgworkflows.HashTruncateName(name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MStreet3 Can you add a comment explaining why this is necessary (workflow engine expects max 10 bytes, registry has no such restriction)

@MStreet3 MStreet3 closed this Jan 14, 2025
@MStreet3 MStreet3 deleted the fix/truncate-workflow-names branch January 14, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-publish Build and Publish image to SDLC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants