-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Predict service_id in endpoints_service fixed to timezone "America/Los_Angeles" #9757
Predict service_id in endpoints_service fixed to timezone "America/Los_Angeles" #9757
Comments
@alx-andru can you provide a Thank you for the contribution. Here is the repo that generates the providers. |
Hi @edwardmedia , the I'll try to reproduce it in debug mode tonight, setting my local time didn't result in the desired output I shared above. |
@alx-andru waiting for your debug log |
Hey @edwardmedia I was able to reproduce it tonight and have piped the output into a log file which is here: https://gist.github.com/alx-andru/13efcfab732cc799de7f47e0e8ac6863 My timezone is I'd expect to see the predicted configId to be
|
@alx-andru I see what you refer to. But
|
@edwardmedia when terraform apply runs, the validation at the end to determine a successful run is failing because the predicted The suggestion is really just a suggestion as I'm not a go developer and don't know how to compile/run the project. I did some reading in the documentation on what LoadLocation returns and how it should work and found the reference to time.Location(). |
@alx-andru Trying to understand why it is failing. could you get the debug log (how)? You may set below environment variable before run
|
@edwardmedia please see following output that I reproduced by changing my date settings locally which results in the exact same output I had when running tests closer to midnight. The key part is that the preview shows
but the actual deployment is using the correct
|
@alx-andru Sorry I don't get it. Is below hint what you referred to
|
@edwardmedia everything seems to get fully deployed but the actual "apply" fails. So if it runs through CI/CD it would just be marked as "failed" rather than a success. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v1.0.4
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
https://gist.github.com/alx-andru/17ef1dc59f62e0c76385c90b34d56fd9
Expected Behavior
I would expected that the config_id is matching the current date and be based on version increments.
Actual Behavior
The "predicted" config_id is based on a hard-coded timezone that, when run close to midnight, causes the prediction to be offset by a day, depending on the timezone of your local system.
Steps to Reproduce
terraform apply
Important Factoids
References
I opened a PR with a suggested change but realized that the issue is also in the general google provider as well.
The text was updated successfully, but these errors were encountered: