⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 280655 in webkit


Ignore:
Timestamp:
Aug 4, 2021, 1:44:38 PM (5 years ago)
Author:
Jonathan Bedard
Message:

[check-github-mirror-integrity] Compare current time to canonical time
https://bugs.webkit.org/show_bug.cgi?id=228787
<rdar://problem/81524499>

Reviewed by Aakash Jain.

  • Scripts/check-github-mirror-integrity: If the mirror isn't in line with the canonical repository, we should

check against the current time, not the time of last commit on the mirror.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r280651 r280655  
     12021-08-04  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [check-github-mirror-integrity] Compare current time to canonical time
     4        https://bugs.webkit.org/show_bug.cgi?id=228787
     5        <rdar://problem/81524499>
     6
     7        Reviewed by Aakash Jain.
     8
     9        * Scripts/check-github-mirror-integrity: If the mirror isn't in line with the canonical repository, we should
     10        check against the current time, not the time of last commit on the mirror.
     11
    1122021-08-03  Myles C. Maxfield  <mmaxfield@apple.com>
    213
  • trunk/Tools/Scripts/check-github-mirror-integrity

    r280602 r280655  
    2525import os
    2626import sys
     27import time
    2728
    2829from webkitpy import webkitscmpy
     
    4243        return 0
    4344
    44     if mirror_tip.timestamp >= canonical_tip.timestamp - 5 * 60 and mirror_tip.identifier == canonical_tip.identifier - 1:
     45    if time.time() >= canonical_tip.timestamp - 5 * 60 and mirror_tip.identifier == canonical_tip.identifier - 1:
    4546        print('GitHub is 1 commit behind svn.webkit.org. This is ok.')
    4647        print(f'HEAD commit on GitHub {mirror_tip} slightly behind HEAD commit on svn.webkit.org {canonical_tip}')
Note: See TracChangeset for help on using the changeset viewer.