Skip to content

Commit

Permalink
Merge pull request #2 from nurturenature/refactor-actions
Browse files Browse the repository at this point in the history
refactor actions' matrices
  • Loading branch information
nurturenature authored Aug 22, 2024
2 parents c99510e + d8b9bf9 commit 0ac7025
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 61 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/active-active-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
8 changes: 0 additions & 8 deletions .github/workflows/convergence-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,3 @@ jobs:
with:
workloads: >
[ 'convergence' ]
backend-connectors: >
[ 'CrudTransactionConnector']
nemeses: >
[ 'none' ]
rates: >
[ '25', '50', '75', '100' ]
time-limits: >
['30', '60', '100' ]
8 changes: 0 additions & 8 deletions .github/workflows/disconnect-connect-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
8 changes: 0 additions & 8 deletions .github/workflows/partition-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
8 changes: 0 additions & 8 deletions .github/workflows/pause-kill-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
29 changes: 15 additions & 14 deletions .github/workflows/run-jepsen-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions jepsen/src/powersync/cli.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ac7025

Please sign in to comment.