You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gobblin.apache.org by zi...@apache.org on 2021/12/14 21:40:19 UTC

[gobblin] branch master updated: [HotFix]Try to fix the mysql dependency issue in Github action (#3445)

This is an automated email from the ASF dual-hosted git repository.

zihanli58 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/gobblin.git


The following commit(s) were added to refs/heads/master by this push:
     new e2c9920  [HotFix]Try to fix the mysql dependency issue in Github action (#3445)
e2c9920 is described below

commit e2c992057f64e40ea7b208917a4dd92e76a5ca77
Author: Zihan Li <zi...@linkedin.com>
AuthorDate: Tue Dec 14 13:40:10 2021 -0800

    [HotFix]Try to fix the mysql dependency issue in Github action (#3445)
    
    * try to fix the dependency issue
    
    * test2
    
    * test3
    
    * test4
    
    * test5
---
 .github/workflows/build_and_test.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml
index 21957f9..8258e21 100644
--- a/.github/workflows/build_and_test.yaml
+++ b/.github/workflows/build_and_test.yaml
@@ -124,6 +124,12 @@ jobs:
           echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
       - name: Verify mysql connection
         run: |
+            sudo apt-get -f install -o Dpkg::Options::="--force-overwrite"
+            sudo apt-get purge mysql\*
+            sudo rm -rf /var/lib/mysql
+            sudo rm -rf /etc/mysql
+            sudo dpkg -l | grep -i mysql
+            sudo apt-get clean
             sudo apt-get install -y mysql-client
             mysql --host 127.0.0.1 --port 3306 -uroot -ppassword -e "SHOW DATABASES"
       - name: Cache Gradle Dependencies