Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #882 from Hakuyume/cache-models
Browse files Browse the repository at this point in the history
Enable model cache in pfnCI
  • Loading branch information
yuyu2172 authored May 29, 2019
2 parents 76e7201 + 2c8a43f commit a709539
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 18 deletions.
24 changes: 12 additions & 12 deletions .pfnci/config.pbtxt
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ configs {
key: "chainercv.py2.stable.examples"
value {
requirement {
cpu: 4
memory: 24
cpu: 6
memory: 36
disk: 10
gpu: 2
}
Expand Down Expand Up @@ -245,8 +245,8 @@ configs {
key: "chainercv.py2.latest.examples"
value {
requirement {
cpu: 4
memory: 24
cpu: 6
memory: 36
disk: 10
gpu: 2
}
Expand Down Expand Up @@ -372,8 +372,8 @@ configs {
key: "chainercv.py2.master.examples"
value {
requirement {
cpu: 4
memory: 24
cpu: 6
memory: 36
disk: 10
gpu: 2
}
Expand Down Expand Up @@ -499,8 +499,8 @@ configs {
key: "chainercv.py3.stable.examples"
value {
requirement {
cpu: 4
memory: 24
cpu: 6
memory: 36
disk: 10
gpu: 2
}
Expand Down Expand Up @@ -626,8 +626,8 @@ configs {
key: "chainercv.py3.latest.examples"
value {
requirement {
cpu: 4
memory: 24
cpu: 6
memory: 36
disk: 10
gpu: 2
}
Expand Down Expand Up @@ -753,8 +753,8 @@ configs {
key: "chainercv.py3.master.examples"
value {
requirement {
cpu: 4
memory: 24
cpu: 6
memory: 36
disk: 10
gpu: 2
}
Expand Down
9 changes: 6 additions & 3 deletions .pfnci/examples_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ set -eux
. $(dirname $0)/common.sh

apt-get install -y --no-install-recommends unzip
gsutil -q cp gs://chainercv-pfn-public-ci/datasets-tiny.zip .
unzip -q datasets-tiny.zip
rm datasets-tiny.zip
for ZIP in datasets-tiny.zip models.zip
do
gsutil -q cp gs://chainercv-pfn-public-ci/${ZIP} .
unzip -q ${ZIP}
rm ${ZIP}
done

curl -L https://cloud.githubusercontent.com/assets/2062128/26187667/9cb236da-3bd5-11e7-8bcf-7dbd4302e2dc.jpg \
-o sample.jpg
Expand Down
3 changes: 3 additions & 0 deletions .pfnci/gen_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
$ python gen_config.py > config.pbtxt
"""

from __future__ import print_function
from collections import OrderedDict
import itertools

Expand Down Expand Up @@ -39,6 +40,8 @@ def test_config(python, chainer, optional, target):
value['command'] = 'sh .pfnci/tests_gpu.sh'
elif target == 'examples':
key += '.examples'
value['requirement']['cpu'] = 6
value['requirement']['memory'] = 36
value['requirement']['gpu'] = 2
value['time_limit'] = {'seconds': 1800}
value['command'] = 'sh .pfnci/examples_tests.sh'
Expand Down
9 changes: 6 additions & 3 deletions .pfnci/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ set -eux
. $(dirname $0)/common.sh

apt-get install -y --no-install-recommends unzip
gsutil -q cp gs://chainercv-pfn-public-ci/datasets-tiny.zip .
unzip -q datasets-tiny.zip
rm datasets-tiny.zip
for ZIP in datasets-tiny.zip models.zip
do
gsutil -q cp gs://chainercv-pfn-public-ci/${ZIP} .
unzip -q ${ZIP}
rm ${ZIP}
done

docker run --interactive --rm \
--volume $(pwd):/root/ --workdir /root/ \
Expand Down

0 comments on commit a709539

Please sign in to comment.