nightly/hourly job to run testground testplans (#253)

* schedule a job every 5min.

* upgrade FFI again

* download testground with supervisor; run async job

* fixup
This commit is contained in:
Anton Evangelatov 2020-09-17 18:22:09 +02:00 committed by GitHub
parent ea56e56ec1
commit 1c9257d537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 5 deletions

View File

@ -28,6 +28,17 @@ workflows:
main: main:
jobs: jobs:
- soup-build-linux - soup-build-linux
- trigger-baseline-testplan
nightly:
triggers:
- schedule:
cron: "45 * * * *"
filters:
branches:
only:
- master
jobs:
- trigger-baseline-testplan
jobs: jobs:
soup-build-linux: soup-build-linux:
@ -37,3 +48,16 @@ jobs:
- run: - run:
name: "build lotus-soup" name: "build lotus-soup"
command: pushd lotus-soup && go build -tags=testground . command: pushd lotus-soup && go build -tags=testground .
trigger-baseline-testplan:
executor: golang
steps:
- setup
- run:
name: "download testground"
command: wget https://gist.github.com/nonsense/5fbf3167cac79945f658771aed32fc44/raw/2e7ced2b1d0ca54033be57299e3fefb840958dfb/testground-3ee0dae -O ~/testground-cli && chmod +x ~/testground-cli
- run:
name: "prepare .env.toml"
command: pushd lotus-soup && mkdir -p $HOME/testground && cp env-ci.toml $HOME/testground/.env.toml && echo 'endpoint="'$endpoint'"' >> $HOME/testground/.env.toml && echo 'token="'$token'"' >> $HOME/testground/.env.toml
- run:
name: "trigger baseline test plan on testground ci"
command: mkdir -p $HOME/testground/plans && mv lotus-soup $HOME/testground/plans/ && ~/testground-cli run composition -f $HOME/testground/plans/lotus-soup/_compositions/baseline-k8s-3-1.toml

View File

@ -6,17 +6,17 @@ download-proofs:
go run github.com/filecoin-project/go-paramfetch/paramfetch 2048 ./docker-images/proof-parameters.json go run github.com/filecoin-project/go-paramfetch/paramfetch 2048 ./docker-images/proof-parameters.json
build-images: build-images:
docker build -t "iptestground/oni-buildbase:v7" -f "docker-images/Dockerfile.oni-buildbase" "docker-images" docker build -t "iptestground/oni-buildbase:v8" -f "docker-images/Dockerfile.oni-buildbase" "docker-images"
docker build -t "iptestground/oni-runtime:v3" -f "docker-images/Dockerfile.oni-runtime" "docker-images" docker build -t "iptestground/oni-runtime:v3" -f "docker-images/Dockerfile.oni-runtime" "docker-images"
docker build -t "iptestground/oni-runtime:v4-debug" -f "docker-images/Dockerfile.oni-runtime-debug" "docker-images" docker build -t "iptestground/oni-runtime:v4-debug" -f "docker-images/Dockerfile.oni-runtime-debug" "docker-images"
push-images: push-images:
docker push iptestground/oni-buildbase:v5 docker push iptestground/oni-buildbase:v8
docker push iptestground/oni-runtime:v3 docker push iptestground/oni-runtime:v3
docker push iptestground/oni-runtime:v4-debug docker push iptestground/oni-runtime:v4-debug
pull-images: pull-images:
docker pull iptestground/oni-buildbase:v5 docker pull iptestground/oni-buildbase:v8
docker pull iptestground/oni-runtime:v3 docker pull iptestground/oni-runtime:v3
docker pull iptestground/oni-runtime:v4-debug docker pull iptestground/oni-runtime:v4-debug

View File

@ -223,6 +223,7 @@ Additional to the Filecoin FFI Git submodules, we are also bundling `proof param
* `v5` => locking in Filecoin FFI commit cddc56607e1d851ea6d09d49404bd7db70cb3c2e. * `v5` => locking in Filecoin FFI commit cddc56607e1d851ea6d09d49404bd7db70cb3c2e.
* `v6` => locking in Filecoin FFI commit 40569104603407c999d6c9e4c3f1228cbd4d0e5c. * `v6` => locking in Filecoin FFI commit 40569104603407c999d6c9e4c3f1228cbd4d0e5c.
* `v7` => add Filecoin-BLST repo to buildbase. * `v7` => add Filecoin-BLST repo to buildbase.
* `v8` => locking in Filecoin FFI commit f640612a1a1f7a2d.
### oni-runtime ### oni-runtime

View File

@ -4,7 +4,7 @@ FROM golang:${GO_VERSION}-buster
RUN apt-get update && apt-get install -y ca-certificates llvm clang mesa-opencl-icd ocl-icd-opencl-dev jq gcc git pkg-config bzr RUN apt-get update && apt-get install -y ca-certificates llvm clang mesa-opencl-icd ocl-icd-opencl-dev jq gcc git pkg-config bzr
ARG FILECOIN_FFI_COMMIT=40569104603407c999d6c9e4c3f1228cbd4d0e5c ARG FILECOIN_FFI_COMMIT=f640612a1a1f7a2d
ARG FFI_DIR=/extra/filecoin-ffi ARG FFI_DIR=/extra/filecoin-ffi
RUN mkdir -p ${FFI_DIR} \ RUN mkdir -p ${FFI_DIR} \

1
lotus-soup/env-ci.toml Normal file
View File

@ -0,0 +1 @@
[client]

View File

@ -10,7 +10,7 @@ enabled = true
[builders."docker:go"] [builders."docker:go"]
enabled = true enabled = true
build_base_image = "iptestground/oni-buildbase:v7" build_base_image = "iptestground/oni-buildbase:v8"
runtime_image = "iptestground/oni-runtime:v4-debug" runtime_image = "iptestground/oni-runtime:v4-debug"
[runners."local:exec"] [runners."local:exec"]