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

Dependencies - update terraform-plugin-framework minor version #359

Merged
merged 8 commits into from
Feb 8, 2024

Conversation

hmlanigan
Copy link
Member

@hmlanigan hmlanigan commented Dec 6, 2023

Description

Updates

  • terraform-plugin-framework package to v1.5.0
  • terraform-plugin-go to v0.21.0
  • terraform-plugin-testing to v1.6.0
  • terraform-plugin-sdk/v2 v2.30.0

Hopefully this will make dependabot happy. We've had at least 4 PRs of package updates, fail to compile recently due to code in dependencies. #355, #341, #331, #330, #321, #391, #382

Updated the README to use 1.6 while I'm here, the framework package has updates to improve performance with 1.6.

The test disabled in f3bc51e will be fixed in a follow on PR. It's an existing issue and not a regression.

Type of change

  • Maintenance work (repository related, like Github actions, or revving the Go version, etc.)

Additional Info

JUJU-5182

@hmlanigan hmlanigan changed the title Dependencies - update terraform-plugin-framework minor version WIP: Dependencies - update terraform-plugin-framework minor version Dec 6, 2023
@hmlanigan hmlanigan added this to the 0.11.0 milestone Dec 7, 2023
@hmlanigan
Copy link
Member Author

hmlanigan commented Dec 7, 2023

This change of the framework pkg version from 1.3.x to 1.4.x causes test failures which need to be resolved. Holding off until after 0.10.1 get's released.

This is a minor version change which improve interactions with terraform
1.6. Requires go 1.20 which we already use.
Inline with framework package updates as well.
Get the actual machine base and series data after it's been started.
Cannot assume that the plan has any or all of the data as we had been
doing. Added a read machine with retry method to wait for the data.

Fix where the manual machine provisioning was not returning the
machine base.
@hmlanigan hmlanigan force-pushed the dependencies branch 3 times, most recently from f3bc51e to 6b7e4c5 Compare February 8, 2024 16:33
A Jira ticket exists to fix this test.
@hmlanigan hmlanigan changed the title WIP: Dependencies - update terraform-plugin-framework minor version Dependencies - update terraform-plugin-framework minor version Feb 8, 2024
Copy link
Contributor

@cderici cderici left a comment

Choose a reason for hiding this comment

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

LGTM 👍

}
},
BackoffFunc: retry.DoubleDelay,
Attempts: 30,
Copy link
Contributor

Choose a reason for hiding this comment

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

is 30 attempts a little too many?

Copy link
Member Author

Choose a reason for hiding this comment

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

30 is arbitrary for sure. In practicality, it's a max time of 61 sec due to the backoff func of DoubleDelay and wait time of 1 sec.

We also have the ctx.Done() that's passed through from the terraform client as a backstop.

@hmlanigan hmlanigan merged commit f35a630 into juju:main Feb 8, 2024
23 checks passed
@hmlanigan hmlanigan deleted the dependencies branch February 8, 2024 21:58
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.

2 participants