Skip to content

Commit 26260a1

Browse files
authored
Merge pull request #3263 from cesanta/tests
building health dashboard
2 parents 0568b5a + 9e82844 commit 26260a1

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/nightly.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
ssh-private-key: ${{ secrets.HEALTH_TESTS_SSH_KEY }}
4343
- run: sudo apt -y update ; sudo apt -y install libmbedtls-dev libwolfssl-dev && test/setup_mqtt_server.sh && make -C test ${{ matrix.target }} > log
4444
- run: test/health.awk < log > json
45-
- run: scp -o "StrictHostKeyChecking=no" json "[email protected]:/data/downloads/linux_${{ matrix.target }}_${{ matrix.cc }}_${{ matrix.ssl }}_${{ matrix.select }}_$(date +"%Y%m%d").json"
45+
- run: scp -o "StrictHostKeyChecking=no" json "[email protected]:/data/downloads/health/linux_${{ matrix.target }}_${{ matrix.cc }}_${{ matrix.ssl }}_${{ matrix.select }}_$(date +"%Y%m%d").json"
4646
mip:
4747
runs-on: ubuntu-latest
4848
strategy:
@@ -68,7 +68,7 @@ jobs:
6868
ssh-private-key: ${{ secrets.HEALTH_TESTS_SSH_KEY }}
6969
- run: if [ "${{ matrix.target }}" == "mip_tap_test" ]; then ./test/setup_ga_network.sh ; fi && sudo apt -y update ; sudo apt -y install libmbedtls-dev libwolfssl-dev && make -C test ${{ matrix.target }} IPV6=0 > log
7070
- run: test/health.awk < log > json
71-
- run: scp -o "StrictHostKeyChecking=no" json "[email protected]:/data/downloads/${{ matrix.target }}_${{ matrix.cc }}_${{ matrix.ssl }}_$(date +"%Y%m%d").json"
71+
- run: scp -o "StrictHostKeyChecking=no" json "[email protected]:/data/downloads/health/${{ matrix.target }}_${{ matrix.cc }}_${{ matrix.ssl }}_$(date +"%Y%m%d").json"
7272

7373
mip89:
7474
runs-on: ubuntu-latest
@@ -169,7 +169,7 @@ jobs:
169169
- run: /opt/homebrew/opt/mosquitto/sbin/mosquitto -c /Users/runner/work/mongoose/mongoose/test/mosquitto.conf.macos &
170170
- run: make -C test test ASAN_OPTIONS= MBEDTLS=$(echo $(brew --cellar)/mbedtls*/*) OPENSSL=$(echo $(brew --cellar)/openssl*/*) WOLFSSL=$(echo $(brew --cellar)/wolfssl*/*) > log
171171
- run: test/health.awk < log > json
172-
- run: scp -o "StrictHostKeyChecking=no" json "[email protected]:/data/downloads/macos_test_cc_${{ matrix.ssl }}_${{ matrix.select }}_$(date +"%Y%m%d").json"
172+
- run: scp -o "StrictHostKeyChecking=no" json "[email protected]:/data/downloads/health/macos_test_cc_${{ matrix.ssl }}_${{ matrix.select }}_$(date +"%Y%m%d").json"
173173

174174
windows:
175175
runs-on: ubuntu-latest
@@ -195,7 +195,7 @@ jobs:
195195
ssh-private-key: ${{ secrets.HEALTH_TESTS_SSH_KEY }}
196196
- run: ./test/setup_mqtt_server.sh && make -C test ${{ matrix.target }} > log
197197
- run: test/health.awk < log > json
198-
- run: scp -o "StrictHostKeyChecking=no" json "[email protected]:/data/downloads/windows_${{ matrix.target }}_${{ matrix.cc }}_${{ matrix.ssl }}_${{ matrix.select }}_$(date +"%Y%m%d").json"
198+
- run: scp -o "StrictHostKeyChecking=no" json "[email protected]:/data/downloads/health/windows_${{ matrix.target }}_${{ matrix.cc }}_${{ matrix.ssl }}_${{ matrix.select }}_$(date +"%Y%m%d").json"
199199

200200
arm:
201201
runs-on: ubuntu-latest
@@ -233,7 +233,7 @@ jobs:
233233
- run: sudo apt -y install libpcap-dev
234234
- run: make -C test tutorials CFLAGS_EXTRA="${{ matrix.ssl }}" > log
235235
- run: test/health.awk < log > json
236-
- run: scp -o "StrictHostKeyChecking=no" json "[email protected]:/data/downloads/tutorials_${{ matrix.ssl }}_$(date +"%Y%m%d").json"
236+
- run: scp -o "StrictHostKeyChecking=no" json "[email protected]:/data/downloads/health/tutorials_${{ matrix.ssl }}_$(date +"%Y%m%d").json"
237237
- run: make -C test clean_tutorials
238238

239239
tutorials_win:

test/health.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
cd /data/downloads/health
4+
find . -mtime +28 -not -name 'index*.json' -delete
5+
find . -name "*.json" -not -name 'index*.json' | jq -R . | jq -s . > index.json

0 commit comments

Comments
 (0)