Skip to content

Conversation

@justinc1
Copy link
Collaborator

@justinc1 justinc1 commented Apr 14, 2023

Failed CI job
https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/4696220997/jobs/8326124886#step:8:49

The timezone from https://ipapi.co/timezone is correct one, it is based on public IP address/geolocation.
But out test ansible controller is not configured with timezone. UTC is just OK for servers.

We can convert unix epoch to local time with python and use pytz for that. pytz is used only for testing.

The timezone from ipapi.co is not needed anymore.

integ test after change:
https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/4697144688

@justinc1 justinc1 requested a review from PolonaM April 14, 2023 06:44
Failed CI job
https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/4696220997/jobs/8326124886#step:8:49

The timezone from https://ipapi.co/timezone is correct one, it
is based on public IP address/geolocation.
But out test ansible controller is not configured with timezone.
UTC is just OK for servers.

We can convert unix epoch to local time with python and use pytz for that.
pytz is used only for testing.

The timezone from ipapi.co is not needed anymore.

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
@justinc1 justinc1 force-pushed the ci-fix-local-time-test branch from 47067cc to b7b5af2 Compare April 14, 2023 10:23
@justinc1 justinc1 requested a review from PolonaM April 14, 2023 10:24
@justinc1 justinc1 merged commit 1839f5e into main Apr 14, 2023
@justinc1 justinc1 deleted the ci-fix-local-time-test branch April 14, 2023 11:27
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.

3 participants