Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Dec 2, 2023
1 parent 2a61ba3 commit bf61a99
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
5 changes: 4 additions & 1 deletion status.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ <h3>Processing times (by patch post time)</h3>
<table id="runners">
<tr>
<th>Tree</th>
<th>Work</th>
<th>Pid</th>
<th>Patch</th>
<th>Test</th>
<th>Qlen</th>
</tr>
</table>
</div>
Expand Down
10 changes: 8 additions & 2 deletions status.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,16 @@ function load_runners(data_raw)
$.each(data_raw, function(i, v) {
var row = table.insertRow();
var name = row.insertCell(0);
var what = row.insertCell(1);
var pid = row.insertCell(1);
var patch = row.insertCell(2);
var test = row.insertCell(3);
var qlen = row.insertCell(4);

name.innerHTML = i;
what.innerHTML = v;
pid.innerHTML = v.progress;
patch.innerHTML = v.patch;
test.innerHTML = v.test;
qlen.innerHTML = v.backlog;
});
}

Expand Down
19 changes: 12 additions & 7 deletions system-status.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,26 @@ def add_one_tree(result, pfx, name):
with open(os.path.join(pfx, name), 'r') as fp:
lines = fp.readlines()
last = None
sub = ''
test = ''
blog = ''
progress = ''
for line in lines:
if 'Testing patch' in line:
last = re.sub(char_filter, "", line)
sub = ''
patch = line[line.find('Testing patch') + 14:]
progress = patch[:patch.find('|')]
patch = patch[patch.find('|') + 2:]
last = re.sub(char_filter, "", patch)
test = ''
elif 'Running test ' in line:
sub = line[17:].strip()
test = line[17:].strip()
elif 'Tester commencing ' in line:
blog = line[35:].strip()
if 'Checking barrier' in line:
last = None
if last:
last += f' ({sub}) [backlog {blog}]'
result['runners'][name] = last
progress = ''
test = ''
blog = ''
result['runners'][name] = {"patch": last, "progress": progress, "test": test, "backlog": blog}


def add_one_runtime(fname, total, res):
Expand Down

0 comments on commit bf61a99

Please sign in to comment.