Skip to content

Commit

Permalink
Rebrand (#1)
Browse files Browse the repository at this point in the history
Rebrand documentation and source code.
  • Loading branch information
freeekanayaka authored Aug 10, 2023
2 parents c9a178a + 1682bf0 commit 0b9498d
Show file tree
Hide file tree
Showing 20 changed files with 152 additions and 163 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/cla-check.yml

This file was deleted.

76 changes: 38 additions & 38 deletions .github/workflows/test-build-run.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Callable Dqlite Jepsen tests
name: Callable Cowsql Jepsen tests

on:
workflow_dispatch:
inputs:
raft-repo:
description: 'raft repo'
default: 'canonical/raft'
default: 'cowsql/raft'
raft-ref:
description: 'raft branch or ref'
default: 'master'
dqlite-repo:
description: 'dqlite repo'
default: 'canonical/dqlite'
dqlite-ref:
description: 'dqlite branch or ref'
cowsql-repo:
description: 'cowsql repo'
default: 'cowsql/cowsql'
cowsql-ref:
description: 'cowsql branch or ref'
default: 'master'
go-dqlite-repo:
description: 'go-dqlite repo'
default: 'canonical/go-dqlite'
go-dqlite-ref:
description: 'go-dqlite branch or ref'
go-cowsql-repo:
description: 'go-cowsql repo'
default: 'cowsql/go-cowsql'
go-cowsql-ref:
description: 'go-cowsql branch or ref'
default: 'master'
workloads:
description: 'Jepsen workloads as JSON, e.g. [ append, bank ]'
Expand All @@ -28,18 +28,18 @@ on:
description: "Jepsen nemesis as JSON, e.g. [ 'pause,disk' ]"
required: true
disk:
description: "Enable or disable dqlite's disk-mode e.g. [ '0', '1' ]"
description: "Enable or disable cowsql's disk-mode e.g. [ '0', '1' ]"
required: true
cli-opts:
description: 'Jepsen cli opts, e.g. --node-targets primaries'
required: false
workflow_call:
inputs:
jepsen-dqlite-repo:
jepsen-cowsql-repo:
type: string
required: false
default: 'canonical/jepsen.dqlite'
jepsen-dqlite-ref:
default: 'cowsql/jepsen.ribon'
jepsen-cowsql-ref:
type: string
required: false
default: 'master'
Expand All @@ -55,16 +55,16 @@ on:
raft-ref:
type: string
required: false
dqlite-repo:
cowsql-repo:
type: string
required: false
dqlite-ref:
cowsql-ref:
type: string
required: false
go-dqlite-repo:
go-cowsql-repo:
type: string
required: false
go-dqlite-ref:
go-cowsql-ref:
type: string
required: false
workloads:
Expand All @@ -81,12 +81,12 @@ on:
required: false

env:
RAFT_REPO: 'canonical/raft'
RAFT_REPO: 'cowsql/raft'
RAFT_BRANCH: 'master'
DQLITE_REPO: 'canonical/dqlite'
DQLITE_BRANCH: 'master'
GO_DQLITE_REPO: 'canonical/go-dqlite'
GO_DQLITE_BRANCH: 'master'
COWSQL_REPO: 'cowsql/cowsql'
COWSQL_BRANCH: 'master'
GO_COWSQL_REPO: 'cowsql/go-cowsql'
GO_COWSQL_BRANCH: 'master'

jobs:
test:
Expand All @@ -102,8 +102,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
with:
repository: ${{ inputs.jepsen-dqlite-repo || github.repository }}
ref: ${{ inputs.jepsen-dqlite-ref || github.ref }}
repository: ${{ inputs.jepsen-cowsql-repo || github.repository }}
ref: ${{ inputs.jepsen-cowsql-ref || github.ref }}

- name: Cache Go modules
uses: actions/cache@v3
Expand Down Expand Up @@ -170,16 +170,16 @@ jobs:
sudo make install
sudo ldconfig
- name: Check out dqlite
- name: Check out cowsql
uses: actions/checkout@v3
with:
repository: ${{ inputs.dqlite-repo || env.DQLITE_REPO }}
ref: ${{ inputs.dqlite-ref || env.DQLITE_REF }}
path: dqlite
repository: ${{ inputs.cowsql-repo || env.COWSQL_REPO }}
ref: ${{ inputs.cowsql-ref || env.COWSQL_REF }}
path: cowsql

- name: Build dqlite
- name: Build cowsql
run: |
cd dqlite
cd cowsql
git log -n 1
autoreconf -i
./configure --enable-debug --enable-backtrace
Expand All @@ -193,7 +193,7 @@ jobs:
timeout-minutes: 8
run: |
go get golang.org/x/sync/semaphore
go get -tags libsqlite3 github.com/canonical/go-dqlite/app@master
go get -tags libsqlite3 github.com/cowsql/go-cowsql/app
go build -tags libsqlite3 -o resources/app resources/app.go
sudo ufw disable
sleep 0.200
Expand All @@ -219,9 +219,9 @@ jobs:
with:
name: jepsen-data-${{ matrix.workload }}-${{ matrix.nemesis }}-summary
path: |
store/dqlite*/**/results.edn
store/dqlite*/**/latency-raw.png
store/dqlite*/**/tail-jepsen.log
store/cowsql*/**/results.edn
store/cowsql*/**/latency-raw.png
store/cowsql*/**/tail-jepsen.log
!**/current/
!**/latest/
Expand All @@ -231,6 +231,6 @@ jobs:
with:
name: jepsen-data-${{ matrix.workload }}-${{ matrix.nemesis }}-failure
path: |
store/dqlite*
store/cowsql*
!**/current/
!**/latest/
28 changes: 14 additions & 14 deletions .github/workflows/test-custom.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Dqlite Jepsen tests - custom dispatch
name: Cowsql Jepsen tests - custom dispatch

on:
workflow_dispatch:
inputs:
raft-repo:
description: raft repo
default: canonical/raft
default: cowsql/raft
raft-ref:
description: raft branch or ref
default: master
dqlite-repo:
description: dqlite repo
default: canonical/dqlite
dqlite-ref:
description: dqlite branch or ref
cowsql-repo:
description: cowsql repo
default: cowsql/cowsql
cowsql-ref:
description: cowsql branch or ref
default: master
workloads:
description: Workloads as a JSON array, e.g. [ 'append' ]
Expand All @@ -22,23 +22,23 @@ on:
description: Nemeses as a JSON array, e.g. [ 'pause', 'disk' ]
required: true
disk:
description: "Enable or disable dqlite's disk-mode e.g. [ '0', '1 ]"
description: "Enable or disable cowsql's disk-mode e.g. [ '0', '1 ]"
required: true
cli-opts:
description: Jepsen cli opts, e.g. --node-targets primaries
required: false

jobs:
custom-dispatch:
uses: canonical/jepsen.dqlite/.github/workflows/test-build-run.yml@master
uses: cowsql/jepsen.ribon/.github/workflows/test-build-run.yml
with:
workloads: ${{ inputs.workloads }}
nemeses: ${{ inputs.nemeses }}
disk: ${{ inputs.disk }}
cli-opts: ${{ inputs.cli-opts }}
jepsen-dqlite-repo: canonical/jepsen.dqlite
jepsen-dqlite-ref: master
raft-repo: ${{ inputs.raft-repo || 'canonical/raft' }}
jepsen-cowsql-repo: cowsql/jepsen.ribon
jepsen-cowsql-ref: master
raft-repo: ${{ inputs.raft-repo || 'cowsql/raft' }}
raft-ref: ${{ inputs.raft-ref || 'master' }}
dqlite-repo: ${{ inputs.dqlite-repo || 'canonical/dqlite' }}
dqlite-ref: ${{ inputs.dqlite-ref || 'master' }}
cowsql-repo: ${{ inputs.cowsql-repo || 'cowsql/cowsql' }}
cowsql-ref: ${{ inputs.cowsql-ref || 'master' }}
26 changes: 13 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dqlite Jepsen tests - expected pass
name: Cowsql Jepsen tests - expected pass

on:
push:
Expand All @@ -9,15 +9,15 @@ on:
inputs:
raft-repo:
description: raft repo
default: canonical/raft
default: cowsql/raft
raft-ref:
description: raft branch or ref
default: master
dqlite-repo:
description: dqlite repo
default: canonical/dqlite
dqlite-ref:
description: dqlite branch or ref
cowsql-repo:
description: cowsql repo
default: cowsql/cowsql
cowsql-ref:
description: cowsql branch or ref
default: master

jobs:
Expand All @@ -31,10 +31,10 @@ jobs:
'partition,stop', 'partition,kill', 'partition,member',
'packet,stop', 'pause', 'partition,disk', 'pause,disk' ]
disk: >
[ '0', '1' ]
jepsen-dqlite-repo: ${{ github.repository }}
jepsen-dqlite-ref: ${{ github.ref }}
raft-repo: ${{ inputs.raft-repo || 'canonical/raft' }}
[ '0' ]
jepsen-cowsql-repo: ${{ github.repository }}
jepsen-cowsql-ref: ${{ github.ref }}
raft-repo: ${{ inputs.raft-repo || 'cowsql/raft' }}
raft-ref: ${{ inputs.raft-ref || 'master' }}
dqlite-repo: ${{ inputs.dqlite-repo || 'canonical/dqlite' }}
dqlite-ref: ${{ inputs.dqlite-ref || 'master' }}
cowsql-repo: ${{ inputs.cowsql-repo || 'cowsql/cowsql' }}
cowsql-ref: ${{ inputs.cowsql-ref || 'master' }}
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ All notable changes to this project will be documented in this file. This change
- Files from the new template.
- Widget maker public API - `make-widget-sync`.

