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

fix wrong duration showed for image import #673

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

arshadd-b
Copy link

Addressed git issue #668

@ppc64le-cloud-bot
Copy link
Contributor

Welcome @arshadd-b! It looks like this is your first PR to ppc64le-cloud/pvsadm 🎉

@ppc64le-cloud-bot ppc64le-cloud-bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 23, 2024
@ppc64le-cloud-bot
Copy link
Contributor

Hi @arshadd-b. Thanks for your PR.

I'm waiting for a ppc64le-cloud member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ppc64le-cloud-bot ppc64le-cloud-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 23, 2024
@kishen-v
Copy link
Contributor

/ok-to-test

@ppc64le-cloud-bot ppc64le-cloud-bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 23, 2024
@kishen-v
Copy link
Contributor

Hi @arshadd-b,
Thanks for the PR.

Changes look good to me.

Copy link
Member

@mkumatag mkumatag left a comment

Choose a reason for hiding this comment

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

concern here is not about the way it is printing but the actual time is been printed as 11s which is wrong, in the code you can see that start is been overwritten later and displays same message

Image imported successfully, took %s
Successfully imported the image: %s with ID: %s in %s"

we need to track overall time taken and display..

@kishen-v
Copy link
Contributor

Hi @mkumatag.

I think these are two discrete events that are timed to measure the duration for image upload and image availability.
The first message prints the time taken for uploading the image (roughly about 20 minutes).
The second message is the time taken for the image to be made available in the PowerVS workspace( about 10s).

I0821 11:13:19.206224   57939 import.go:220] Image imported successfully, took 20m1.16607567s

Should we consider rephrasing the second log statement to being specific about the time taken for the image to be available?

Thanks!

@mkumatag
Copy link
Member

As a user - I'm more interested in knowing the end to end timing, any intermediate information will be more of a good to have information.

Lets reword the message for better understanding.

Copy link
Member

@mkumatag mkumatag left a comment

Choose a reason for hiding this comment

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

/lgtm

@ppc64le-cloud-bot ppc64le-cloud-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 24, 2024
@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: arshadd-b, mkumatag

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ppc64le-cloud-bot ppc64le-cloud-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 24, 2024
@ppc64le-cloud-bot ppc64le-cloud-bot merged commit 3e6cd5f into ppc64le-cloud:main Sep 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants