Changeset 276315 in webkit
- Timestamp:
- Apr 20, 2021, 12:29:40 PM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/CISupport/ews-build/factories.py
r275853 r276315 283 283 self.addStep(PrintConfiguration()) 284 284 self.addStep(CleanGitRepo()) 285 self.addStep(CheckOutSource( ))285 self.addStep(CheckOutSource(repourl='https://git.webkit.org/git/WebKit-https')) 286 286 self.addStep(FetchBranches()) 287 287 self.addStep(ShowIdentifier()) … … 297 297 self.addStep(RunWebKitTests()) 298 298 self.addStep(ValidatePatch(addURLs=False, verifycqplus=True)) 299 self.addStep(CheckOutSource( ))299 self.addStep(CheckOutSource(repourl='https://git.webkit.org/git/WebKit-https')) 300 300 self.addStep(ShowIdentifier()) 301 301 self.addStep(UpdateWorkingDirectory()) -
trunk/Tools/CISupport/ews-build/factories_unittest.py
r276277 r276315 415 415 _BuildStepFactory(steps.PrintConfiguration), 416 416 _BuildStepFactory(steps.CleanGitRepo), 417 _BuildStepFactory(steps.CheckOutSource ),417 _BuildStepFactory(steps.CheckOutSource, repourl='https://git.webkit.org/git/WebKit-https'), 418 418 _BuildStepFactory(steps.FetchBranches), 419 419 _BuildStepFactory(steps.ShowIdentifier), … … 429 429 _BuildStepFactory(steps.RunWebKitTests), 430 430 _BuildStepFactory(steps.ValidatePatch, addURLs=False, verifycqplus=True), 431 _BuildStepFactory(steps.CheckOutSource ),431 _BuildStepFactory(steps.CheckOutSource, repourl='https://git.webkit.org/git/WebKit-https'), 432 432 _BuildStepFactory(steps.ShowIdentifier), 433 433 _BuildStepFactory(steps.UpdateWorkingDirectory), -
trunk/Tools/CISupport/ews-build/steps.py
r276139 r276315 110 110 haltOnFailure = False 111 111 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, 115 114 retry=self.CHECKOUT_DELAY_AND_MAX_RETRIES_PAIR, 116 115 timeout=2 * 60 * 60, … … 223 222 if match: 224 223 identifier = match.group(1) 224 if identifier: 225 identifier = identifier.replace('master', 'main') 225 226 self.setProperty('identifier', identifier) 226 227 ews_revision = self.getProperty('ews_revision') … … 3140 3141 command_list = [['git', 'clean', '-f', '-d'], # Remove any left-over layout test results, added files, etc. 3141 3142 ['git', 'fetch', 'origin'], # Avoid updating the working copy to a stale revision. 3142 ['git', 'checkout', 'origin/ma in', '-f'],3143 ['git', 'branch', '-D', 'ma in'],3144 ['git', 'checkout', 'origin/ma in', '-b', 'main']]3143 ['git', 'checkout', 'origin/master', '-f'], 3144 ['git', 'branch', '-D', 'master'], 3145 ['git', 'checkout', 'origin/master', '-b', 'master']] 3145 3146 3146 3147 def run(self): … … 3323 3324 if retry_count < self.MAX_RETRY: 3324 3325 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()]) 3326 3327 return rc 3327 3328 -
trunk/Tools/CISupport/ews-build/steps_unittest.py
r276139 r276315 3907 3907 ExpectShell(command=['git', 'fetch', 'origin'], workdir='wkdir', timeout=1200, logEnviron=False) + 0 3908 3908 + ExpectShell.log('stdio', stdout=''), 3909 ExpectShell(command=['git', 'checkout', 'origin/ma in', '-f'], workdir='wkdir', timeout=1200, logEnviron=False) + 03909 ExpectShell(command=['git', 'checkout', 'origin/master', '-f'], workdir='wkdir', timeout=1200, logEnviron=False) + 0 3910 3910 + ExpectShell.log('stdio', stdout='You are in detached HEAD state.'), 3911 ExpectShell(command=['git', 'branch', '-D', 'ma in'], workdir='wkdir', timeout=1200, logEnviron=False) + 03912 + ExpectShell.log('stdio', stdout='Deleted branch ma in(was 57015967fef9).'),3913 ExpectShell(command=['git', 'checkout', 'origin/ma in', '-b', 'main'], workdir='wkdir', timeout=1200, logEnviron=False) + 03914 + ExpectShell.log('stdio', stdout="Switched to a new branch 'ma in'"),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'"), 3915 3915 ) 3916 3916 self.expectOutcome(result=SUCCESS, state_string='Cleaned up git repository') … … 3926 3926 ExpectShell(command=['git', 'fetch', 'origin'], workdir='wkdir', timeout=1200, logEnviron=False) + 128 3927 3927 + 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/ma in', '-f'], workdir='wkdir', timeout=1200, logEnviron=False) + 03928 ExpectShell(command=['git', 'checkout', 'origin/master', '-f'], workdir='wkdir', timeout=1200, logEnviron=False) + 0 3929 3929 + ExpectShell.log('stdio', stdout='You are in detached HEAD state.'), 3930 ExpectShell(command=['git', 'branch', '-D', 'ma in'], workdir='wkdir', timeout=1200, logEnviron=False) + 03931 + ExpectShell.log('stdio', stdout='Deleted branch ma in(was 57015967fef9).'),3932 ExpectShell(command=['git', 'checkout', 'origin/ma in', '-b', 'main'], workdir='wkdir', timeout=1200, logEnviron=False) + 03933 + ExpectShell.log('stdio', stdout="Switched to a new branch 'ma in'"),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'"), 3934 3934 ) 3935 3935 self.expectOutcome(result=FAILURE, state_string='Encountered some issues during cleanup') -
trunk/Tools/ChangeLog
r276311 r276315 1 2021-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 1 16 2021-04-20 Alex Christensen <achristensen@webkit.org> 2 17
Note:
See TracChangeset
for help on using the changeset viewer.