⚠️ Upgrade modules to v2, namespaced resources support, safe-start implementation#236
⚠️ Upgrade modules to v2, namespaced resources support, safe-start implementation#236hmlkao wants to merge 5 commits intocrossplane-contrib:mainfrom
Conversation
25c1249 to
05fdade
Compare
|
I'm facing to an issue with import cycle: apis/namespaced/repo/v1alpha1/zz_branch_terraformed.go:1: : import cycle not allowed: import stack:
github.com/crossplane-contrib/provider-upjet-github/apis/namespaced
github.com/crossplane-contrib/provider-upjet-github/apis/namespaced/actions/v1alpha1
github.com/crossplane-contrib/provider-upjet-github/apis/namespaced/repo/v1alpha1
github.com/crossplane-contrib/provider-upjet-github/apis/namespaced/team/v1alpha1
github.com/crossplane-contrib/provider-upjet-github/apis/namespaced/repo/v1alpha1I'm looking for solution. |
The only way how to avoid the import cycle was to disable the resource I tried to:
|
05fdade to
82c2561
Compare
|
Another issue with wrong type check appeared: It looks like an issue in upjet tool, maybe the Terraform provider schema is wrong, however, I was not able to fix it even if I wrote a workaround updating the provider schema. So, again, the only way was to disable resources which caused the golangcilint failures, |
|
These are definitely not the best solutions and I would appreciate if anybody could help with this issue. However, it's possible to generate the provider now without these resources:
If anybody wants to help with it:
|
|
Hi @AtzeDeVries, do you have some experience with any of the issues mentioned in previous comments? I'd like to move forward with this issue, however, I'm not sure if are these issues related to Upjet v2 or GitHub Terraform provider schema. |
82c2561 to
86507e1
Compare
|
hmlkao#2 another PR to fix merge conflicts |
|
@hmlkao , I'm sorry, I missed signing off on that commit, but I'm not sure how to resolve since I can't write to your branch to fix it |
Hi @KaelBaldwin, sorry for late response, Christmas time... I’m not entirely sure which approach is best to fix this, but I see two possible options:
I prefer the first option. What do you think? |
Hi @hmlkao, yes that sounds great! Sorry, I've been out as well. Here's the exact Signed-off-by line: Signed-off-by: devthane kaelenbaldwin@gmail.com |
bd4e678 to
1391a8c
Compare
…fe-start Signed-off-by: Ondrej Homolka <ondrej.homolka@gmail.com>
Signed-off-by: Ondrej Homolka <ondrej.homolka@gmail.com>
* break import cycles and add back disabled resources Signed-off-by: devthane <kaelenbaldwin@gmail.com> * remove notes about disabled resources in readme Signed-off-by: devthane <kaelenbaldwin@gmail.com>
1391a8c to
febb111
Compare
|
Hi @devthane , I have finally successfully rebased the branch and signed-off your commit, all fixes are there. It was quite tricky for me due to merge commits and a lot of conflicts, so sorry for late response... In the end, I've reduced commits a bit... |
|
@AtzeDeVries , @pravindahal , @xunholy as codeowners, could you review this PR with priority, pls? Thanks! |
|
thanks for the contribution! I will have a look! |
|
@hmlkao @KaelBaldwin i tried to build the artifact but it fails |
|
Hi @AtzeDeVries , thanks for moving it forward. The problem is that Since then a lot of changes were made and one of them was to install Crossplane CLI instead of UP CLI (line 28 in makelib/local.xpkg.mk). I'll create an issue in |
Signed-off-by: Ondrej Homolka <ondrej.homolka@gmail.com>
f71567b to
13aa7ab
Compare
|
Hi @AtzeDeVries , I added another commit with lock of However, you would have to change default branch to this to be able to test it, or lock it and merge to main in separate PR, or wait for the merge in |
|
@hmlkao I managed to publish a provider package https://github.com/crossplane-contrib/provider-upjet-github/pkgs/container/provider-upjet-github/652598625?tag=v0.19.0-alpha1 I will test this locally as well. I need to think a bit about how to solve the issues with the workflow in a nice way. |
|
@hmlkao @AtzeDeVries Someone brought up a good point in slack that other providers have not had an issue with the build module as is and pointed out this provider's Makefile is not in sync with the crossplane provider template. In order to address this, I've opened a PR to this branch: hmlkao#4 which pulls in the latest commits to the template repository and resolves the conflicts. I'm hopeful this will resolve the workflow issues in the best way and allow us to keep following the template in the future. |
ab002ff to
9bcea32
Compare
|
@hmlkao I'm sorry, this signoff issue is because I've got two separate github accounts between my work and personal and apparently don't have it sorted correctly. I tried to do the signoff when I committed, but its wanting the other user name for some reason. I specifically tried to make sure this wouldn't happen again but failed to do it correctly still. |
* merge template updates and resolve conflicts Signed-off-by: devthane <kaelenbaldwin@gmail.com> * fix some issues after merge of updated template repo Signed-off-by: devthane <kaelenbaldwin@gmail.com> * fix reference to template provider Signed-off-by: devthane <kaelenbaldwin@gmail.com> * update go modules Signed-off-by: devthane <kaelenbaldwin@gmail.com> --------- Signed-off-by: devthane <kaelenbaldwin@gmail.com>> Co-authored-by: devthane <kaelenbaldwin@gmail.com>
9bcea32 to
7435315
Compare
Hey @KaelBaldwin , no worries, it's good practice with git also for me 😄 |
|
@AtzeDeVries Can you try the workflow again and see if it is good to go now? |
|
@pravindahal @xunholy Would either of you be able to help us get this PR moving? |
|
Looks like it succeeded this time! https://github.com/crossplane-contrib/provider-upjet-github/actions/runs/21641331303/job/63689835637 |
|
@xunholy What are next steps after the CI workflow run mentioned in previous comment succeeded? Is any additional work required to move forward with review? |
Description of your changes
This PR solves these issues:
⚠️ (breaking) These resources were disabled due to errors (check comments below)Solved, thanks to @KaelBaldwin:github_team_repository- import cyclegithub_actions_runner_group- type check issuegithub_actions_organization_permissions- type check issueFixes #213
I have:
make reviewable testto ensure this PR is ready for review.How has this code been tested