Changeset 276315 in webkit


Ignore:
Timestamp:
Apr 20, 2021, 12:29:40 PM (4 years ago)
Author:
aakash_jain@apple.com
Message:

Switch commit-queue back to git.webkit.org
https://bugs.webkit.org/show_bug.cgi?id=224762

Reviewed by Jonathan Bedard.

  • CISupport/ews-build/factories.py:

(CommitQueueFactory.init): Use git.webkit.org for Commit-Queue.

  • CISupport/ews-build/factories_unittest.py:

(TestCommitQueueFactory.test_commit_queue_factory): Updated unit-tests.

  • CISupport/ews-build/steps.py:

(CheckOutSource.init):
(PushCommitToWebKitRepo.evaluateCommand):

Location:
trunk/Tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/CISupport/ews-build/factories.py

    r275853 r276315  
    283283        self.addStep(PrintConfiguration())
    284284        self.addStep(CleanGitRepo())
    285         self.addStep(CheckOutSource())
     285        self.addStep(CheckOutSource(repourl='https://git.webkit.org/git/WebKit-https'))
    286286        self.addStep(FetchBranches())
    287287        self.addStep(ShowIdentifier())
     
    297297        self.addStep(RunWebKitTests())
    298298        self.addStep(ValidatePatch(addURLs=False, verifycqplus=True))
    299         self.addStep(CheckOutSource())
     299        self.addStep(CheckOutSource(repourl='https://git.webkit.org/git/WebKit-https'))
    300300        self.addStep(ShowIdentifier())
    301301        self.addStep(UpdateWorkingDirectory())
  • trunk/Tools/CISupport/ews-build/factories_unittest.py

    r276277 r276315  
    415415            _BuildStepFactory(steps.PrintConfiguration),
    416416            _BuildStepFactory(steps.CleanGitRepo),
    417             _BuildStepFactory(steps.CheckOutSource),
     417            _BuildStepFactory(steps.CheckOutSource, repourl='https://git.webkit.org/git/WebKit-https'),
    418418            _BuildStepFactory(steps.FetchBranches),
    419419            _BuildStepFactory(steps.ShowIdentifier),
     
    429429            _BuildStepFactory(steps.RunWebKitTests),
    430430            _BuildStepFactory(steps.ValidatePatch, addURLs=False, verifycqplus=True),
    431             _BuildStepFactory(steps.CheckOutSource),
     431            _BuildStepFactory(steps.CheckOutSource, repourl='https://git.webkit.org/git/WebKit-https'),
    432432            _BuildStepFactory(steps.ShowIdentifier),
    433433            _BuildStepFactory(steps.UpdateWorkingDirectory),
  • trunk/Tools/CISupport/ews-build/steps.py

    r276139 r276315  
    110110    haltOnFailure = False
    111111
    112     def __init__(self, **kwargs):
    113         self.repourl = 'https://github.com/WebKit/WebKit.git'
    114         super(CheckOutSource, self).__init__(repourl=self.repourl,
     112    def __init__(self, repourl='https://github.com/WebKit/WebKit.git', **kwargs):
     113        super(CheckOutSource, self).__init__(repourl=repourl,
    115114                                                retry=self.CHECKOUT_DELAY_AND_MAX_RETRIES_PAIR,
    116115                                                timeout=2 * 60 * 60,
     
    223222        if match:
    224223            identifier = match.group(1)
     224            if identifier:
     225                identifier = identifier.replace('master', 'main')
    225226            self.setProperty('identifier', identifier)
    226227            ews_revision = self.getProperty('ews_revision')
     
    31403141    command_list = [['git', 'clean', '-f', '-d'],  # Remove any left-over layout test results, added files, etc.
    31413142                    ['git', 'fetch', 'origin'],  # Avoid updating the working copy to a stale revision.
    3142                     ['git', 'checkout', 'origin/main', '-f'],
    3143                     ['git', 'branch', '-D', 'main'],
    3144                     ['git', 'checkout', 'origin/main', '-b', 'main']]
     3143                    ['git', 'checkout', 'origin/master', '-f'],
     3144                    ['git', 'branch', '-D', 'master'],
     3145                    ['git', 'checkout', 'origin/master', '-b', 'master']]
    31453146
    31463147    def run(self):
     
    33233324            if retry_count < self.MAX_RETRY:
    33243325                self.setProperty('retry_count', retry_count + 1)
    3325                 self.build.addStepsAfterCurrentStep([GitResetHard(), CheckOutSource(), ShowIdentifier(), UpdateWorkingDirectory(), ApplyPatch(), CreateLocalGITCommit(), PushCommitToWebKitRepo()])
     3326                self.build.addStepsAfterCurrentStep([GitResetHard(), CheckOutSource(repourl='https://git.webkit.org/git/WebKit-https'), ShowIdentifier(), UpdateWorkingDirectory(), ApplyPatch(), CreateLocalGITCommit(), PushCommitToWebKitRepo()])
    33263327                return rc
    33273328
  • trunk/Tools/CISupport/ews-build/steps_unittest.py

    r276139 r276315  
    39073907            ExpectShell(command=['git', 'fetch', 'origin'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
    39083908            + ExpectShell.log('stdio', stdout=''),
    3909             ExpectShell(command=['git', 'checkout', 'origin/main', '-f'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
     3909            ExpectShell(command=['git', 'checkout', 'origin/master', '-f'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
    39103910            + ExpectShell.log('stdio', stdout='You are in detached HEAD state.'),
    3911             ExpectShell(command=['git', 'branch', '-D', 'main'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
    3912             + ExpectShell.log('stdio', stdout='Deleted branch main (was 57015967fef9).'),
    3913             ExpectShell(command=['git', 'checkout', 'origin/main', '-b', 'main'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
    3914             + ExpectShell.log('stdio', stdout="Switched to a new branch 'main'"),
     3911            ExpectShell(command=['git', 'branch', '-D', 'master'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
     3912            + ExpectShell.log('stdio', stdout='Deleted branch master (was 57015967fef9).'),
     3913            ExpectShell(command=['git', 'checkout', 'origin/master', '-b', 'master'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
     3914            + ExpectShell.log('stdio', stdout="Switched to a new branch 'master'"),
    39153915        )
    39163916        self.expectOutcome(result=SUCCESS, state_string='Cleaned up git repository')
     
    39263926            ExpectShell(command=['git', 'fetch', 'origin'], workdir='wkdir', timeout=1200, logEnviron=False) + 128
    39273927            + ExpectShell.log('stdio', stdout='fatal: unable to access https://github.com/WebKit/WebKit.git/: Could not resolve host: github.com'),
    3928             ExpectShell(command=['git', 'checkout', 'origin/main', '-f'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
     3928            ExpectShell(command=['git', 'checkout', 'origin/master', '-f'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
    39293929            + ExpectShell.log('stdio', stdout='You are in detached HEAD state.'),
    3930             ExpectShell(command=['git', 'branch', '-D', 'main'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
    3931             + ExpectShell.log('stdio', stdout='Deleted branch main (was 57015967fef9).'),
    3932             ExpectShell(command=['git', 'checkout', 'origin/main', '-b', 'main'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
    3933             + ExpectShell.log('stdio', stdout="Switched to a new branch 'main'"),
     3930            ExpectShell(command=['git', 'branch', '-D', 'master'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
     3931            + ExpectShell.log('stdio', stdout='Deleted branch master (was 57015967fef9).'),
     3932            ExpectShell(command=['git', 'checkout', 'origin/master', '-b', 'master'], workdir='wkdir', timeout=1200, logEnviron=False) + 0
     3933            + ExpectShell.log('stdio', stdout="Switched to a new branch 'master'"),
    39343934        )
    39353935        self.expectOutcome(result=FAILURE, state_string='Encountered some issues during cleanup')
  • trunk/Tools/ChangeLog

    r276311 r276315  
     12021-04-20  Aakash Jain  <aakash_jain@apple.com>
     2
     3        Switch commit-queue back to git.webkit.org
     4        https://bugs.webkit.org/show_bug.cgi?id=224762
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * CISupport/ews-build/factories.py:
     9        (CommitQueueFactory.__init__): Use git.webkit.org for Commit-Queue.
     10        * CISupport/ews-build/factories_unittest.py:
     11        (TestCommitQueueFactory.test_commit_queue_factory): Updated unit-tests.
     12        * CISupport/ews-build/steps.py:
     13        (CheckOutSource.__init__):
     14        (PushCommitToWebKitRepo.evaluateCommand):
     15
    1162021-04-20  Alex Christensen  <achristensen@webkit.org>
    217
Note: See TracChangeset for help on using the changeset viewer.