Skip to content

Commit 98ff600

Browse files
web: move results of QUIC runs to logs/quic/ (#474)
1 parent e2c13cb commit 98ff600

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/cleanup.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
key: ${{ secrets.INTEROP_SEEMANN_IO_SSH_KEY }}
1717
script: |
1818
delete_oldest_folder() {
19-
OLDEST_DIR=$(find "${{ vars.LOG_DIR }}" -mindepth 1 -maxdepth 1 -type d -printf '%T+ %p\n' | sort | head -n 1 | cut -d" " -f2-)
19+
OLDEST_DIR=$(find "${{ vars.LOG_DIR_QUIC }}" -mindepth 1 -maxdepth 1 -type d -printf '%T+ %p\n' | sort | head -n 1 | cut -d" " -f2-)
2020
if [[ -n "$OLDEST_DIR" ]]; then
2121
echo "Deleting oldest directory: $OLDEST_DIR"
2222
rm -rf "$OLDEST_DIR"
@@ -25,7 +25,7 @@ jobs:
2525
2626
# Loop until enough space is available or no directories left to delete
2727
while true; do
28-
AVAILABLE_SPACE_GB=$(df -BG "${{ vars.LOG_DIR }}" | tail -n 1 | awk '{print $4}' | sed 's/G//')
28+
AVAILABLE_SPACE_GB=$(df -BG "${{ vars.LOG_DIR_QUIC }}" | tail -n 1 | awk '{print $4}' | sed 's/G//')
2929
echo "Available Space: $AVAILABLE_SPACE_GB GB"
3030
3131
if [[ "$AVAILABLE_SPACE_GB" -lt 50 ]]; then
@@ -38,6 +38,6 @@ jobs:
3838
done
3939
4040
TEMP_FILE=$(mktemp)
41-
find "${{ vars.LOG_DIR }}" -mindepth 1 -maxdepth 1 -type d -not -name 'lost+found' -exec basename {} \; | sort > "$TEMP_FILE"
42-
jq -R -s 'split("\n") | map(select(. != ""))' "$TEMP_FILE" > "${{ vars.LOG_DIR }}/logs.json"
41+
find "${{ vars.LOG_DIR_QUIC }}" -mindepth 1 -maxdepth 1 -type d -not -name 'lost+found' -exec basename {} \; | sort > "$TEMP_FILE"
42+
jq -R -s 'split("\n") | map(select(. != ""))' "$TEMP_FILE" > "${{ vars.LOG_DIR_QUIC }}/logs.json"
4343
rm -f "$TEMP_FILE"

.github/workflows/interop-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
with:
9292
switches: -avzr --relative
9393
path: logs/./${{ inputs.server }}_${{ matrix.client }}/
94-
remote_path: ${{ vars.LOG_DIR }}/${{ inputs.logname }}
94+
remote_path: ${{ vars.LOG_DIR_QUIC }}/${{ inputs.logname }}
9595
remote_host: interop.seemann.io
9696
remote_user: ${{ secrets.INTEROP_SEEMANN_IO_USER }}
9797
remote_key: ${{ secrets.INTEROP_SEEMANN_IO_SSH_KEY }}

.github/workflows/interop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
with:
151151
switches: -avzr
152152
path: result.json
153-
remote_path: ${{ vars.LOG_DIR }}/${{ needs.config.outputs.logname }}/
153+
remote_path: ${{ vars.LOG_DIR_QUIC }}/${{ needs.config.outputs.logname }}/
154154
remote_host: interop.seemann.io
155155
remote_user: ${{ secrets.INTEROP_SEEMANN_IO_USER }}
156156
remote_key: ${{ secrets.INTEROP_SEEMANN_IO_SSH_KEY }}
@@ -163,7 +163,7 @@ jobs:
163163
key: ${{ secrets.INTEROP_SEEMANN_IO_SSH_KEY }}
164164
envs: LOGNAME
165165
script: |
166-
cd ${{ vars.LOG_DIR }}
166+
cd ${{ vars.LOG_DIR_QUIC }}
167167
jq '. += [ "${{ needs.config.outputs.logname }}" ]' logs.json | sponge logs.json
168168
rm latest || true
169169
ln -s $LOGNAME latest

web/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
a.className = "btn btn-xs btn-" + color_type[res] + " " + res + " test-" + text.toLowerCase();
2525
var ttip_target = a;
2626
if (res !== "unsupported") {
27-
a.href = "logs/" + log_dir + "/" + server + "_" + client + "/" + test;
27+
a.href = "logs/quic/" + log_dir + "/" + server + "_" + client + "/" + test;
2828
a.target = "_blank";
2929
ttip += "<br><br>(Click for logs.)";
3030
} else {
@@ -272,7 +272,7 @@
272272
document.getElementById("run-selection-msg").innerHTML = "";
273273
var xhr = new XMLHttpRequest();
274274
xhr.responseType = 'json';
275-
xhr.open('GET', 'logs/' + dir + '/result.json');
275+
xhr.open('GET', 'logs/quic/' + dir + '/result.json');
276276
xhr.onreadystatechange = function() {
277277
if(xhr.readyState !== XMLHttpRequest.DONE) return;
278278
if(xhr.status !== 200) {
@@ -308,7 +308,7 @@
308308
// enable loading of old runs
309309
var xhr = new XMLHttpRequest();
310310
xhr.responseType = 'json';
311-
xhr.open('GET', 'logs/logs.json');
311+
xhr.open('GET', 'logs/quic/logs.json');
312312
xhr.onreadystatechange = function() {
313313
if(xhr.readyState !== XMLHttpRequest.DONE) return;
314314
if(xhr.status !== 200) {

0 commit comments

Comments
 (0)