[Unreleased]: https://github.com/your-name/jepsen.dqlite/compare/0.1.1...HEAD
[0.1.1]: https://github.com/your-name/jepsen.dqlite/compare/0.1.0...0.1.1
[Unreleased]: https://github.com/your-name/jepsen.cowsql/compare/0.1.1...HEAD
[0.1.1]: https://github.com/your-name/jepsen.cowsql/compare/0.1.0...0.1.1
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Dqlite Jepsen Test
# CowSQL Jepsen Test

A Clojure library designed to test Dqlite, an embedded SQL database with Raft
A Clojure library designed to test CowSQL, an embedded SQL database with Raft
consensus.

## What is being tested?

The tests run concurrent operations to some shared data from different nodes in
a Dqlite cluster, checking that the operations preserve the consistency
a CowSQL cluster, checking that the operations preserve the consistency
properties defined in each test. During the tests, various combinations of
nemeses can be added to interfere with the database operations and exercise the
database's consistency protocols.
Expand Down Expand Up @@ -35,7 +35,7 @@ See `lein run test --help` and `lein run test-all --help` for options.
#### Nemeses

+ **none** no nemesis
+ **kill** kills random Dqlite test application processes
+ **kill** kills random CowSQL test application processes
+ **partition** network partitions
+ **pause** process pauses
+ **member** remove or re-add a node
Expand Down
2 changes: 1 addition & 1 deletion doc/intro.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Introduction to jepsen.dqlite
# Introduction to jepsen.cowsql

