diff --git a/.github/workflows/docker-jepsen.yml b/.github/workflows/docker-jepsen.yml index 1985556b..3a945b6a 100644 --- a/.github/workflows/docker-jepsen.yml +++ b/.github/workflows/docker-jepsen.yml @@ -3,6 +3,10 @@ name: Jepsen tests on: schedule: - cron: '0 0 * * *' + push: + branches: [ master ] + pull_request: + branches: [ master ] env: GO_VERSION: 1.22.4 diff --git a/tests/images/jepsen_main/jepsen/src/jepsen/mysync.clj b/tests/images/jepsen_main/jepsen/src/jepsen/mysync.clj index 85a3e938..2327447f 100644 --- a/tests/images/jepsen_main/jepsen/src/jepsen/mysync.clj +++ b/tests/images/jepsen_main/jepsen/src/jepsen/mysync.clj @@ -93,8 +93,10 @@ (try (with-conn [c conn] (case (:f op) - :read (timeout 600000 (assoc op :type :info, :error "read-timeout") + :read (timeout 1200000 (assoc op :type :info, :error "read-timeout") (cond (= (count (j/query c ["show slave status for channel ''"])) 0) + (def value_cnt (j/query c ["select count(*) as count from test1.test_set"])) + (info (str "Values count: " value_cnt)) (assoc op :type :ok, :value (->> (j/query c ["select value from test1.test_set"] {:row-fn :value}) @@ -276,7 +278,7 @@ (gen/nemesis (fn [] (map gen/once [{:type :info, :f :stop} - {:type :sleep, :value 600}]))) + {:type :sleep, :value 1200}]))) (gen/time-limit 1200))) :checker mysync-set :remote control/ssh})