You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
I'm seeing cache misses due to the kotlin jars have different file timestamps. It appears, the kotlin rules depend on the system default timezone which may not be consistent across machines.
Suggested Fix
It seems that setting the timezone to "UTC" should resolve this issue, but I still saw inconsistencies in timestamps between CI and my local machine. I haven't had a chance to debug further, but one thing I was doing differently was depending on kotlin rules using git_repository instead of building the release artifact.
Workaround
I'm able to workaround this issue by setting my machines timezone to match our CI builder's timezone UTC for the time being.
The text was updated successfully, but these errors were encountered:
It looks like there's an old PR (#167) that touches the same line you've identified, but it looks like they're solving the problem differently. Does this PR look like it would fix the issue for you?
Do I understand from your comment that you updated the code in rules_kotlin to specify UTC as the time zone and it still had inconsistencies? Or did you mean updating the timezone of your local machine?
Sorry for slow response. I updated the code to use a standard timezone, UTC; however, this was not the correct solution as it causes the timezone information to always be encoded within the zip.
Background
I'm seeing cache misses due to the kotlin jars have different file timestamps. It appears, the kotlin rules depend on the system default timezone which may not be consistent across machines.
Suggested Fix
It seems that setting the timezone to "UTC" should resolve this issue, but I still saw inconsistencies in timestamps between CI and my local machine. I haven't had a chance to debug further, but one thing I was doing differently was depending on kotlin rules using
git_repository
instead of building the release artifact.Workaround
I'm able to workaround this issue by setting my machines timezone to match our CI builder's timezone UTC for the time being.
The text was updated successfully, but these errors were encountered: