diff --git a/.github/workflows/active-active-matrix.yml b/.github/workflows/active-active-matrix.yml index c87552b..897109b 100644 --- a/.github/workflows/active-active-matrix.yml +++ b/.github/workflows/active-active-matrix.yml @@ -6,16 +6,3 @@ on: jobs: active-active-matrix: uses: nurturenature/jepsen-powersync/.github/workflows/run-jepsen-tests.yml@main - with: - workloads: > - [ 'powersync' ] - backend-connectors: > - [ 'CrudTransactionConnector'] - nemeses: > - [ 'none' ] - rates: > - [ '10', '20', '30', '40', '50' ] - time-limits: > - ['100', '200', '300', '400', '500' ] - cli-opts: > - '--nodes n1,n2,n3,n4,n5 --postgres-nodes n1' diff --git a/.github/workflows/convergence-matrix.yml b/.github/workflows/convergence-matrix.yml index 663ce3d..15f1163 100644 --- a/.github/workflows/convergence-matrix.yml +++ b/.github/workflows/convergence-matrix.yml @@ -9,11 +9,3 @@ jobs: with: workloads: > [ 'convergence' ] - backend-connectors: > - [ 'CrudTransactionConnector'] - nemeses: > - [ 'none' ] - rates: > - [ '25', '50', '75', '100' ] - time-limits: > - ['30', '60', '100' ] diff --git a/.github/workflows/disconnect-connect-matrix.yml b/.github/workflows/disconnect-connect-matrix.yml index 13d7665..3e4d8ac 100644 --- a/.github/workflows/disconnect-connect-matrix.yml +++ b/.github/workflows/disconnect-connect-matrix.yml @@ -7,13 +7,5 @@ jobs: disconnect-connect-matrix: uses: nurturenature/jepsen-powersync/.github/workflows/run-jepsen-tests.yml@main with: - workloads: > - [ 'powersync' ] - backend-connectors: > - [ 'CrudTransactionConnector'] nemeses: > [ 'disconnect-connect' ] - rates: > - [ '25', '50', '75', '100' ] - time-limits: > - ['60', '120', '180' ] diff --git a/.github/workflows/partition-matrix.yml b/.github/workflows/partition-matrix.yml index af8a6dd..852da0e 100644 --- a/.github/workflows/partition-matrix.yml +++ b/.github/workflows/partition-matrix.yml @@ -7,13 +7,5 @@ jobs: partition-matrix: uses: nurturenature/jepsen-powersync/.github/workflows/run-jepsen-tests.yml@main with: - workloads: > - [ 'powersync' ] - backend-connectors: > - [ 'CrudTransactionConnector'] nemeses: > [ 'partition-sync' ] - rates: > - [ '25', '50', '75', '100' ] - time-limits: > - ['60', '120', '180' ] diff --git a/.github/workflows/pause-kill-matrix.yml b/.github/workflows/pause-kill-matrix.yml index b045a06..b85c259 100644 --- a/.github/workflows/pause-kill-matrix.yml +++ b/.github/workflows/pause-kill-matrix.yml @@ -7,13 +7,5 @@ jobs: pause-kill-matrix: uses: nurturenature/jepsen-powersync/.github/workflows/run-jepsen-tests.yml@main with: - workloads: > - [ 'powersync' ] - backend-connectors: > - [ 'CrudTransactionConnector'] nemeses: > [ 'pause', 'kill' ] - rates: > - [ '25', '50', '75', '100' ] - time-limits: > - ['60', '120', '180' ] diff --git a/.github/workflows/run-jepsen-tests.yml b/.github/workflows/run-jepsen-tests.yml index 2cd0f93..c92300a 100644 --- a/.github/workflows/run-jepsen-tests.yml +++ b/.github/workflows/run-jepsen-tests.yml @@ -6,28 +6,28 @@ on: workloads: description: Workloads (as JSON) type: string - required: true + required: false default: "[ 'powersync' ]" backend-connectors: description: Backend connector classes (as JSON) type: string - required: true + required: false default: "[ 'CrudTransactionConnector' ]" nemeses: description: 'Nemeses (as JSON)' type: string - required: true + required: false default: "[ 'none' ]" rates: description: 'Rates (as JSON)' type: string - required: true - default: "[ '150' ]" + required: false + default: "[ '10', '20', '30', '40', '50' ]" time-limits: description: 'Timelimits (as JSON)' type: string - required: true - default: "[ '100' ]" + required: false + default: "[ '100', '200', '300', '400', '500', '600']" cli-opts: description: 'CLI opts string' type: string @@ -39,33 +39,34 @@ on: workloads: description: 'Workloads (as JSON)' type: string - required: true + required: false default: "[ 'powersync' ]" backend-connectors: description: Backend connector classes (as JSON) type: string - required: true + required: false default: "[ 'CrudTransactionConnector' ]" nemeses: description: 'Nemeses (as JSON)' type: string - required: true + required: false default: "[ 'none' ]" rates: description: 'Rates (as JSON)' type: string - required: true - default: "[ '150' ]" + required: false + default: "[ '10', '20', '30', '40', '50' ]" time-limits: description: 'Timelimits (as JSON)' type: string - required: true - default: "[ '100' ]" + required: false + default: "[ '100', '200', '300', '400', '500', '600']" cli-opts: description: 'CLI opts string' type: string required: false default: --nodes n1,n2,n3,n4,n5 --postgres-nodes n1 + jobs: tests: runs-on: ubuntu-latest diff --git a/jepsen/src/powersync/cli.clj b/jepsen/src/powersync/cli.clj index a09a619..fe41f51 100644 --- a/jepsen/src/powersync/cli.clj +++ b/jepsen/src/powersync/cli.clj @@ -93,8 +93,8 @@ :faults (:nemesis opts) :disconnect-connect {:targets [:majority]} :partition-sync {:targets [:majority]} - :pause {:targets [:minority]} - :kill {:targets [:minority]} + :pause {:targets [:majority]} + :kill {:targets [:majority]} :interval (:nemesis-interval opts)})] (merge tests/noop-test opts