[Git][ghc/ghc][wip/win32-testsuite-fixes] gitlab-ci: Kill ssh-agent after pushing test metrics

Ben Gamari gitlab at gitlab.haskell.org
Fri Jul 24 13:21:21 UTC 2020



Ben Gamari pushed to branch wip/win32-testsuite-fixes at Glasgow Haskell Compiler / GHC


Commits:
f81ae23c by Ben Gamari at 2020-07-24T09:21:10-04:00
gitlab-ci: Kill ssh-agent after pushing test metrics

Otherwise the Windows builds hang forever waiting for the process to
terminate.

- - - - -


1 changed file:

- .gitlab/test-metrics.sh


Changes:

=====================================
.gitlab/test-metrics.sh
=====================================
@@ -81,6 +81,10 @@ function push() {
     echo ""
     echo "Failed to push git notes. Fetching, appending, and retrying... $MAX_RETRY retries left."
   done
+
+  # Be sure to kill agent before we terminate since otherwise the Windows CI
+  # job won't finish.
+  ssh-agent -k
 }
 
 case $1 in
@@ -88,3 +92,4 @@ case $1 in
   pull) pull ;;
   *) fail "Invalid mode $1" ;;
 esac
+



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f81ae23c9c334698babb436df9573d58bce51a97

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f81ae23c9c334698babb436df9573d58bce51a97
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200724/79d03d71/attachment.html>


More information about the ghc-commits mailing list