-
Notifications
You must be signed in to change notification settings - Fork 53
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
Incorrect handling of non-root directory based repos in Porch #451
Comments
Not sure if the UI will handle these correctly, even if I fix 2) and the one I fear may be latent (how Porch creates new tags). |
FYI, what we should see in that list is the set of packages only once, since these are all under the GCP infra Repository, and the other repos should show up as empty. |
I also confirmed this is the behavior in the Porch version used in R1 (v0.0.20), so it is not new with my latest PRs. |
Ok, actually I think I found the issue and it's a pretty easy fix. |
Any updates and is there anything I can help you with? |
Fixed in the latest porch release: kptdev/kpt#4097 |
But it seems I may have introduced some issues in kptdev/kpt#4094 so I think we will be doing a new release without some of those changes. |
Looks like @mortent did a release while I was out that excluded the problematic changes. So, we should update our system to use Porch v0.0.35 |
@johnbelamaric The SIG#2 community expressed a preference for putting Porch code in its own "porch" repository here. I'm not quite sure if/how to merge the v0.0.35 release in the PR. Should we redo the PR, or have you also incorporated new fixes in it? |
@tliron did you do anything with the PR yet? If not, if you can just get the new repo created, with OWNERS file, the right permissions, I can put together a PR that matches the v35 release, then after that, a separate PR that has my fixes which apparently still need some work. I am hoping to get some specific, reproducible tests from the internal team that found the issues, so that we can use them to figure out what's wrong with my changes (or we can punt on my changes since they become obsolete depending where we take the Porch architecture). |
I did not do anything yet -- once I found out about the new Porch release I didn't know what to do. :) I actually seem to have less than full permissions on the GitHub org. I wouldn't be too worried about OWNERS and everything else yet, and I wouldn't bother with the regular review process for this task. I'm in favor of just pushing the code directly to a new repo. |
Works for me. I will make you an org owner |
I put v35 into nephio-project/catalog#13. However, it looks like v35 does not contain the fix from kptdev/kpt#4097 - I see some of them in the PR to bring back the 4094 changes here: nephio-project/porch#8. I will submit a Porch PR with just the 4097 changes in our repo, so we will have a fix. |
@anurag-rajawat the images are now available in the Nephio docker hub, tagged "v2.0.0-beta.1" and also (for now) "latest". These are built from the repo after nephio-project/porch#9 merged. |
Our catalog repository contains multiple sub-directories. Porch assumes a Repository (note the capital, I mean the K8s resource) is a "flat" space for holding packages. We structured the catalog Git repo with the intent to use multiple Porch repos to represent that same repository, like this:
That is, we have multiple Porch Repository resources, pointing to different subdirectories. In theory this is fine, but it is not a feature of Porch that is well exercised, and I am seeing some issues.
It is necessary for tags to include the full path. I think this is actually probably the correct behavior, since that way you have true independence across Repository objects. So, for example we must use "infra/gcp/cc-repo-csr/v1" not "cc-repo-csr/v1" as the tag.
Each package revision gets duplicated across all instances with the same base git repo. In other words, it sees this as duplicated repositories rather than separate repos. So with the three Repository resources registered above, we see:
I think 1) is ok, but I am not sure if Porch properly creates tags like this. I will have to try it. I think I can fix 2) pretty quickly. But I wanted to raise this as a concern; we may want to consider breaking this out into multiple Git repos to be safe.
The text was updated successfully, but these errors were encountered: