Title: [292122] trunk/Tools
Revision
292122
Author
[email protected]
Date
2022-03-30 14:56:16 -0700 (Wed, 30 Mar 2022)

Log Message

[Merge-Queue] Add http credential helper
https://bugs.webkit.org/show_bug.cgi?id=238553
<rdar://problem/91044821>

Reviewed by Aakash Jain.

* Tools/CISupport/ews-build/steps.py:
(CheckOutPullRequest.run): Add credential helper that pulls http credentials
from environment variables.
* Tools/CISupport/ews-build/steps_unittest.py:

Canonical link: https://commits.webkit.org/249035@main

Modified Paths

Diff

Modified: trunk/Tools/CISupport/ews-build/steps.py (292121 => 292122)


--- trunk/Tools/CISupport/ews-build/steps.py	2022-03-30 21:07:00 UTC (rev 292121)
+++ trunk/Tools/CISupport/ews-build/steps.py	2022-03-30 21:56:16 UTC (rev 292122)
@@ -799,6 +799,7 @@
         rebase_target_hash = self.getProperty('ews_revision') or self.getProperty('got_revision')
 
         commands = [
+            ['git', 'config', 'credential.helper', '!echo_credentials() { sleep 1; echo "username=${GIT_USER}"; echo "password=${GIT_PASSWORD}"; }; echo_credentials'],
             self.shell_command('git remote add {} {}{}.git || {}'.format(remote, GITHUB_URL, project, self.shell_exit_0())),
             ['git', 'remote', 'set-url', remote, '{}{}.git'.format(GITHUB_URL, project)],
             ['git', 'fetch', remote],

Modified: trunk/Tools/CISupport/ews-build/steps_unittest.py (292121 => 292122)


--- trunk/Tools/CISupport/ews-build/steps_unittest.py	2022-03-30 21:07:00 UTC (rev 292121)
+++ trunk/Tools/CISupport/ews-build/steps_unittest.py	2022-03-30 21:56:16 UTC (rev 292122)
@@ -3244,6 +3244,12 @@
                 timeout=600,
                 logEnviron=False,
                 env=self.ENV,
+                command=['git', 'config', 'credential.helper', '!echo_credentials() { sleep 1; echo "username=${GIT_USER}"; echo "password=${GIT_PASSWORD}"; }; echo_credentials'],
+            ) + 0, ExpectShell(
+                workdir='wkdir',
+                timeout=600,
+                logEnviron=False,
+                env=self.ENV,
                 command=['/bin/sh', '-c', 'git remote add Contributor https://github.com/Contributor/WebKit.git || true'],
             ) + 0, ExpectShell(
                 workdir='wkdir',
@@ -3302,6 +3308,12 @@
                 timeout=600,
                 logEnviron=False,
                 env=self.ENV,
+                command=['git', 'config', 'credential.helper', '!echo_credentials() { sleep 1; echo "username=${GIT_USER}"; echo "password=${GIT_PASSWORD}"; }; echo_credentials'],
+            ) + 0, ExpectShell(
+                workdir='wkdir',
+                timeout=600,
+                logEnviron=False,
+                env=self.ENV,
                 command=['sh', '-c', 'git remote add Contributor https://github.com/Contributor/WebKit.git || exit 0'],
             ) + 0, ExpectShell(
                 workdir='wkdir',
@@ -3359,6 +3371,12 @@
                 timeout=600,
                 logEnviron=False,
                 env=self.ENV,
+                command=['git', 'config', 'credential.helper', '!echo_credentials() { sleep 1; echo "username=${GIT_USER}"; echo "password=${GIT_PASSWORD}"; }; echo_credentials'],
+            ) + 0, ExpectShell(
+                workdir='wkdir',
+                timeout=600,
+                logEnviron=False,
+                env=self.ENV,
                 command=['/bin/sh', '-c', 'git remote add Contributor https://github.com/Contributor/WebKit.git || true'],
             ) + 0, ExpectShell(
                 workdir='wkdir',

Modified: trunk/Tools/ChangeLog (292121 => 292122)


--- trunk/Tools/ChangeLog	2022-03-30 21:07:00 UTC (rev 292121)
+++ trunk/Tools/ChangeLog	2022-03-30 21:56:16 UTC (rev 292122)
@@ -1,5 +1,18 @@
 2022-03-30  Jonathan Bedard  <[email protected]>
 
+        [Merge-Queue] Add http credential helper
+        https://bugs.webkit.org/show_bug.cgi?id=238553
+        <rdar://problem/91044821>
+
+        Reviewed by Aakash Jain.
+
+        * CISupport/ews-build/steps.py:
+        (CheckOutPullRequest.run): Add credential helper that pulls http credentials
+        from environment variables.
+        * CISupport/ews-build/steps_unittest.py:
+
+2022-03-30  Jonathan Bedard  <[email protected]>
+
         [Merge-Queue] Add Reviewers to commit message (Follow-up fix)
         https://bugs.webkit.org/show_bug.cgi?id=238354
         <rdar://problem/90800671>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to