Commit Graph
198 Commits
Author SHA1 Message Date
andrew f65be5c572 Various fixes for Windows ( and maybe Linux )
using Make to tell the compiler to produce a binary to the /Engines/ dir fails on Windows when the tmpfs is not on the same disk as the Client. This might have also occured on Windows. shutil resolves that.

Take extra care to always maintain the possible .exe extension on files when doing this. This is done twice in the shutil line; first making sure to pickup the true file output name, and secondly to only use the root of the out_path and not the basename
2024-02-12 16:20:15 -05:00
andrew 824b48fbf9 Kick to v26
Forces clients to refresh, to accept Equi
2024-02-04 04:49:09 -05:00
andrew 2db74d1b83 python3.6 support fix 2024-02-02 06:59:13 -05:00
andrew 732e7b1d61 Drop leading slash in api network requests 2024-02-02 05:42:22 -05:00
andrew fdbec02818 Kick to v25 2024-02-02 05:35:19 -05:00
andrew c268b47e4d Modernize running benchmarks and reporting errors 2024-02-02 05:35:19 -05:00
andrew 8f250c2c3f Reuse utils.py in worker.py; Add many exceptions for safety 2024-02-02 05:35:19 -05:00
Andrew Grant 884265289e Allow for --focus ENGINE1 [ENGINE2 ....] to prioritize Workload Assignments (#187) 2024-01-30 23:44:45 -05:00
andrew 77d34a71f7 Add -f to pkill arguments 2024-01-09 13:23:56 -05:00
andrew 0cde283d89 More robust handling of PGN processing
Fixes a bug where .pgn openings don't have the book moves shown
Fixes a bug where engines that don't report sufficent data ( either eval, or eval depth seldepth time nodes ) would have the moves not copied to the compressed pgn

Standard now has {book} for book moves
Standard now has {unknown} for moves with missing information

Added GameEndTime to VERBOSE PGNs to retroactively compute things
Added scaleFactor to all PGNs to allow adjusting the TimeControl correctly
Removed PlyCount which was not needed, and simply added more bytes
2023-12-20 16:51:03 -05:00
andrew a280e63dba Finalized bench_all.py 2023-12-08 12:05:42 -05:00
andrew 3af603dbe3 Finish bench_all.py, minus cmdline arguments 2023-12-07 16:26:10 -05:00
andrew 2a461ecfaa Initial steps for build_all.py 2023-12-06 13:32:46 -05:00
andrew 29e042504d Fix openbench.exit for signaling workers 2023-12-04 09:32:38 -05:00
andrew 0807d2c2d5 Kick Server/Client to v23 2023-12-04 07:57:33 -05:00
andrew 5f97fd9e6a Upload the PGNs and save them. Last step for that 2023-12-04 07:57:33 -05:00
andrew c4e27d393f Include engine name in PGN 2023-12-04 07:57:33 -05:00
andrew fda9012f63 Legal PGNS with 7-tag roster 2023-12-04 07:57:33 -05:00
andrew ff8c01bf2d Compress after playing all games 2023-12-04 07:57:33 -05:00
andrew ca630c80f2 Initial step for PGN uploading
1. Create the interface code to allow for it.
2. Create pgn_util to strip and compress PGNs
2023-12-04 07:57:33 -05:00
andrew 5b56253dcf Force reimport of libs in some python versions 2023-11-18 09:47:36 -05:00
andrew d4917c6c35 Kick to v21... 2023-11-18 09:25:44 -05:00
andrew c64725f181 Kick to v20; additionally chmod cutechess-ob from worker.py 2023-11-18 09:14:07 -05:00
andrew af22c9a79c Remove --proxy for Github 2023-11-16 23:01:34 -05:00
Andrew Grant 3fa1e2b984 Update permissions from a real linux box... 2023-11-16 21:34:00 -05:00
andrew 34f61092c7 Set base dir on startup like before 2023-11-16 21:28:33 -05:00
andrew a38fbf6cfb More permission for cutechess client 2023-11-16 21:12:42 -05:00
andrew 3986e8f497 chmod +X cutechess-ob; report downloading.
Tested with --clean
2023-11-16 21:03:09 -05:00
andrew bbe7cc25c1 Update cleanup.sh 2023-11-16 20:25:11 -05:00
andrew 77475b71be Minor fixes, functionally working now 2023-11-16 20:25:11 -05:00
andrew f5ce0de2ca Readd client.py 2023-11-16 20:25:11 -05:00
andrew 0799414b2c Delete client.py, to rename it lowercase.
Windows issues
2023-11-16 20:25:11 -05:00
andrew ec427d0ef2 Auto updating step 1 2023-11-16 20:25:11 -05:00
andrew 4ec9d5b529 First step towards auto-extracting client
client.py will pull from github, as requested by the server
client.py will extract and put all files locally ( except replacing itself ? )

Moved cutechess directly into the Client folder to it gets pulled.
May need to chmod +x the cutechess-ob for Linux on demand.

In the future, the cleanup script will delete everythinge except:
client.py, and any credentials.* files.
Such that one can run an openbench client in any directory, from a single file.
2023-11-16 20:25:11 -05:00
andrew 8c765ba0bb Bump Server/Client version to v18 2023-11-08 14:57:06 -05:00
andrew b3f8cc67af Add a heartbeat to the Client
Hits /clientHeartbeat/ when no data exists to report
May return a stop header to abort the workload
2023-11-08 14:56:10 -05:00
andrew 9f53b086c0 Additional testing and add Client output 2023-11-01 01:26:15 -04:00
andrew 4b054bab2f Remove python3.9+ features
Removes very clean use of :=
Removes use of .removesuffix()

Runs locally with python3.6, and the requirements.txt
2023-10-20 15:02:29 -04:00
andrew 957c042683 Adjust interim file names/paths to avoid conflicts
Use the Engine-Sha or Engine-Sha-Sha format for intermediate steps, to avoid conflicts with existing files and directories
2023-10-13 14:16:21 -04:00
Ciekce 3ef86eeb82 Strip dots and underscores from ISA extension names (#174) 2023-09-25 21:52:28 -04:00
andrew 36fc79487b Better client output; Kick to v17 2023-09-25 17:50:21 -04:00
andrew 81c5c9bfbc Kick Client/Server to v16 2023-09-20 12:48:07 -04:00
Andrew Grant 804b0a7126 Select Openings Better
Refer to https://github.com/AndyGrant/OpenBench/pull/168
2023-09-20 12:46:02 -04:00
andrew 37dfb585ad Kick Client/Server to v15 2023-09-20 10:49:24 -04:00
Andrew Grant a17b5f853d Add spsa_reporting_type and spsa_distribution_type (#170)
Reporting Method (BATCHED vs BULK) for SPSA Tests
Send everything at once, vs every time a pair finishes

Distribution Method (SINGLE vs MULTIPLE) for SPSA Tests
Give 1 parameter set; Give as many sets as we can
2023-09-20 10:48:15 -04:00
Andrew Grant ee267381fc Implement SPSA for OpenBench (#169)
* Support Worker and Thread Limits
* Drop report_rate from the Client
* Creation page
* WIP for SPSA; Lots of code shuffling to clean it up
* Able to create a Tune in the interface
* Start to work on a display page for Tunes
* Move all workload utilities to their own dir
* Ignore config files going forward
* Able to produce an SPSA test from the Server
* Round integers with probabilities that make sense
* Client side working
* Report as results come in, don't wait
* Fix workload size comment
* Cleanup and fix Tune modifications
* Adustment to random value in tuning
* Delete engine configs
2023-09-19 14:44:52 -04:00
andrew 111cbea187 Default Timemargin of 250ms
Grants a MoveOverhead baseline to reduce timelosses on noisy machines, in the event that the engine does not have its own internal MoveOverhead. This will mask timelosses on OpenBench, so be careful
2023-09-05 13:14:03 -04:00
andrew ddaeed8374 Critical bug fix when setting test.errors
Somehow in 10 years I've not yet encounted that in python the expression 3 or 3 evaluates to 3, and not True. This allowed for an attempt to save non-boolean values into the test.error field. Which produced seemingly infinite time losses on some tests I was running with some of the first versions of Torch to ever be on OpenBench.

Also, don't report time loss PGNS back. No one cares about them, and flagging the tests is annoying.
2023-08-31 04:16:37 -04:00
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