diff --git a/.ci.yml b/.ci.yml index 7b15f1b..1cb5087 100644 --- a/.ci.yml +++ b/.ci.yml @@ -43,3 +43,35 @@ simple_test: - "*.ascii" - "*.txt" - "*.log" + +interactive_plot_test: + variables: + FAKE_DISK: "fake_disk.ext4" + FAKE_MOUNTPOINT: "fake_mountpoint" + script: + - pip install git+https://github.com/antmicro/servis#egg=servis[bokeh] + - dd if=/dev/zero of=$FAKE_DISK bs=1M count=130 + - mkfs.ext4 $FAKE_DISK + - mkdir -p $FAKE_MOUNTPOINT && mount $FAKE_DISK $FAKE_MOUNTPOINT + + - sargraph chart start -m $FAKE_MOUNTPOINT + + - pushd $FAKE_MOUNTPOINT + - df -h . + - stress -c 16 -i 1 -m 1 --vm-bytes 512M -d 1 --hdd-bytes 70M -t 160s + + - popd + + - sargraph chart save plot.html + - sargraph chart stop + + - test -f plot.html + - cat chart.log + artifacts: + when: always + paths: + - "*.txt" + - "*.log" + - "*.html" + + diff --git a/graph.py b/graph.py index 4d314a2..e04cce6 100644 --- a/graph.py +++ b/graph.py @@ -440,8 +440,8 @@ def servis_graph(session, fname='plot', output_ext='ascii'): [None]*5, y_titles, [None]*5, - # [(0, 160)]*5, - # [(0, 100)]*5, + [(0, 160)]*5, + [(0, 100)]*5, outpath=Path(fname), outputext=['html'], trimxvalues=False,