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

Porch: creation time for package revisions continuously updates #3992

Open
johnbelamaric opened this issue Jun 29, 2023 · 4 comments
Open

Porch: creation time for package revisions continuously updates #3992

johnbelamaric opened this issue Jun 29, 2023 · 4 comments
Labels
area/porch bug Something isn't working triaged Issue has been triaged by adding an `area/` label

Comments

@johnbelamaric
Copy link
Contributor

Expected behavior

Creation time never changes.

Actual behavior

It changes every time the package is updated.

Information

https://github.com/GoogleContainerTools/kpt/blob/main/porch/pkg/git/package.go#L160

@johnbelamaric johnbelamaric added the bug Something isn't working label Jun 29, 2023
@johnbelamaric
Copy link
Contributor Author

Was this done intentionally? What would happen if we fix it?

I have an auto-approve controller, but it won't touch the package revision until it has "aged" appropriately (that in and of itself is a workaround for concurrency issues). This can make it take a long time, even if there are no "real" updates happening still.

@johnbelamaric
Copy link
Contributor Author

OCI looks like it doesn't have this behavior: https://github.com/GoogleContainerTools/kpt/blob/main/porch/pkg/oci/oci.go#L420

@mortent
Copy link
Contributor

mortent commented Jun 30, 2023

This is not intentional behavior, so I don't think there should be any problems with fixing it. We would just need to decide what would be the source for determining the creation date. We could probably do this by walking the commits pertaining to a package, but that could be somewhat expensive. Another option that sounds simpler is to just wire through the CreationTimestamp from the underlying CR we use to store metadata about PackageRevisions.

@mortent mortent added triaged Issue has been triaged by adding an `area/` label area/porch labels Jun 30, 2023
@johnbelamaric
Copy link
Contributor Author

Cool, thanks. With #3993 I think the chaos of continuous updates is abating, so it may not be as much of an issue. But still should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/porch bug Something isn't working triaged Issue has been triaged by adding an `area/` label
Projects
None yet
Development

No branches or pull requests

2 participants