Commit Graph
539 Commits
Author SHA1 Message Date
andrew 4116e795d0 Explicitly pkill engine processes
OpenBench spawns cutechess-ob(.exe), which can be killed.
Engines are named Engine-GITSHA(-NETSHA), and can be killed.

In theory, if you ran OpenBench at the same time as some other application, you could kill the wrong thing. But you would be ill advised to run an OpenBench Client while doing regular work on a machine. Likewise there is little to no reason to name your cutechess and engines in the same way as OpenBench.

Resolves https://github.com/AndyGrant/OpenBench/issues/162
2023-08-30 23:42:13 -04:00
andrew a26e0f277a Use base NPS when doing cross-engine play
Creates a support for regression testing against a stable base, without dealing with variable NPS of the dev engine
2023-08-30 01:22:24 -04:00
andrew 10a5d8d21a Clear up some of the dead space in 5-nomial 2023-08-25 13:44:40 -04:00
andrew 4ed69d5dbc Pentanomial SPRT as the default 2023-08-21 18:52:02 -04:00
andrew 61625aa0d5 Fix a syntax warning in newer python versions 2023-08-21 14:30:30 -04:00
andrew 8e5afa9a2e Track pentanomial dist. in tests.
By default, all tests will do this. If you are migrating an existing database, it would be advised to run the following code in the django shell...

