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

Upgrade from Protocol 5 to 6 #637

Merged
merged 5 commits into from
Oct 19, 2023
Merged

Upgrade from Protocol 5 to 6 #637

merged 5 commits into from
Oct 19, 2023

Conversation

dadgar
Copy link
Contributor

@dadgar dadgar commented Oct 16, 2023

🛠️ Description

Upgrade from Protocol 5 to 6. I was going to add a nested block and noticed the documentation recommends against it and instead to use nested attribute types which are only available on protocol 6.

https://developer.hashicorp.com/terraform/plugin/framework/handling-data/blocks/single-nested

🏗️ Acceptance tests

  • Are there any feature flags that are required to use this functionality?
  • Have you added an acceptance test for the functionality being added?
  • Have you run the acceptance tests on this branch?

@dadgar dadgar requested a review from aidan-mundy October 16, 2023 23:23
@dadgar dadgar requested a review from a team as a code owner October 16, 2023 23:23
Copy link
Contributor

@aidan-mundy aidan-mundy left a comment

Choose a reason for hiding this comment

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

Mostly looks good.

Need to update the providersdkv2 tests to use V6 Protos. This should also include manual migration testing as per the migration guide for TF Mux/TF Framework.
Need to update documentation to reflect changes to minimum terraform version.
We should also release a preemptive version with a deprecation notice to indicate that older terraform versions will no longer be supported in a few weeks time. Not sure if there is a way for us to detect old tf versions and output a warning, or if we'll just have to depreciate via changelog notice.

@aidan-mundy aidan-mundy requested a review from AnPucel October 16, 2023 23:43
@dadgar dadgar requested review from a team as code owners October 16, 2023 23:51
@dadgar dadgar requested a review from himran92 October 16, 2023 23:51
@dadgar dadgar mentioned this pull request Oct 17, 2023
3 tasks
@dadgar
Copy link
Contributor Author

dadgar commented Oct 17, 2023

@aidan-mundy Thanks for the review!

Need to update the providersdkv2 tests to use V6 Protos.

Done! I am running https://github.com/hashicorp/terraform-provider-hcp/actions/runs/6540633820 to conduct the integration tests.

Need to update documentation to reflect changes to minimum terraform version.

Done.

We should also release a preemptive version with a deprecation notice to indicate that older terraform versions will no longer be supported in a few weeks time. Not sure if there is a way for us to detect old tf versions and output a warning, or if we'll just have to depreciate via changelog notice.

Sure thing! #638

Copy link
Contributor

@AnPucel AnPucel left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for doing this. It was on our list after implementing the muxer. I think just running the acceptance test workflow in the CI would be helpful as well. And I think as @aidan-mundy mentioned some manual migration tests if we wanna be thorough. I believe I did one per product on the initial muxer changes.

Copy link
Contributor

@aidan-mundy aidan-mundy left a comment

Choose a reason for hiding this comment

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

Updates look great! For the manual migration testing, I'd check with @AnPucel for some help on the best way to do it.

LGTM (in around 2 weeks haha)

@himran92
Copy link

thanks for the changes.
cc: oncall @aoripov
i am going to approve as acceptance tests are passed.

@himran92 himran92 closed this Oct 17, 2023
@himran92 himran92 reopened this Oct 17, 2023
@dadgar
Copy link
Contributor Author

dadgar commented Oct 19, 2023

Manually tested the migration: https://gist.github.com/dadgar/7b4d5393d6453701b82fe72ac802102f

@dadgar dadgar merged commit 7978ce6 into main Oct 19, 2023
@dadgar dadgar deleted the f-v6 branch October 19, 2023 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants