Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend CI timeout #237

Merged
merged 8 commits into from
Dec 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
25 changes: 23 additions & 2 deletions .pfnci/config.pbtxt
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
configs {
configs{
# Project name.
key: "chainerio"
value {
requirement {
cpu: 1
cpu: 2
memory: 6
disk: 10
}
# https://github.pfidev.jp/ci/imosci/blob/master/proto/data.proto#L933
time_limit {
seconds: 900 # 15 minutes
}
command:
"bash .pfnci/script.sh"
}
}

configs{
key: "pfio.old-python" # Tests that test old python versions, e.g. python 3.6
value {
requirement {
cpu: 1
memory: 6
disk: 10
}
# https://github.pfidev.jp/ci/imosci/blob/master/proto/data.proto#L933
time_limit {
seconds: 600 # 15 minutes
}
command:
"bash .pfnci/script-old.sh"
}
}
11 changes: 11 additions & 0 deletions .pfnci/script-old.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

set -eux

cd "$(dirname "${BASH_SOURCE}")"/..

gcloud auth configure-docker
# Prepare docker args.
docker run --rm --volume="$(pwd):/repo/" --workdir="/repo/" \
"asia.gcr.io/pfn-public-ci/pfio:latest" \
bash .pfnci/test-old.sh
9 changes: 9 additions & 0 deletions .pfnci/test-old.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -eux

source /root/.bash_docker
pyenv global 3.6.15 #3.7.12 3.8.12 3.9.7 3.10.0
python -m pip install --upgrade pip
pip install tox
pip install -e .[test]
tox -e py36
4 changes: 2 additions & 2 deletions .pfnci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -eux

source /root/.bash_docker
pyenv global 3.6.15 3.7.12 3.8.12 3.9.7 3.10.0
tox && :
pyenv global 3.7.12 3.8.12 3.9.7 3.10.0
tox -e py37,py38,py39,py310 && :
tox_status=$?

# test doc, needs python >= 3.6
Expand Down