aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorSamYaple <sam@yaple.net>2016-01-12 20:52:00 +0000
committerSamYaple <sam@yaple.net>2016-01-21 22:59:13 +0000
commit6adb5c0aa5a5947bdeeb03b03cba29af30902d2f (patch)
tree3d1182a9ab914af5759e4a11d21bf0ac8fbee429 /tox.ini
parente00dc579c11434e46d49c2951d7bf8333bd6a534 (diff)
downloadkolla-6adb5c0aa5a5947bdeeb03b03cba29af30902d2f.tar.gz
kolla-6adb5c0aa5a5947bdeeb03b03cba29af30902d2f.zip
Convert gate to file backend rather than partition
The existing gate partitioned a disk for use with docker, depending on the gate it would use the swap disk (RAX) or a spare disk (HP). However, with the new gates (Bluebox + OVH) there is neither a spare disk nor a swap disk. This leaves us with one choice: File based loop device. This patch creates a file at /swapfile to ensure we have swap. It creates a file at /docker to ensure we have a loop device for Docker. Right now the /docker file is 10GB and the /swapfile is 4GB due to size limitations in the gate across all servers and types. This has proven to be enough space for all our current tests. Additionally, reduce the number of threads the gate uses to 4 to prevent the lockup and hour timeout we have been seeing as more recently in the gate. The scripts that setup the gate are moved to the tools directory rather than the tests directory to match the structure of the other projects. Partially-Implements: blueprint functional-testing-gate Change-Id: I3e370f2382b6df36103d8b2ceda9b21d9b4229d5
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini18
1 files changed, 13 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index 478b267a7..6bc6c21dd 100644
--- a/tox.ini
+++ b/tox.ini
@@ -45,8 +45,9 @@ commands =
{toxinidir}/tools/run-bashate.sh
[testenv:setupenv]
-whitelist_externals = bash
-commands = bash -c tests/setup_gate.sh
+commands =
+ {toxinidir}/tools/setup_gate.sh
+ {toxinidir}/tools/dump_info.sh
[testenv:build-centos-binary]
whitelist_externals = find
@@ -58,6 +59,7 @@ commands =
find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.BuildTestCentosBinary
+ {toxinidir}/tools/dump_info.sh
[testenv:build-centos-source]
whitelist_externals = find
@@ -69,6 +71,7 @@ commands =
find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.BuildTestCentosSource
+ {toxinidir}/tools/dump_info.sh
[testenv:build-ubuntu-source]
whitelist_externals = find
@@ -80,6 +83,7 @@ commands =
find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.BuildTestUbuntuSource
+ {toxinidir}/tools/dump_info.sh
[testenv:deploy-centos-binary]
whitelist_externals = find
@@ -91,7 +95,8 @@ commands =
find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.DeployTestCentosBinary
- sudo tests/deploy_aio.sh centos binary
+ sudo {toxinidir}/tools/deploy_aio.sh centos binary
+ {toxinidir}/tools/dump_info.sh
[testenv:deploy-centos-source]
whitelist_externals = find
@@ -103,7 +108,8 @@ commands =
find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.DeployTestCentosSource
- sudo tests/deploy_aio.sh centos source
+ sudo {toxinidir}/tools/deploy_aio.sh centos source
+ {toxinidir}/tools/dump_info.sh
[testenv:deploy-ubuntu-source]
whitelist_externals = find
@@ -115,7 +121,8 @@ commands =
find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.DeployTestUbuntuSource
- sudo tests/deploy_aio.sh ubuntu source
+ sudo {toxinidir}/tools/deploy_aio.sh ubuntu source
+ {toxinidir}/tools/dump_info.sh
[testenv:deploy-multinode-ubuntu-source]
whitelist_externals = find
@@ -127,6 +134,7 @@ commands =
find . -type f -name "*.pyc" -delete
bash -c "if [ ! -d .testrepository ]; then testr init; fi"
sudo -E -g docker testr run test_build.BuildTestUbuntuSource
+ {toxinidir}/tools/dump_info.sh
[testenv:genconfig]
whitelist_externals = which