Commit Graph
594 Commits
Author SHA1 Message Date
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 91ea350f1d Natural formatting for configs in the API 2023-11-16 20:25:11 -05:00
andrew b10537ce02 Update to latest Berserk + Weiss 2023-11-16 20:25:11 -05:00
andrew 2b68a48e2e One more fix to the conversion script 2023-11-16 20:25:11 -05:00
andrew b101e5be23 Finalize config changes 2023-11-16 20:25:11 -05:00
andrew d322e49af7 Add all of the engine configs back 2023-11-16 20:25:11 -05:00
andrew 0b17de9426 Unify create_test and create_tune 2023-11-16 20:25:11 -05:00
andrew 6a53772659 Minor CSS changes to condense pages 2023-11-16 20:25:11 -05:00
andrew 9123444d22 Complete overhaul of how engine options are handled
Removed worker_limit and thread_limit
Relocated some settings in the engine configs
Renamed the test_modes and tune_modes to x_presets
Added a default preset grouping, which others can extend
Complete rewrite of create_test.js, with the hope to generalize with create_tune.js
Cleanups of the create_test.html for warnings due to missing html attributes
2023-11-16 20:25:11 -05:00
andrew 37cc4a5b96 Load modular configs for Books + Engines
Produce some verification of correctness for those configs
Begin future client auto-updating things, with new config fields

client_repo_url, and client_repo_ref specifically.
2023-11-16 20:25:11 -05:00
andrew 5d8704d896 Relocate books; split up books.json
First step towards a more modular config schemea.
Books moved to AndyGrant/openbench-books.
Those books will _never_ be deleted.

Update workload dict. to avoid duplicate json fields for book names
2023-11-16 20:25:11 -05:00
andrew 98090b7ad3 Allow networks to be seen as previous defaults
Networks can now be default, previous-default, or neither.
Networks can can have these fields manually edited.
Networks with default or previous-default status may not be deleted.
Networks may have their names changed, iff no conflicts arise.
2023-11-08 18:19:39 -05:00
andrew 44fafff0c5 Simplify client_verify_worker to a decorator
Removes copy pasted code from 6 functions
2023-11-08 16:52:38 -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 26936a0610 Make the wiki the authoritative source on this 2023-11-01 01:27:27 -04:00
andrew 9f53b086c0 Additional testing and add Client output 2023-11-01 01:26:15 -04:00
andrew b577315b57 Adjust workload assignment policy
Refer to https://github.com/AndyGrant/OpenBench/wiki/Workload-Assignment
2023-11-01 01:06:35 -04:00
andrew 86d2c908e9 Ethereal 14.25 2023-10-21 00:25:33 -04:00
andrew 4ab3e0c31b Drop extra JSON layer on Config API responses
No need to wrap in 'config' : {}
2023-10-20 18:28:23 -04:00
andrew 1091b6be83 Don't insert keys into the config by mistake
Should be a copy of the data
2023-10-20 18:04:48 -04:00
andrew 5e62a4dc9c Return None when getting download links for missing books 2023-10-20 16:10:19 -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
andrew db12828794 Allow core-odds for hyperthreaded machines
This is a temp. removal to test something. It will be replaced by more robust logic, which allows hyperthreaded machines to run core odds games, by first halving the number of cores, Ie forcing the worker to act as if it were started without dipping into HT
2023-10-12 19:03:47 -04:00
andrew f35961e054 Fix test assignment for repeated tests
If a test with higher prio comes in, the worker might never swap off their current test
2023-09-28 17:47:50 -04:00
andrew 8e0aa6a26b Adjust default tune creation
We've shown that high SMP is fine; remove the Worker Limit default
We've shown that BULK counting might be a good idea; Swap from BATCH
Lower prio from 1 to 0 to account for the Worker Limit removal
2023-09-25 22:04:54 -04:00
Ciekce 3ef86eeb82 Strip dots and underscores from ISA extension names (#174) 2023-09-25 21:52:28 -04:00
andrew b6e2f0dcae Allow copying SPSA inputs/outputs more clearly 2023-09-25 21:43:40 -04:00
andrew 358ced1c0e Solve some of the html wrapping 2023-09-25 20:47:30 -04:00
andrew f6886b79d1 Final fix for atomic updates 2023-09-25 17:57:13 -04:00
andrew 3b1821035d Ensure atomic updates for workloads 2023-09-25 17:53:22 -04:00
andrew 36fc79487b Better client output; Kick to v17 2023-09-25 17:50:21 -04:00
andrew 9798654c36 Add workload_size ( pairs-per-point ) to display 2023-09-25 17:41:48 -04:00
andrew 9c95b60c25 Fix a display bug for tests that look like sha commits 2023-09-25 17:40:26 -04:00
andrew 7334ae4091 Ensure the tune/test differentiation is correct 2023-09-25 17:37:28 -04:00
andrew 9b294538aa Network download link from test/tunne page 2023-09-25 17:20:22 -04:00
andrew 3526e442ee Book download link from test/tune page 2023-09-25 17:10:59 -04:00
andrew 3cff04bab1 Add some API endpoints
Add:

/api/config/ to display all engines, and all books
/api/config/<engine>/ to display the config for a specific engine
/api/networks/<engine>/ list all of the networks, and the default, for an engine
/api/networks/<engine>/<sha|name>/ download a network, given the sha or the name
2023-09-25 17:00:07 -04:00
Andrew Grant 7c3f4a7203 Some improvements to SPSA's CSS/HTML/JS (#173)
Move the copy_text function to /static
Record the original order of inputs for SPSA
Display SPSA data in the original order ( if it exists )
Format ints as ints instead of floats for Start/Min/Max
Swap the Curr/Start column to clearly show the initial triplet
Right align all of the SPSA stuff
Change the copy button on Tunes to be the original SPSA Input
2023-09-21 11:12:20 -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 ffb038b063 Fix tests stopping early due to pair logic
Needed a 2x here
2023-09-20 10:55:38 -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 d1b354d0fd Only diff the commits for SPSA tests 2023-09-19 16:12:36 -04:00
andrew ef96dd4dfc Allow min to equal max for SPSA tuning
This is useful for the case where an array has known 0 values in it ; but you still want to tune the whole thing coherently
2023-09-19 15:55:00 -04:00
andrew ef9d1ba68d Fix wrong use of test_mode types
FIXED should have been GAMES
2023-09-19 14:58:50 -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 bc26be7a4c Bugfix cross-engine play test mode selection
If you attempt to set a test mode for the dev engine, which the base engine does not have, we produce errors. The only reason we need to check the base engine's understanding of the test mode is to set Base Options. We can fall back to the STC settings, since we already copy the Threads= and Hash= portion from the Dev options
2023-09-12 06:59:40 -04:00