Bug 223606 - REGRESSION(r274366): webkitscmpy.test.svn_unittest.TestRemoteSvn.test_info fails in non-PDT timezones
Summary: REGRESSION(r274366): webkitscmpy.test.svn_unittest.TestRemoteSvn.test_info fa...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-22 15:06 PDT by Sam Sneddon [:gsnedders]
Modified: 2021-04-07 05:30 PDT (History)
2 users (show)

See Also:


Attachments
Patch (4.03 KB, patch)
2021-03-22 17:02 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
[fast-cq] Patch (3.28 KB, patch)
2021-04-06 08:58 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Sneddon [:gsnedders] 2021-03-22 15:06:44 PDT
[1961/1979] webkitscmpy.test.svn_unittest.TestRemoteSvn.test_info failed:                                             
  Traceback (most recent call last):
    File "/Volumes/gsnedders/projects/Safari/OpenSource/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/svn_unittest.py", line 264, in test_info
      self.assertDictEqual({
  AssertionError: {'Last Changed Author': 'jbedard@apple.com', 'Last Chang[68 chars]: 10} != {'Last Changed Rev': '6', 'Last Changed Author': 'jbedar[68 chars]: 10}
    {'Last Changed Author': 'jbedard@apple.com',
  -  'Last Changed Date': '2020-10-02 19:58:20',
  ?                                    ^
  +  'Last Changed Date': '2020-10-02 11:58:20',
  ?                                    ^
     'Last Changed Rev': '6',
     'Revision': 10}

Regressed in https://trac.webkit.org/changeset/274366/webkit which changed timezone handling. The fix might just be setting the tz explicitly in that diff to UTC.
Comment 1 Jonathan Bedard 2021-03-22 17:02:30 PDT
Created attachment 423963 [details]
Patch
Comment 2 Sam Sneddon [:gsnedders] 2021-03-22 17:13:07 PDT
Comment on attachment 423963 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=423963&action=review

> Tools/ChangeLog:9
> +        (GitHub._commit_response): Use utc shifted into PDT for consistency across timezones.

Is there any actual advantage to shifting everything to PDT versus just having everything in UTC?
Comment 3 Jonathan Bedard 2021-03-22 17:18:35 PDT
(In reply to Sam Sneddon [:gsnedders] from comment #2)
> Comment on attachment 423963 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=423963&action=review
> 
> > Tools/ChangeLog:9
> > +        (GitHub._commit_response): Use utc shifted into PDT for consistency across timezones.
> 
> Is there any actual advantage to shifting everything to PDT versus just
> having everything in UTC?

Mostly because we would need to change unit tests. I would like to revisit this once we've dropped subversion support, because that's the case that's most annoying because the Subversion server vends things in Pacific time
Comment 4 Radar WebKit Bug Importer 2021-03-29 15:07:13 PDT
<rdar://problem/75975196>
Comment 5 Jonathan Bedard 2021-04-06 08:58:56 PDT
Created attachment 425285 [details]
[fast-cq] Patch
Comment 6 EWS 2021-04-07 05:30:54 PDT
Committed r275604 (236249@main): <https://commits.webkit.org/236249@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 425285 [details].