TODO: write [great documentation](http://jacobian.org/writing/what-to-write/)
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module jepsen.dqlite
module jepsen.cowsql

go 1.13

require (
github.com/canonical/go-dqlite v1.11.7
github.com/cowsql/go-cowsql v1.21.0
golang.org/x/sync v0.1.0
)
10 changes: 5 additions & 5 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
(defproject jepsen.dqlite "0.1.0"
:description "Jepsen tests for Dqlite, a SQLite-based system with Raft consensus."
:url "https://dqlite.io"
(defproject jepsen.cowsql "0.1.0"
:description "Jepsen tests for Cowsql, a SQLite-based system with Raft consensus."
:url "https://cowsql.io"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.11.1"]
[jepsen "0.3.2"]
[clj-http "3.10.1"]]
:main jepsen.dqlite
:main jepsen.cowsql
:jvm-opts ["-Djava.awt.headless=true"
"-server"
;"-XX:+PrintGCDetails"
;"-verbose:gc"
]
:repl-options {:init-ns jepsen.dqlite}
:repl-options {:init-ns jepsen.cowsql}
:plugins [[lein-codox "0.10.8"]
[lein-localrepo "0.5.4"]]
:codox {:output-path "target/doc/"
Expand Down
Loading

0 comments on commit 0b9498d

Please sign in to comment.