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
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.
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
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.
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
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.
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
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.
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