-
Notifications
You must be signed in to change notification settings - Fork 725
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
CI broken by perma-diff in Cloud Functions #1306
Comments
@apeabody @daniel-cit can you take a look at this and check if my understanding is correct? (And if I'm off-base, any idea how else we might fix this?) |
Hi @eeaton! Terraform automatically picks the latest provider versions allowed by the version constraints during the init stage. So any post For example:
GoogleCloudPlatform/terraform-google-cloud-functions#135 only updates examples, so I doubt that it will make an impact. If you have a recent CI test failure, we can determine the TPG version used for the failing stage. |
Looks like this error occurs with TPG v5.39: #1293 (comment) |
Lets try to remove the the version of the provider used in the build is one that includes fix that added in 27 days ago it is in both 5.38 and 5,39 |
Failed even after removing the
I will take a look at the provider and try to see what is the issue with the |
Foundation code originally had two entries in the runtime env variables,
Using the code from the latest version of the provider with the permadiff fix we have
This part This part when we run Terraform plan we get
and the if we remove the fix we get:
And the Adding a log output in the code we can see the state of the variables
somehow this code is saying that on the plan case there is no diff between not having a map and the new map. changing the condition from
to
seems to fix the issue, and The same strategy of ignoring the size is used in other places to deal with labels that have key value pair added by the API when returning results. I would like to pinpoint why this code snippet is failing in this case but seems to work in other cases. |
there is an open issue in the provider for this hashicorp/terraform-provider-google#18747 |
Thanks for the investigation and detailed writeup on the provider issue, Daniel. As a quick fix to unblock this repo, I'm trying PR #1311 to pin the provider version used in the cai_monitoring module to the last good version |
PR opened in magic-modules GoogleCloudPlatform/magic-modules#11333 |
TL;DR
CI tests have 100% failure rate since July 13th.
Tests are consistently broken by a perma-diff in Cloud Funcitons, with an error like the following:
Expected behavior
No response
Observed behavior
No response
Terraform Configuration
Terraform Version
the automated Cloud Build suite for this repo
Additional information
I'm having a hard time identifying what we need to update or modify to resolve this. It looks like the root issue was in the provider, here's what I've found so far:
There was a provider fix 27 days ago to fix a permadiff:
environment_variables
in cloudfunctions2 function hashicorp/terraform-provider-google#18651,There is also a PR in terraform-google-cloud-function (which we reference) to use latest source has not been approved, from 27 days ago: GoogleCloudPlatform/terraform-google-cloud-functions#135
From the related dates, I expect that the PR 135 needs to be merged into the CFT module, then we can update with this repo with the CFT module. However, I'm not certain because I can't find where the provider fix is pulled into the CFT module.
The text was updated successfully, but these errors were encountered: