Skip to content
Snippets Groups Projects
Commit b43dbe2a authored by Jean-Luc Parouty's avatar Jean-Luc Parouty
Browse files

Update CI stuffs

parent 73814c15
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id: tags:
<img width="800px" src="../fidle/img/00-Fidle-header-01.svg"></img>
# Gestion des tests d'intégration continue
**La liste des notebooks a éxécuter** et de leurs paramètres (override) est définie dans un **profile**.\
Un **rapport d'éxécution** est généré durant l'éxécution des tests.
## Step 1 - Init
%% Cell type:code id: tags:
``` python
```
import cookci
import os
import pwk
datasets_dir = pwk.init('RUNCI')
```
%% Cell type:markdown id: tags:
## Step 2 - Profile
## Step 2 - Profile and parameters
`profile_name`: ci profile name - see en ./ci
`reset`: reset or not the catalog of results
`filters`: regex to define witch notebook will be run, examples :
- `.*`
- `Nb_GTSRB.*|Nb_AE.*`
- `Nb_VAE3`
%% Cell type:code id: tags:
``` python
```
profile_name = './ci/small_cpu.yml'
reset = False
filter = 'Nb_LINR1'
reset=True
filter='.*'
profile_name = os.getenv('FIDLE_OVERRIDE_PROFILE', profile_name )
pwk.override('profile_name', 'reset', 'filter')
```
%% Cell type:markdown id: tags:
## Step 3 - Run it
%% Cell type:code id: tags:
``` python
```
cookci.run_profile(profile_name, reset, filter)
cookci.build_ci_report(profile_name)
```
%% Cell type:code id: tags:
``` python
```
%%bash
tree ./run/ci
find .. -name "*==ci==.*" -ls | sort -k11
# find .. -name "*==ci==.*" -ls | sort -k11
# rm $(find .. -name "*==ci==.ipynb")
# rm $(find .. -name "*==ci==.html")
```
%% Cell type:markdown id: tags:
---
<img width="80px" src="../fidle/img/00-Fidle-logo-01.svg"></img>
......
......@@ -30,7 +30,9 @@
MODULE_ENV="tensorflow-gpu/py3/2.5.0"
NOTEBOOK_DIR="$WORK/fidle/fidle"
FIDLE_OVERRIDE_PROFILE="./ci/small_cpu.yml"
FIDLE_OVERRIDE_RUNCI_profile_name='./ci/small_cpu.yml'
FIDLE_OVERRIDE_RUNCI_reset='False'
FIDLE_OVERRIDE_RUNCI_filter='Nb_GTSRB.*|Nb_AE.*'
NOTEBOOK_SRC1="02-running-ci-tests.ipynb"
......
......@@ -90,7 +90,7 @@ Nb_GTSRB2:
notebook_src: 02-First-convolutions.ipynb
notebook_tag: default
overrides:
run_dir: ./run/GTSRB2_done
run_dir: default
enhanced_dir: '{datasets_dir}/GTSRB/enhanced'
dataset_name: set-24x24-L
batch_size: 64
......@@ -104,7 +104,7 @@ Nb_GTSRB3:
notebook_src: 03-Tracking-and-visualizing.ipynb
notebook_tag: default
overrides:
run_dir: ./run/GTSRB3_done
run_dir: default
enhanced_dir: '{datasets_dir}/GTSRB/enhanced'
dataset_name: set-24x24-L
batch_size: 64
......@@ -118,7 +118,7 @@ Nb_GTSRB4:
notebook_src: 04-Data-augmentation.ipynb
notebook_tag: default
overrides:
run_dir: ./run/GTSRB4_done
run_dir: default
enhanced_dir: '{datasets_dir}/GTSRB/enhanced'
dataset_name: set-24x24-L
batch_size: 64
......@@ -130,7 +130,7 @@ Nb_GTSRB5_r1:
notebook_id: GTSRB5
notebook_dir: GTSRB
notebook_src: 05-Full-convolutions.ipynb
notebook_tag: =1==ci==
notebook_tag: =1==done==
overrides:
run_dir: ./run/GTSRB5_done
enhanced_dir: '{datasets_dir}/GTSRB/enhanced'
......@@ -146,9 +146,9 @@ Nb_GTSRB5_r2:
notebook_id: GTSRB5
notebook_dir: GTSRB
notebook_src: 05-Full-convolutions.ipynb
notebook_tag: =1==ci==
notebook_tag: =2==done==
overrides:
run_dir: ./run/GTSRB5_done
run_dir: default
enhanced_dir: '{datasets_dir}/GTSRB/enhanced'
datasets: "['set-24x24-L', 'set-24x24-RGB', 'set-48x48-L', 'set-48x48-RGB', 'set-24x24-L-LHE', 'set-24x24-RGB-HE', 'set-48x48-L-LHE', 'set-48x48-RGB-HE']"
models: "{'v1':'get_model_v1', 'v2':'get_model_v2', 'v3':'get_model_v3'}"
......@@ -162,9 +162,9 @@ Nb_GTSRB5_r3:
notebook_id: GTSRB5
notebook_dir: GTSRB
notebook_src: 05-Full-convolutions.ipynb
notebook_tag: =2==ci==
notebook_tag: =3==done==
overrides:
run_dir: ./run/GTSRB5_done
run_dir: default
enhanced_dir: '{datasets_dir}/GTSRB/enhanced'
datasets: "['set-48x48-L', 'set-48x48-RGB']"
models: "{'v2':'get_model_v2', 'v3':'get_model_v3'}"
......@@ -186,8 +186,8 @@ Nb_GTSRB7:
notebook_src: 07-Show-report.ipynb
notebook_tag: default
overrides:
run_dir: ./run/GTSRB7_done
report_dir: ./run/GTSRB5_done
run_dir: default
report_dir: ./run/GTSRB5
#
# ------ IMDB ------------------------------------------------------
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment