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

internal/cloudapi/v2/handler: use compose id for filename #4530

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

schuellerf
Copy link
Contributor

For easier tracing and finding the result in AWS,
can we use the compose id in the filename?

Is this a valid suggestion?

If this might not be unique enough, we could also append some random string?

TargetName:   fmt.Sprintf("composer-api-%s-%s", finalJob, uuid.New().String()[:8]),

For easier tracing and finding the result in AWS,
we should use the compose id in the filename.
@@ -1233,7 +1233,7 @@ func (h *apiHandlers) postCloneComposeImpl(ctx echo.Context, id string) error {
Ami: options.Ami,
SourceRegion: options.Region,
TargetRegion: img.Region,
TargetName: fmt.Sprintf("composer-api-%s", uuid.New().String()),
TargetName: fmt.Sprintf("composer-api-%s", finalJob),
Copy link
Member

Choose a reason for hiding this comment

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

This only change the clones (so when copying the image over to different regions).

In general I'm not at all opposed to it but you'll probably need to pick the osbuild job because in koji jobs the final job is the koji-finalize job, which depends on up to 4 osbuild jobs, and they can't all have the same name.

Copy link

This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants