Commit Graph
411 Commits
Author SHA1 Message Date
andrew c268b47e4d Modernize running benchmarks and reporting errors 2024-02-02 05:35:19 -05:00
andrew 1d75616503 Fix unknown race condition in obtaining Result objects
For unclear reasons, multiple Result objects can be created with the same test and machine, despite the ideal situation in that no machine is ever concurrently talking to the server.

In the event a duplicate occurs, all future requests would have created an additional duplicate, as Django objects obtained via .get() expect EXACTLY one response.

It is unclear how this race condition could have occured in practice
2024-01-31 22:59:18 -05:00
andrew 19bb5ce6c8 Improve worker assignment algorithm
If a handful of tests are present, its possible for one test to get multiple times more resources than is fair, without making any other tests be considered unbalacned. IE, the one test steals a small amount of resources from all other tests.

Fix this by bounding the definition of balance as +- 25%, instead of having a one-sided bound.

Also, when computing ratios, compute them as if the machine we are assigning has been assigned to each test. Ie, the ratios IF the worker is assigned to the specific test. Likewise, the fair ratio should account for this machine's threads.
2024-01-31 20:46:15 -05:00
andrew 84db0e561e Fix for min([]) on empty frameworks 2024-01-31 00:50:10 -05:00
andrew 6bbbeeeaad Fix explicit filtering with id= in some Django versions 2024-01-31 00:09:21 -05:00
andrew 6d13a513f2 Fix misnamed engine_dist -> engine_freq 2024-01-31 00:05:43 -05:00
Andrew Grant 884265289e Allow for --focus ENGINE1 [ENGINE2 ....] to prioritize Workload Assignments (#187) 2024-01-30 23:44:45 -05:00
andrew a6194682ad Reset nps values on workload assignment 2024-01-23 20:27:38 -05:00
andrew 9d464e5b7d Add balance_engine_throughputs as a configuration option
Load balances tests with relation to each engine. If set to true, the effective throughput during work allocation will be scaled linearly with the number of tests which share the same dev engine.

Namely, it can be used in a large framework to ensure equal allocation of resources across various engines. This comit will be followed by one which allows the user to specify an engine to the client, via --engine MyEngine, to force their worker to selfishly select their engine.

We will account for cases where the selfish-engine is not a top-prio workload, and not play the low prio one.
We will account for the other workers, by ignoring this worker's contribution to overall worker distrubtion. This ensures that it is a strict net gain to attach your own machines to a framework
2024-01-11 21:17:59 -05:00
andrew 7b826b22ef Cleaner implementation of flagging active machines 2024-01-11 19:14:01 -05:00
andrew f7b184c435 Add a green highlight to active results on workloads 2024-01-10 20:45:07 -05:00
andrew f1626daad9 Merge tune.html and test.html into workload.html
Always show a network, even if it is blank due to a non NNUE engine
Redirect test/tune searches where the names are swapped
2024-01-10 20:13:44 -05:00
Andrew GrantandMinusKelvin 003148abbe Finalize Priority Group Dividers (#184)
Co-authored-by: MinusKelvin <mark.carlson@minuskelvin.net>
2024-01-09 14:11:41 -05:00
Mark Carlson 2363e7a517 Add priority group dividers (#183) 2024-01-09 14:09:34 -05:00
andrew aae6b42790 Retain base_branch on engine swapping for cross-play 2023-12-18 20:01:11 -05:00
andrew c9b889eb9c Add PGN Archive download buttons, and API endpoint 2023-12-11 13:29:43 -05:00
andrew 468281d52e Auto consolidate .pgn.bz2 files into a .tar archive 2023-12-11 12:42:03 -05:00
andrew f4f619fbd2 Add /api/buildinfo/ for bulk collection of configs and networks 2023-12-08 10:50:02 -05:00
andrew 2a461ecfaa Initial steps for build_all.py 2023-12-06 13:32:46 -05:00
andrew 8e14f1c0b2 Only apply default settings at the initial setup of an engine
Means that swapping between test modes or tune modes will not reapply the default settings
2023-12-04 11:13:30 -05:00
andrew 89478d807f Fix swapping test modes on workload creation
Ensure default settings appear for tunes and tests
2023-12-04 09:06:38 -05:00
andrew 5f97fd9e6a Upload the PGNs and save them. Last step for that 2023-12-04 07:57:33 -05:00
andrew 119569a14d Fix debug info left from SPSA template tags 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 acef6cba4f Update configs; Ensure correctness of fields 2023-11-21 20:46:44 -05:00
andrew 28d4f859c2 Fix removed return statement in client authentication 2023-11-16 20:53:12 -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 91ea350f1d Natural formatting for configs in the API 2023-11-16 20:25:11 -05:00
andrew b101e5be23 Finalize config changes 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 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 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
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