Transfer tgc/cai2hcl ownership to magic-modules#8824
Conversation
This change moves tgc/cai2hcl management to magic-modules/mmv1 using new provider, which will then be used for generated cai2hcl converters.
This comment was marked as outdated.
This comment was marked as outdated.
|
Hello! I am a robot. It looks like you are a: @roaks3, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR hasn't generated any diffs, but I'll let you know if a future commit does. |
This comment was marked as outdated.
This comment was marked as outdated.
Tests analyticsTotal tests:
|
- Add missing -a param - Move cai2hcl folder name from ruby files to bash
Remove files in cai2hcl/ folder instead of a folder itself.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. TF Conversion: Diff ( 24 files changed, 801 insertions(+), 272 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDataprocJobIamPolicy|TestAccHealthcareDatasetIamPolicy|TestAccSpannerDatabaseIamPolicy |
|
Rerun these tests in REPLAYING mode to catch issues
|
|
@amirkaromashkin I'm a little surprised by this change, but I may be missing context. Do you have an internal issue tracking this work, or have you been working with a member of our team on this? |
|
@roaks3 I've been talking with Amir about this change - this PR should make MM take over management of cai2hcl with no diffs - other changes would ideally be in other PRs (but I believe some of these changes were necessary here as part of bringing the files under managment.) |
roaks3
left a comment
There was a problem hiding this comment.
Ok, got it, and I reviewed the internal doc. I took a first pass and things looked good, but to help with review, am I correct in assuming that mmv1/third_party/cai2hcl files are copied verbatim from somewhere?
Its not completely verbatim. Its a slightly refactored version of https://github.com/GoogleCloudPlatform/terraform-google-conversion/tree/main/cai2hcl: converters themselves were not changed, I changed packages/folder structure and helper methods like convert.go. Testdata files copied from https://github.com/GoogleCloudPlatform/terraform-google-conversion/tree/main/testdata as is. |
It is not yet needed at this stage for manual converters.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. TF Conversion: Diff ( 23 files changed, 709 insertions(+), 219 deletions(-)) |
|
LGTM |
Otherwise it breaks current Convert API.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. TF Conversion: Diff ( 22 files changed, 667 insertions(+), 177 deletions(-)) |
Tests analyticsTotal tests:
|
|
I just tried to take another look here and this is very hard to review with the assumption that everything is newly written (you mentioned that some refactoring happened). Could you please provide some more context on what was changed (and perhaps why)? Where should I be looking for changes to the previous behavior vs. parts that are copy-and-pasted? |
I guess there are 2 ways to handle it:
I guess the 2nd option looks better. WDYT? @roaks3 |
"converters/google/resources", same as in tfplan2cai
I have just found a slight bug in a folder structure when started to implement the Option2. So I believe its a better approach. On it. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. TF Conversion: Diff ( 22 files changed, 667 insertions(+), 177 deletions(-)) |
|
Yea, I think the second option would be ideal here. Thanks! |
|
Passing over to @melinath as I will likely be on PTO when this is ready for another look |
|
GoogleCloudPlatform/terraform-google-conversion#1416 is the PR to refactor TGC first. |
melinath
left a comment
There was a problem hiding this comment.
Refactor of TGC is complete - marking this as reviewed pending updates to match the final structure we settled on.
Once refactoring of terraform-google-conversion is merged, we we update cai2hcl/ folder so that this PR moves functionality from tgc to mmv1 verbatim without any refactorings.
Done. Now it should produce zero diff |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR hasn't generated any diffs, but I'll let you know if a future commit does. |
Tests analyticsTotal tests:
|
This change moves tgc/cai2hcl management to magic-modules/mmv1 using new provider, which will then be used for generated cai2hcl converters.