Report all errors after workload is finished (#155)
Upon completion of the workload, parse all newly created PGN files for errors. We identify these by the Termination header. Any errors found are reported to the server. Modify the PGN naming scheme to be more versatile; Name them as <test-id>.<result-id>.<cutechess-seed>.pgn. This makes it more easy to identify PGNs and their association with tests, if someone were to look at the raw files. Commit some code, partially based on Kimmy's efforts, which will help process PGNs without the use of python-chess' PGN libs, which are far too slow. Cleanup some interfaces which had far too much information on them Delete some very ancient auto-approving code that only applied to the cross-approval case. Frankly no one is running OpenBench instances with cross-approval. Display both the base and dev NPS on the machines page
This commit is contained in:
1 parent
3e939c3e67
commit
a1f8efb55a
5 files changed
+96
-73
No files matched your search
@@ -352,4 +352,9 @@ td pre {
|
||||
#content .non-default-network {
|
||||
color: var(--color-font1);
|
||||
transform: scale(0.75);
|
||||
}
|
||||
|
||||
|
||||
#content .numeric {
|
||||
text-align: right;
|
||||
}
|
||||
+3
-20
@@ -492,23 +492,11 @@ def create_test(request):
|
||||
|
||||
username = request.user.username
|
||||
profile = Profile.objects.get(user=request.user)
|
||||
LogEvent.objects.create(author=username, summary='CREATE', log_file='', test_id=test.id)
|
||||
summary = 'CREATE P=%d TP=%d' % (test.priority, test.throughput)
|
||||
LogEvent.objects.create(author=username, summary=summary, log_file='', test_id=test.id)
|
||||
|
||||
approved = Test.objects.filter(approved=True)
|
||||
A = approved.filter( dev__sha=test.dev.sha).exists()
|
||||
B = approved.filter(base__sha=test.dev.sha).exists()
|
||||
C = approved.filter( dev__sha=test.base.sha).exists()
|
||||
D = approved.filter(base__sha=test.base.sha).exists()
|
||||
|
||||
if (A or B) and (C or D):
|
||||
if not OpenBench.config.USE_CROSS_APPROVAL and profile.approver:
|
||||
test.approved = True; test.save()
|
||||
action = "AUTOAPP P={0} TP={1}".format(test.priority, test.throughput)
|
||||
LogEvent.objects.create(author=username, summary=action, log_file='', test_id=test.id)
|
||||
|
||||
elif not OpenBench.config.USE_CROSS_APPROVAL and profile.approver:
|
||||
test.approved = True; test.save()
|
||||
action = "APPROVE P={0} TP={1}".format(test.priority, test.throughput)
|
||||
LogEvent.objects.create(author=username, summary=action, log_file='', test_id=test.id)
|
||||
|
||||
return redirect(request, '/index/', warning=warning)
|
||||
|
||||
@@ -751,11 +739,6 @@ def client_submit_error(request):
|
||||
machine, response = client_verify_worker(request)
|
||||
if response != None: return response
|
||||
|
||||
# Flag the Test as having an error except for time losses
|
||||
test = Test.objects.get(id=int(request.POST['test_id']))
|
||||
if 'loses on time' not in request.POST['error']:
|
||||
test.error = True; test.save()
|
||||
|
||||
# Log the Error into the Events table
|
||||
event = LogEvent.objects.create(
|
||||
author = machine.user.username,
|
||||
|
||||
Reference in new issue
Block a user