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:
Andrew Grant authored and GitHub committed 2023-08-18 12:45:42 -04:00
1 parent 3e939c3e67
commit a1f8efb55a
5 files changed
+96 -73

No files matched your search

-3
View File
@@ -10,7 +10,6 @@
<th>Date</th>
<th>#</th>
<th>User</th>
<th>Name</th>
<th>Test</th>
<th>Summary</th>
<th>Logs</th>
@@ -21,9 +20,7 @@
<td class="timestamp">{{event.created|date:'U'}}</td>
<td><a href="/machines/{{event.machine_id}}">{{event.machine_id}}</a></td>
<td>{{event.author|capfirst}}</td>
<td>{{event.machine_id|machine_name}}</td>
<td><a href="/test/{{event.test_id}}">{{event.test_id|testIdToPrettyName}}</a></td>
<td>{{event.summary}}</td>
<td>{% if event.log_file %}<a href='/event/{{event.id}}'>View</a>{% endif %}</td>
</tr>
+2 -4
View File
@@ -11,10 +11,9 @@
<th>User</th>
<th>Name</th>
<th>System</th>
<th>CPU</th>
<th>Workload</th>
<th>Threads</th>
<th>MNPS</th>
<th>NPS</th>
</tr>
{% for machine in machines %}
@@ -23,7 +22,6 @@
<td>{{machine.user.username|capfirst}}</td>
<td>{{machine.info.machine_name}}</td>
<td>{{machine.info.os_name}}</td>
<td>{{machine.info.cpu_name}}</td>
<td>
{% if machine.workload %}
<a href="/test/{{machine.workload}}">
@@ -34,7 +32,7 @@
{% endif %}
</td>
<td class="numeric">{{machine.info.concurrency}}</td>
<td class="numeric">{{machine.mnps|twoDigitPrecision}}</td>
<td class="numeric">{{machine.dev_mnps|twoDigitPrecision}}M / {{machine.base_mnps|twoDigitPrecision}}M</td>
</tr>
{% endfor %}