Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c31d44c
avoid committing ./***.json
NikolayS Jun 27, 2018
ebd10b7
...and ./***.gz
NikolayS Jun 27, 2018
f648b41
--container-id to support tests in CircleCI (WIP)
NikolayS Jun 27, 2018
26282c2
Merge branch 'master' into option_run_on
NikolayS Jun 29, 2018
db220d3
typo; redundant leading slash; started to narrow code to width=80
NikolayS Jun 29, 2018
9fa617a
fix making hardlinks (understand file://)
NikolayS Jun 29, 2018
7561fa5
revert to implicit if / fix tests
NikolayS Jun 29, 2018
4718dd3
attempt to fix "local" tests
NikolayS Jun 29, 2018
adf1f8b
again, skip "local" tests (tmp)
NikolayS Jun 29, 2018
07a196b
CI: do not pass if some tests fail
NikolayS Jun 29, 2018
e993e0b
CI: accumulate errors
NikolayS Jun 29, 2018
1c5a31d
CI: accumulate errors
NikolayS Jun 29, 2018
d123432
refactor one test, attempt to make it work
NikolayS Jun 29, 2018
c5263d4
refactor one test, attempt to make it work
NikolayS Jun 29, 2018
6ef499e
refactor one test, attempt to make it work
NikolayS Jun 29, 2018
9ef0ffe
Use containerHash for localhost container in common dir
Jun 29, 2018
57da0a3
fix wording
NikolayS Jun 29, 2018
2507ff5
CI: two more tests to be working
NikolayS Jun 29, 2018
bd606ae
CI: static tests must work now
NikolayS Jun 29, 2018
0594198
CI: static tests must work now
NikolayS Jun 29, 2018
bc6e7cc
CI: static tests must work now
NikolayS Jun 29, 2018
1e38590
CI: static tests must work now
NikolayS Jun 29, 2018
bd5ce4a
CI: add 2nd container (postgres)
NikolayS Jun 29, 2018
4dd9582
CI: simplify syntax
NikolayS Jun 29, 2018
02a925f
typo
NikolayS Jun 29, 2018
be8d9b2
CI: try setup_remote_docker
NikolayS Jun 29, 2018
c2a9cf6
CI: try full test
NikolayS Jun 29, 2018
3d48def
remove additional layer in the path of tmp dir
NikolayS Jun 29, 2018
8700768
CI: skip full/local tests
NikolayS Jun 29, 2018
fef8856
basic README
NikolayS Jun 29, 2018
945db4a
CI: skip full/local tests
NikolayS Jun 29, 2018
682cd6d
code style improved
NikolayS Jun 29, 2018
d964c01
Update README.md
NikolayS Jun 29, 2018
63356cb
grammar fixes
NikolayS Jun 29, 2018
4e16bf2
Update README.md
NikolayS Jun 29, 2018
d5f8a3e
Debug outpu removed + code formating fixed
Jun 29, 2018
45c96ea
Aws paths fix
Jun 29, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,29 @@ jobs:
apt-get update && apt-get install -y sudo wget \
&& wget get.docker.com -q -S -O - | sudo sh
- checkout
- setup_remote_docker
- run:
name: Install Docker client
command: |
set -x
VER="17.03.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
- run:
name: Tests
command: |
errcount=0; for f in tests/*.sh; do printf "$f\t\t" && bash "$f" -H; \
status=$?; \
if [ $status -ne 0 ]; then \
errcount="$(($errcount+1))"; \
fi; done;
#[ $errcount -ne 0 ] && echo -e "Oh no! $errcount tests failed"
#[ $errcount -ne 0 ] && exit 1
errcount=0
for f in tests/*.sh; do
printf "$f\t\t"
bash "$f" -H
status=$?
if [ $status -ne 0 ]; then
errcount="$(($errcount+1))"
fi
done
if [ $errcount -ne 0 ]; then
>&2 echo "Oh no! $errcount tests failed"
exit 1
fi

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.circleci/tmp
./*.json
./*.gz
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Description
===
Nancy helps to conduct automated database experiments.

The Nancy Command Line Interface is a unified way to manage database
experiments.

Experiments are needed every time you:
- add or remove indexes;
- want to verify query optimization ideas;
- need to tune database parameters;
- want to perform performance/stress test for your DB;
- are preparing to upgrade your DBMS to the new major version;
- want to train ML model related to DB optimization.

Currently Nancy works only with PostgreSQL versions 9.6 and 10.

Requirements
===
To use Nancy CLI you need Linux or MacOS with installed Docker. If you plan
to run experiments in AWS EC2 instances, you also need Docker Machine
(https://docs.docker.com/machine/).

Installation
===
```bash
git clone https://github.com/startupturbo/nancy
echo "export PATH=\$PATH:"$(pwd)"/nancy" >> ~/.bashrc
source ~/.bashrc
```

Getting started
===
Start with these commands:
```bash
nancy help
nancy run help
```

1 change: 1 addition & 0 deletions nancy
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ case "$1" in
if [ ! -f "${BASH_SOURCE%/*}/nancy_$1.sh" ]
then
>&2 echo "ERROR: Unknown command."
>&2 echo "Try 'nancy help'"
exit 1;
fi
cmd="${BASH_SOURCE%/*}/nancy_$1.sh"
Expand Down
Loading