>>> from OpenBench.models import Test
>>> Test.objects.all().update(use_tri=True, use_penta=False)
2023-08-21 14:28:38 -04:00
andrew 7bf3c54249 Date formatting on searches 2023-08-18 13:17:19 -04:00
andrew f76de2bc56 Improve Searching
Fix ordering of searches to be most-recent first
Fix for fixed-game tests not matching due to wrong arguments
Display datestamps for searched tests
Modify base template block to drop the <tr> tags
2023-08-18 13:09:26 -04:00
Andrew Grant a1f8efb55a 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
2023-08-18 12:45:42 -04:00
andrew 3e939c3e67 Make sure currentllr is updated 2023-08-16 09:21:23 -04:00
andrew 2d656a2fdd Fix variable names for SPRT updates 2023-08-16 09:18:09 -04:00
Andrew Grant d32761c53c Overhaul Client Reporting mechanism (#153)
Collects results as game-pairs, instead of as individual results. This removes some noise and bias that may have existed prior.

The master thread now handles all reporting to the OpenBench server. Help threads, ( one for each --nsockets or -N ), will place their results in a multiprocessing.Queue().

We will report report_rate-pairs at a time. However we will only report up to once every 30 seconds. This means we might batch report many many games at a time. This acts as a natural remedy to if someone were to have created an insanely short time control, or low nodes test. This will cause fixed-game tests to go over the cap. IE, a 40,000 game test is very likely to receive a small number of games above 40,000. Fixing these seems non-trivial, and also not important.

The Client also sends Pentanomial information to the server now. This information is not acted upon.

This involved a complete rewrite of how data (trinomial) information is extracted from Cutechess. It is predicated upon the assertion that cutechess pairs are sequential. IE, pair one will be game 1/2. Pair two will be games 3/4. Etc. This is the fundemental assertion that is in Fishtest, although very confusing to extract from observation.

Resolves an issue where the worker threads, spawned to run benchmarks, were not being killed, as .start() was not followed by a .join().

Makes more cleanly aborting threads, by explicitly murdering them with an abort_flag from threading.Event(). This speeds up killing workers that have multi-sockets. It also helps further protect us against Cutechess being left open.

Performs atomic transactions with the database for tests. This is critical for dealing with future SPSA efforts. Updates to Profile, individual Result, and Machine, are left as is. This is because Model.objects.filter().update() is atomic, and the contents of Results are hit by only 1-thread at a time, and Profile/Machine's updates do not matter.

Resolves #144 and then some.
2023-08-16 08:02:56 -04:00
andrew 3b4103baf7 Improve Networks page
Better sorting, more clear fa icons
2023-08-05 21:53:20 -04:00
andrew 4c2e669fa2 Resolve cross-engine artifact waiting bug
If waiting for artifacts after test creation, the public engine would appear to still be waiting for artifacts infinitely. This resolves that by identifying public engine sources and considering that as being ready
2023-08-05 21:02:28 -04:00
andrew baf2fac2bf Update hyperthreading rules for task distribution
There is now only one rule: Thread imbalances cannot be tested using workers who have more threads than physical cores
2023-07-30 20:41:05 -04:00
andrew 51447a5f42 Make patches fail faster 2023-07-26 15:51:11 -04:00
andrew 832f23c4eb Resolves https://github.com/AndyGrant/OpenBench/issues/149 2023-07-25 14:11:40 -04:00
andrew b09de3c815 Add pip reqs.txt for Server + Client 2023-07-24 17:03:09 -04:00
andrew acbc6922bd Tentative support for 7man Syzygy 2023-07-24 16:57:23 -04:00
andrew b1541327f2 Increase Stockfish MoveOverhead to 100ms 2023-07-22 18:04:12 -04:00
andrew 83f1629f6f Disable PGN error reporting
If an engine losses or crashes often enough, this produces issues. Will be resolved in Issue #132
2023-07-22 17:16:45 -04:00
andrew 7370530877 Stockfish for OpenBench 2023-07-22 16:48:43 -04:00
andrew c6b7416fdc Upload Endgames.epd from official-stockfish/books 2023-07-19 09:35:34 -04:00
andrew 53c0d7e369 By default, enable Syzygy adjudication 2023-07-19 05:19:50 -04:00
Andrew Grant 172bf76a50 Update Cutechess to better PGN reporting (#148)
Static compiles of Cutechess, with local changes, found here: https://github.com/AndyGrant/Cutechess
These changes include the Fischer Random Castling fixes that are found in the versions we use here. They also change the PGN reporting format, to output as { score depth/seldepth time-ms nodes}. This will be very useful for data collection, and if we ever need to debug a crash.

The process to build, including the static Qt5 libs, for Windows and for Linux, is taken from the Fishtest wiki, after talking with ppigazzini: https://github.com/glinscott/fishtest/wiki/Build-cutechess-with-Qt5-static
2023-07-19 05:14:33 -04:00
andrew aabdd759fa Fix circular imports found when backing up database 2023-07-19 04:54:38 -04:00
andrew 36984135e8 Fix scripting interface for creating tests 2023-07-19 04:48:09 -04:00
andrew ef3104cd68 Implement Searching again 2023-07-19 04:45:44 -04:00
Andrew Grant 3beb04aacb Fix Syzygy support by removing extra quotes
Remove " from options as cutechess passes those literally
2023-07-15 20:57:46 -04:00
Jay Honnold bd47ef9e7b Remove " from options as cutechess passes those literally 2023-07-15 13:44:17 -07:00
andrew 5dc8894852 Fix navbar not matching full width 2023-07-15 05:51:35 -04:00
Andrew Grant 2b28f9b498 New Networks API + Cross-Engine Fixes + Script fixes 2023-07-15 04:20:32 -04:00
andrew c5624db867 Scale both engines the same way, but fix the formula 2023-07-15 04:19:30 -04:00
andrew 5d6ae6a06b Update download_network.py script, and bench_engine.py script 2023-07-14 22:50:30 -04:00
andrew 353e9e6f3c Update upload_network.py script 2023-07-14 21:42:10 -04:00
andrew 12c81c05dd Three different sets of changes in one commit
1. Fix the Networks API to handle duplicate Networks between engines
2. Modify end points to account for this ( breaks scripts and client )
3. Update Client to handle these changes
2023-07-14 21:12:29 -04:00
andrew 0c26329d69 Fix for cross-engine play regarding time scaling
Engines should be scaled independently in cross-engine play regarding the NPS of the bench values. Self-play is still averaged, since there is an expectation that they are similar, and this is done to reduce noise
2023-07-14 16:50:12 -04:00
andrew a6c3922d45 Allow multiple artifacts in a single Job 2023-07-03 03:48:13 -04:00
Andrew Grant 2c90f7a4a7 Pointer attribute for Anchor Buttons (#141) 2023-06-27 19:39:29 -04:00
Jay Honnold 5fa7efa97b Pointer for newTest buttons 2023-06-27 16:38:01 -07:00
andrew 3e83f62d62 Allow setting repos to {} in profile views 2023-06-26 08:22:42 -04:00
Andrew Grant 0c1d539279 Merge pull request #140 from AndyGrant/client_cleanup
Collection of massive breaking changes
2023-06-26 07:32:48 -04:00
andrew abd6a42455 Revert change which uncollapsed Result objects 2023-06-26 07:13:47 -04:00
andrew fd1fa723d5 Handle optimal builds; remove need for a naming convention
throw errors on bad jsons at start time of server
2023-06-26 06:48:56 -04:00
andrew df2b0fb0a3 Handle re-triggering workflows
In the event of expired artifacts, or a Github bug where the REST API returns a list of completed jobs, yet no artifacts, even though they are present through the website
2023-06-26 05:12:45 -04:00
andrew ef1f23503b Engines have specific Operating Systems they support 2023-06-26 03:29:10 -04:00
andrew abb924a02b Support for N-Man Syzygy as an option 2023-06-26 03:00:41 -04:00
andrew 475bd058c7 Working version 2023-06-23 00:49:22 -04:00
andrew 5d1d703dfa Include dev+base NPS, send private field cleanly, more Client refactoring 2023-06-22 19:25:58 -04:00
andrew 824de3e0b5 WIP 2023-06-22 18:28:22 -04:00