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
This commit is contained in:
1 parent
37cc4a5b96
commit
9123444d22
13 files changed
+185
-249
No files matched your search
+23
-24
@@ -1,14 +1,8 @@
|
||||
{
|
||||
"private" : false,
|
||||
"nps" : 1128000,
|
||||
"base" : "master",
|
||||
"source" : "https://github.com/AndyGrant/Ethereal",
|
||||
|
||||
"bounds" : "[0.00, 3.00]",
|
||||
"book" : "Pohl.epd",
|
||||
"win_adj" : "movecount=3 score=400",
|
||||
"draw_adj" : "movenumber=40 movecount=8 score=10",
|
||||
|
||||
"build" : {
|
||||
"path" : "src",
|
||||
"compilers" : ["clang", "gcc"],
|
||||
@@ -16,38 +10,43 @@
|
||||
"systems" : ["Windows", "Linux"]
|
||||
},
|
||||
|
||||
"test_modes" : {
|
||||
"test_presets" : {
|
||||
|
||||
"default" : {
|
||||
"base_branch" : "master",
|
||||
"book_name" : "UHO_4060_v2.epd",
|
||||
"test_bounds" : "[0.00, 3.00]",
|
||||
"test_confidence" : "[0.05, 0.05]",
|
||||
"win_adj" : "movecount=3 score=400",
|
||||
"draw_adj" : "movenumber=40 movecount=8 score=10"
|
||||
},
|
||||
|
||||
"STC" : {
|
||||
"options" : "Threads=1 Hash=8",
|
||||
"timecontrol" : "10.0+0.1",
|
||||
"report_rate" : 16,
|
||||
"workload_size" : 32
|
||||
"both_options" : "Threads=1 Hash=8",
|
||||
"both_time_control" : "10.0+0.1",
|
||||
"workload_size" : 32
|
||||
},
|
||||
|
||||
"LTC" : {
|
||||
"options" : "Threads=1 Hash=64",
|
||||
"timecontrol" : "60.0+0.6",
|
||||
"report_rate" : 4,
|
||||
"workload_size" : 8
|
||||
"both_options" : "Threads=1 Hash=64",
|
||||
"both_time_control" : "60.0+0.6",
|
||||
"workload_size" : 8
|
||||
},
|
||||
|
||||
"SMP STC" : {
|
||||
"options" : "Threads=8 Hash=64",
|
||||
"timecontrol" : "5.0+0.05",
|
||||
"report_rate" : 1,
|
||||
"workload_size" : 64
|
||||
"both_options" : "Threads=8 Hash=64",
|
||||
"both_time_control" : "5.0+0.05",
|
||||
"workload_size" : 64
|
||||
},
|
||||
|
||||
"SMP LTC" : {
|
||||
"options" : "Threads=8 Hash=256",
|
||||
"timecontrol" : "20.0+0.2",
|
||||
"report_rate" : 1,
|
||||
"workload_size" : 16
|
||||
"both_options" : "Threads=8 Hash=256",
|
||||
"both_time_control" : "20.0+0.2",
|
||||
"workload_size" : 16
|
||||
}
|
||||
},
|
||||
|
||||
"tune_modes" : {
|
||||
"tune_presets" : {
|
||||
|
||||
"STC" : {
|
||||
"options" : "Threads=1 Hash=8",
|
||||
|
||||
@@ -70,22 +70,9 @@ def verify_engine_basics(engine_name, conf):
|
||||
|
||||
assert type(conf.get('private')) == bool
|
||||
assert type(conf.get('nps')) == int and conf['nps'] > 0
|
||||
assert type(conf.get('base')) == str
|
||||
assert type(conf.get('source')) == str
|
||||
|
||||
assert type(conf.get('bounds')) == str
|
||||
assert type(conf.get('book')) == str
|
||||
assert type(conf.get('win_adj')) == str
|
||||
assert type(conf.get('draw_adj')) == str
|
||||
|
||||
assert type(conf.get('build')) == dict
|
||||
|
||||
assert type(conf.get('test_modes')) == dict
|
||||
assert type(conf['test_modes'].get('STC')) == dict
|
||||
|
||||
assert type(conf.get('tune_modes')) == dict
|
||||
assert type(conf['tune_modes'].get('STC')) == dict
|
||||
|
||||
def verify_engine_build(engine_name, conf):
|
||||
|
||||
assert type(conf['build'].get('cpuflags')) == list
|
||||
|
||||
@@ -115,8 +115,6 @@ class Test(Model):
|
||||
base_time_control = CharField(max_length=32)
|
||||
|
||||
# Changable Test Parameters
|
||||
worker_limit = IntegerField(default=0)
|
||||
thread_limit = IntegerField(default=0)
|
||||
workload_size = IntegerField(default=32)
|
||||
priority = IntegerField(default=0)
|
||||
throughput = IntegerField(default=0)
|
||||
|
||||
+113
-119
@@ -36,7 +36,7 @@ function create_network_options(field_id, engine) {
|
||||
}
|
||||
}
|
||||
|
||||
function create_testmode_buttons(engine) {
|
||||
function create_preset_buttons(engine) {
|
||||
|
||||
// Clear out all of the existing buttons
|
||||
var button_div = document.getElementById('test-mode-buttons');
|
||||
@@ -44,12 +44,16 @@ function create_testmode_buttons(engine) {
|
||||
button_div.removeChild(button_div.lastChild);
|
||||
|
||||
var index = 0;
|
||||
for (let mode in config.engines[engine].test_modes) {
|
||||
for (let mode in config.engines[engine].test_presets) {
|
||||
|
||||
// Don't include the global defaults
|
||||
if (mode == 'default')
|
||||
continue;
|
||||
|
||||
// Create a new button for the test mode
|
||||
var btn = document.createElement('button')
|
||||
btn.innerHTML = mode;
|
||||
btn.onclick = function() { set_test_mode(mode); };
|
||||
btn.onclick = function() { apply_preset(mode); };
|
||||
|
||||
// Apply all of our CSS bootstrapping
|
||||
btn.classList.add('anchorbutton');
|
||||
@@ -76,143 +80,133 @@ function create_testmode_buttons(engine) {
|
||||
}
|
||||
|
||||
|
||||
function extract_mode_config(mode_str, target) {
|
||||
|
||||
// Find test mode configuration for either Dev or Base
|
||||
|
||||
var selection = document.getElementById(target + '_engine');
|
||||
var engine = selection.options[selection.selectedIndex].value;
|
||||
|
||||
return config.engines[engine].test_modes[mode_str];
|
||||
}
|
||||
|
||||
|
||||
function set_test_type() {
|
||||
|
||||
var selectA = document.getElementById('test_mode');
|
||||
var mode = selectA.options[selectA.selectedIndex].value;
|
||||
|
||||
var selectB = document.getElementById('dev_engine');
|
||||
var engine = selectB.options[selectB.selectedIndex].value;
|
||||
|
||||
if (mode == 'SPRT') {
|
||||
document.getElementById('test_bounds' ).value = config.engines[engine].bounds
|
||||
document.getElementById('test_confidence').value = config.tests.confidence;
|
||||
document.getElementById('test_max_games' ).value = 'N/A';
|
||||
}
|
||||
|
||||
if (mode == 'GAMES') {
|
||||
document.getElementById('test_bounds' ).value = 'N/A';
|
||||
document.getElementById('test_confidence').value = 'N/A';
|
||||
document.getElementById('test_max_games' ).value = config.tests.max_games;
|
||||
}
|
||||
}
|
||||
|
||||
function set_engine_options(mode_str, target) {
|
||||
|
||||
// Fall back to STC, which tends to exist. Needed for cross-engine play
|
||||
var dev_mode = extract_mode_config(mode_str, 'dev' ) || extract_mode_config('STC', 'dev' );
|
||||
var base_mode = extract_mode_config(mode_str, 'base') || extract_mode_config('STC', 'base');
|
||||
|
||||
// Extract UCI options for both the Dev and Base engines
|
||||
var dev_options = dev_mode ? dev_mode['options'] : 'Threads=1 Hash=8';
|
||||
var base_options = base_mode ? base_mode['options'] : 'Threads=1 Hash=8';
|
||||
|
||||
// Simple case, where we are not updating a base that is cross-engine
|
||||
if (target == 'dev' || dev_options == base_options)
|
||||
document.getElementById(target + '_options').value = dev_options;
|
||||
|
||||
else {
|
||||
|
||||
// Use the Threads= and Hash= from the dev options, but then make
|
||||
// sure to include any specific options that appear in dev options
|
||||
|
||||
var regex = /(Threads=\d+)\s(Hash=\d+)/;
|
||||
var matches = dev_options.match(regex);
|
||||
|
||||
var standard_options = matches[1] + ' ' + matches[2];
|
||||
var specific_options = base_options.replace(regex, '');
|
||||
var combined_options = standard_options.trim() + ' ' + specific_options.trim();
|
||||
|
||||
document.getElementById('base_options').value = combined_options.trim();
|
||||
}
|
||||
}
|
||||
|
||||
function set_test_mode(mode_str) {
|
||||
|
||||
function get_dev_engine() {
|
||||
const selection = document.getElementById('dev_engine');
|
||||
const engine = selection.options[selection.selectedIndex].value;
|
||||
const mode = extract_mode_config(mode_str, 'dev');
|
||||
|
||||
document.getElementById('workload_size').value = mode['workload_size'] || 32;
|
||||
document.getElementById('book_name' ).value = mode['book'] || config.engines[engine].book;
|
||||
|
||||
document.getElementById('dev_time_control' ).value = mode['timecontrol'] || '10.0+0.1';
|
||||
document.getElementById('base_time_control').value = mode['timecontrol'] || '10.0+0.1';
|
||||
|
||||
set_engine_options(mode_str, 'dev');
|
||||
set_engine_options(mode_str, 'base');
|
||||
|
||||
if (mode['bounds'] != null) {
|
||||
document.getElementById('test_mode').value = 'SPRT'; set_test_type();
|
||||
document.getElementById('test_bounds').value = mode['bounds'];
|
||||
}
|
||||
|
||||
if (mode['games'] != null) {
|
||||
document.getElementById('test_mode').value = 'GAMES'; set_test_type();
|
||||
document.getElementById('test_max_games').value = mode['games'];
|
||||
}
|
||||
|
||||
if (mode['bounds'] == null && mode['games'] == null) {
|
||||
document.getElementById('test_mode').value = 'SPRT'; set_test_type();
|
||||
}
|
||||
return selection.options[selection.selectedIndex].value;
|
||||
}
|
||||
|
||||
function get_base_engine() {
|
||||
const selection = document.getElementById('base_engine');
|
||||
return selection.options[selection.selectedIndex].value;
|
||||
}
|
||||
|
||||
function add_defaults_to_preset(engine, preset) {
|
||||
|
||||
// Use both the defaults, and this specific preset's settings
|
||||
const default_settings = config.engines[engine].test_presets['default'] || {};
|
||||
const preset_settings = config.engines[engine].test_presets[preset] || {};
|
||||
|
||||
let settings = {}
|
||||
|
||||
for (const key in default_settings)
|
||||
settings[key] = default_settings[key];
|
||||
|
||||
for (const key in preset_settings)
|
||||
settings[key] = preset_settings[key];
|
||||
|
||||
return settings;
|
||||
}
|
||||
|
||||
|
||||
function set_engine(engine, target) {
|
||||
|
||||
// Always update the Engine and Repository to the defaults
|
||||
document.getElementById(target + '_engine').value = engine;
|
||||
document.getElementById(target + '_repo' ).value = repos[engine] || config.engines[engine].source
|
||||
|
||||
// Create dropdown of all Networks associated with the engine
|
||||
create_network_options(target + '_network', engine);
|
||||
}
|
||||
|
||||
// Set default UCI options as if we were running an STC when changing
|
||||
set_engine_options('STC', target);
|
||||
function set_option(option_name, option_value) {
|
||||
|
||||
if (target == 'dev') {
|
||||
const element = document.getElementById(option_name);
|
||||
|
||||
// Dev engine decides the Adjudication and Book settings
|
||||
document.getElementById('book_name' ).value = config.engines[engine].book;
|
||||
document.getElementById('win_adj' ).value = config.engines[engine].win_adj;
|
||||
document.getElementById('draw_adj' ).value = config.engines[engine].draw_adj;
|
||||
if (element == null)
|
||||
console.log(option_name + ' was not found.');
|
||||
|
||||
// When swapping the dev engine, redo buttons, base, and test mode
|
||||
create_testmode_buttons(engine);
|
||||
set_engine(engine, 'base');
|
||||
set_test_mode('STC');
|
||||
else if (element.tagName.toLowerCase() != 'select') {
|
||||
|
||||
element.value = option_value;
|
||||
|
||||
if (option_name == 'test_max_games') {
|
||||
document.getElementById('test_mode').value = "GAMES";
|
||||
document.getElementById('test_bounds').value = 'N/A';
|
||||
document.getElementById('test_confidence').value = 'N/A';
|
||||
}
|
||||
|
||||
if (option_name == 'test_bounds') {
|
||||
document.getElementById('test_mode').value = "SPRT";
|
||||
document.getElementById('test_max_games').value = 'N/A';
|
||||
}
|
||||
}
|
||||
|
||||
// Default the base engine to it's own base branch
|
||||
else document.getElementById(target + '_branch').value = config.engines[engine].base;
|
||||
else {
|
||||
for (let i = 0; i < element.options.length; i++)
|
||||
if (element.options[i].text === option_value || element.options[i].value === option_value)
|
||||
element.value = element.options[i].value;
|
||||
}
|
||||
}
|
||||
|
||||
function retain_specific_options(engine, preset) {
|
||||
|
||||
// This is not applicable for self-play
|
||||
if (get_dev_engine() == get_base_engine())
|
||||
return;
|
||||
|
||||
// Extract the Threads and Hash settings from the Dev Options
|
||||
|
||||
const dev_options = document.getElementById('dev_options').value;
|
||||
const dev_threads = dev_options.match(/\bThreads\s*=\s*(\d+)\b/)[1];
|
||||
const dev_hash = dev_options.match(/\bHash\s*=\s*(\d+)\b/)[1];
|
||||
|
||||
// From the base options, replace the Threads= and Hash=
|
||||
|
||||
let base_options = add_defaults_to_preset(engine, preset)['base_options']
|
||||
|| add_defaults_to_preset(engine, preset)['both_options'];
|
||||
|
||||
base_options = base_options.replace(/\bThreads\s*=\s*\d+\b/g, 'Threads=' + dev_threads);
|
||||
base_options = base_options.replace(/\bHash\s*=\s*\d+\b/g, 'Hash=' + dev_hash);
|
||||
|
||||
set_option('base_options', base_options);
|
||||
}
|
||||
|
||||
|
||||
function enforce_default_text(id, text) {
|
||||
function apply_preset(preset) {
|
||||
|
||||
window.addEventListener('DOMContentLoaded', function() {
|
||||
// Add the defaults to the preset-specific options
|
||||
const settings = add_defaults_to_preset(get_dev_engine(), preset)
|
||||
|
||||
var field = document.getElementById(id);
|
||||
for (const option in settings) {
|
||||
|
||||
field.addEventListener('input', function() {
|
||||
if (!settings.hasOwnProperty(option))
|
||||
continue;
|
||||
|
||||
if (field.value.startsWith(text) || field.value === text)
|
||||
return;
|
||||
else if (!option.startsWith('both_'))
|
||||
set_option(option, settings[option]);
|
||||
|
||||
if (field.value.endsWith('/'))
|
||||
field.value = text + field.value.substr(text.length).replace(/\/+$/, '');
|
||||
else
|
||||
field.value = text + field.value.substr(text.length);
|
||||
});
|
||||
});
|
||||
else {
|
||||
set_option(option.replace('both_', 'dev_'), settings[option]);
|
||||
set_option(option.replace('both_', 'base_'), settings[option]);
|
||||
}
|
||||
}
|
||||
|
||||
// For cross-engine, keep the original Hash/Threads, but
|
||||
// add any other settings that might be specific to the engine
|
||||
retain_specific_options(get_base_engine(), preset);
|
||||
}
|
||||
|
||||
function change_engine(engine, target) {
|
||||
|
||||
// Set the Engine, Repo, and init the Networks dropdown
|
||||
set_engine(engine, target);
|
||||
|
||||
// 1. Always set base, when setting the dev engine
|
||||
// 2. When changing the dev engine, update the test-mode buttons
|
||||
|
||||
if (target == 'dev') {
|
||||
set_engine(engine, 'base');
|
||||
create_preset_buttons(engine);
|
||||
}
|
||||
|
||||
// Always reinit to STC for clarity to the user
|
||||
apply_preset('STC');
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
function enforce_default_text(id, text) {
|
||||
|
||||
window.addEventListener('DOMContentLoaded', function() {
|
||||
|
||||
var field = document.getElementById(id);
|
||||
|
||||
field.addEventListener('input', function() {
|
||||
|
||||
if (field.value.startsWith(text) || field.value === text)
|
||||
return;
|
||||
|
||||
if (field.value.endsWith('/'))
|
||||
field.value = text + field.value.substr(text.length).replace(/\/+$/, '');
|
||||
else
|
||||
field.value = text + field.value.substr(text.length);
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -104,8 +104,6 @@ def create_new_test(request):
|
||||
test.base_network = request.POST['base_network']
|
||||
test.base_time_control = OpenBench.utils.TimeControl.parse(request.POST['base_time_control'])
|
||||
|
||||
test.worker_limit = 0 if request.POST['worker_limit'] == 'None' else int(request.POST['worker_limit'])
|
||||
test.thread_limit = 0 if request.POST['thread_limit'] == 'None' else int(request.POST['thread_limit'])
|
||||
test.workload_size = int(request.POST['workload_size'])
|
||||
test.priority = int(request.POST['priority'])
|
||||
test.throughput = int(request.POST['throughput'])
|
||||
@@ -163,8 +161,6 @@ def create_new_tune(request):
|
||||
test.dev_network = test.base_network = request.POST['dev_network']
|
||||
test.dev_time_control = test.base_time_control = OpenBench.utils.TimeControl.parse(request.POST['dev_time_control'])
|
||||
|
||||
test.worker_limit = 0 if request.POST['worker_limit'] == 'None' else int(request.POST['worker_limit'])
|
||||
test.thread_limit = 0 if request.POST['thread_limit'] == 'None' else int(request.POST['thread_limit'])
|
||||
test.workload_size = int(request.POST['spsa_pairs_per'])
|
||||
test.priority = int(request.POST['priority'])
|
||||
test.throughput = int(request.POST['throughput'])
|
||||
|
||||
@@ -139,16 +139,6 @@ def valid_assignment(machine, test, distribution):
|
||||
if (1 + is_spsa) * max(dev_threads, base_threads) > threads:
|
||||
return False
|
||||
|
||||
# Refuse to assign more workers than the test will allow
|
||||
current_workers = distribution[test.id]['workers'] if test.id in distribution else 0
|
||||
if test.worker_limit and current_workers >= test.worker_limit:
|
||||
return False
|
||||
|
||||
# Refuse to assign more threads than the test will allow
|
||||
current_threads = distribution[test.id]['threads'] if test.id in distribution else 0
|
||||
if test.thread_limit and current_threads + threads > test.thread_limit:
|
||||
return False
|
||||
|
||||
# All Criteria have been met
|
||||
return True
|
||||
|
||||
|
||||
@@ -93,16 +93,6 @@ def tweak_workload(request, profile, workload):
|
||||
workload.throughput = max(1, int(request.POST['throughput']))
|
||||
except: pass
|
||||
|
||||
try: # Must be at least 0. Convert "None" to 0
|
||||
x = request.POST['worker_limit']
|
||||
workload.worker_limit = 0 if x == 'None' else max(0, int(x))
|
||||
except: pass
|
||||
|
||||
try: # Must be at least 0. Convert "None" to 0
|
||||
x = request.POST['thread_limit']
|
||||
workload.thread_limit = 0 if x == 'None' else max(0, int(x))
|
||||
except: pass
|
||||
|
||||
try: # Must be at least one. Cannot be changed for Tuning workloads
|
||||
if workload.test_mode != 'SPSA':
|
||||
workload.workload_size = max(1, int(request.POST['workload_size']))
|
||||
|
||||
@@ -93,8 +93,6 @@ def verify_test_creation(errors, request):
|
||||
(verify_syzygy_field , 'syzygy_wdl', 'Syzygy WDL'),
|
||||
|
||||
# Verify everything about the Workload Settings
|
||||
(verify_integer_or_none, 'worker_limit', 'Worker Limit'),
|
||||
(verify_integer_or_none, 'thread_limit', 'Thread Limit'),
|
||||
(verify_integer , 'workload_size', 'Workload Size'),
|
||||
(verify_greater_than , 'workload_size', 'Workload Size', 0),
|
||||
|
||||
@@ -132,10 +130,6 @@ def verify_tune_creation(errors, request):
|
||||
(verify_greater_than , 'throughput', 'Throughput', 0),
|
||||
(verify_syzygy_field , 'syzygy_wdl', 'Syzygy WDL'),
|
||||
|
||||
# Verify everything about the Workload Settings
|
||||
(verify_integer_or_none , 'worker_limit', 'Worker Limit'),
|
||||
(verify_integer_or_none , 'thread_limit', 'Thread Limit'),
|
||||
|
||||
# Verify everything about the Adjudicaton Settings
|
||||
(verify_syzygy_field , 'syzygy_adj', 'Syzygy Adjudication'),
|
||||
(verify_win_adj , 'win_adj'),
|
||||
@@ -162,10 +156,6 @@ def verify_integer(errors, request, field, field_name):
|
||||
try: int(request.POST[field])
|
||||
except: errors.append('"{0}" is not an Integer'.format(field_name))
|
||||
|
||||
def verify_integer_or_none(errors, request, field, field_name):
|
||||
try: True if request.POST[field] == 'None' else int(request.POST[field])
|
||||
except: errors.append('"{0}" is neither an Integer nor "None"'.format(field_name))
|
||||
|
||||
def verify_float(errors, request, field, field_name):
|
||||
try: float(request.POST[field])
|
||||
except: errors.append('"{0}" is not a Float'.format(field_name))
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
{{ profile.repos|json_script:"json-repos" }}
|
||||
|
||||
<script src="{% static 'create_test.js' %}"></script>
|
||||
<script src="{% static 'default_text.js' %}"></script>
|
||||
|
||||
<script>
|
||||
document.addEventListener(
|
||||
'DOMContentLoaded', function () {
|
||||
set_test_type();
|
||||
set_engine('{{ profile.engine }}', 'dev');
|
||||
change_engine('{{ profile.engine }}', 'dev');
|
||||
enforce_default_text('dev_repo', 'https://github.com/');
|
||||
enforce_default_text('base_repo', 'https://github.com/');
|
||||
}, false
|
||||
@@ -33,62 +33,62 @@
|
||||
<h3> Engines </h3>
|
||||
|
||||
<div class="row">
|
||||
<label> Dev Engine </label>
|
||||
<select id="dev_engine" name="dev_engine" onchange="set_engine(value, 'dev');">
|
||||
<label for="dev_engine"> Dev Engine </label>
|
||||
<select id="dev_engine" name="dev_engine" onchange="change_engine(value, 'dev');">
|
||||
{% for engine in config.engines %}
|
||||
<option value="{{ engine }}">{{ engine }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Dev Source </label> <input id="dev_repo" name="dev_repo">
|
||||
<label for="dev_repo"> Dev Source </label> <input id="dev_repo" name="dev_repo">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Base Engine </label>
|
||||
<select id="base_engine" name="base_engine" onchange="set_engine(value, 'base');">
|
||||
<label for="base_engine"> Base Engine </label>
|
||||
<select id="base_engine" name="base_engine" onchange="change_engine(value, 'base');">
|
||||
{% for engine in config.engines %}
|
||||
<option value="{{ engine }}">{{ engine }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Base Source </label> <input id="base_repo" name="base_repo">
|
||||
<label for="base_repo"> Base Source </label> <input id="base_repo" name="base_repo">
|
||||
</div>
|
||||
|
||||
<h3> Dev Settings </h3>
|
||||
|
||||
<div class="row">
|
||||
<label> Dev Branch </label> <input id="dev_branch" name="dev_branch" autofocus>
|
||||
<label for="dev_branch" > Dev Branch </label> <input id="dev_branch" name="dev_branch" autofocus>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Dev Bench </label> <input value="Autofill" name="dev_bench">
|
||||
<label for="dev_bench" > Dev Bench </label> <input value="Autofill" id="dev_bench" name="dev_bench">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Dev Network </label> <select id="dev_network" name="dev_network"></select>
|
||||
<label for="dev_network" > Dev Network </label> <select id="dev_network" name="dev_network"></select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Dev Options </label> <input id="dev_options" name="dev_options">
|
||||
<label for="dev_options"> Dev Options </label> <input id="dev_options" name="dev_options">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Dev Time </label> <input id="dev_time_control" name="dev_time_control">
|
||||
<label for="dev_time_control"> Dev Time </label> <input id="dev_time_control" name="dev_time_control">
|
||||
</div>
|
||||
|
||||
<h3> Base Settings </h3>
|
||||
|
||||
<div class="row">
|
||||
<label> Base Branch </label> <input id="base_branch" name="base_branch">
|
||||
<label for="base_branch"> Base Branch </label> <input id="base_branch" name="base_branch">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Base Bench </label> <input value="Autofill" name="base_bench">
|
||||
<label for="base_bench"> Base Bench </label> <input value="Autofill" id="base_bench" name="base_bench">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Base Network </label> <select id="base_network" name="base_network"></select>
|
||||
<label for="base_network"> Base Network </label> <select id="base_network" name="base_network"></select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Base Options </label> <input id="base_options" name="base_options">
|
||||
<label for="base_options"> Base Options </label> <input id="base_options" name="base_options">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Base Time </label> <input id="base_time_control" name="base_time_control">
|
||||
<label for="base_time_control" > Base Time </label> <input id="base_time_control" name="base_time_control">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -98,7 +98,7 @@
|
||||
<h3> Test Settings </h3>
|
||||
|
||||
<div class="row">
|
||||
<label> Opening Book </label> <select id="book_name" name="book_name">
|
||||
<label for="book_name"> Opening Book </label> <select id="book_name" name="book_name">
|
||||
{% for name, data in config.books.items %}
|
||||
<option value="{{ name }}">{{ name }}</option>
|
||||
{% endfor %}
|
||||
@@ -106,40 +106,34 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label> Test Mode </label>
|
||||
<label for="test_mode"> Test Mode </label>
|
||||
<select onchange='set_test_type()' id="test_mode" name="test_mode">
|
||||
<option selected value="SPRT"> SPRT</option>
|
||||
<option value="GAMES"> Fixed Games</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Bounds </label> <input id="test_bounds" name="test_bounds">
|
||||
<label for="test_bounds"> Bounds </label> <input id="test_bounds" name="test_bounds">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Confidence </label> <input id="test_confidence" name="test_confidence">
|
||||
<label for="test_confidence"> Confidence </label> <input id="test_confidence" name="test_confidence">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Max Games </label> <input id="test_max_games" name="test_max_games">
|
||||
<label for="test_max_games"> Max Games </label> <input id="test_max_games" name="test_max_games">
|
||||
</div>
|
||||
|
||||
<h3> General Settings </h3>
|
||||
<div class="row">
|
||||
<label> Priority </label> <input value="0" name="priority">
|
||||
<label for="priority"> Priority </label> <input value="0" id="priority" name="priority">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Throughput </label> <input value="1000" id="throughput" , name="throughput">
|
||||
<label for="throughput"> Throughput </label> <input value="1000" id="throughput" , name="throughput">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Worker Limit</label> <input value="None" id="worker_limit" name="worker_limit">
|
||||
<label for="workload_size"> Workload Size </label> <input id="workload_size" name="workload_size">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Thread Limit </label> <input value="None" id="thread_limit" name="thread_limit">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Workload Size </label> <input id="workload_size" name="workload_size">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Syzygy WDL </label> <select name="syzygy_wdl">
|
||||
<label for="syzygy_wdl"> Syzygy WDL </label> <select id="syzygy_wdl" name="syzygy_wdl">
|
||||
<option selected value="DISABLED"> Disabled </option>
|
||||
<option value="OPTIONAL"> Optional </option>
|
||||
<option value="7-MAN"> 7-Man </option>
|
||||
@@ -152,8 +146,8 @@
|
||||
|
||||
<h3> Adjudication Settings </h3>
|
||||
<div class="row">
|
||||
<label> Syzygy ADJ. </label>
|
||||
<select name="syzygy_adj">
|
||||
<label for="syzygy_adj"> Syzygy ADJ. </label>
|
||||
<select id="syzygy_adj" name="syzygy_adj">
|
||||
<option value="DISABLED"> Disabled </option>
|
||||
<option selected value="OPTIONAL"> Optional </option>
|
||||
<option value="7-MAN"> 7-Man </option>
|
||||
@@ -164,10 +158,10 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Win ADJ. </label> <input id="win_adj" name="win_adj">
|
||||
<label for="win_adj"> Win ADJ. </label> <input id="win_adj" name="win_adj">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Draw ADJ. </label> <input id="draw_adj" name="draw_adj">
|
||||
<label for="draw_adj"> Draw ADJ. </label> <input id="draw_adj" name="draw_adj">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -119,12 +119,6 @@
|
||||
<div class="row">
|
||||
<label> Throughput </label> <input value="1000" id="throughput" , name="throughput">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Worker Limit</label> <input value="None" id="worker_limit" name="worker_limit">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label> Thread Limit </label> <input value="None" id="thread_limit" name="thread_limit">
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label> Syzygy WDL </label> <select name="syzygy_wdl">
|
||||
|
||||
@@ -118,12 +118,6 @@
|
||||
<div class="row">
|
||||
<label>Throughput</label><input value="{{test.throughput}}" name="throughput">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Worker Limit</label><input value="{{test.worker_limit|default:'None'}}" name="worker_limit">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Thread Limit</label><input value="{{test.thread_limit|default:'None'}}" name="thread_limit">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Workload Size</label><input value="{{test.workload_size}}" name="workload_size">
|
||||
</div>
|
||||
|
||||
@@ -125,14 +125,6 @@
|
||||
<label>Throughput</label>
|
||||
<input value="{{test.throughput}}" name="throughput">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Worker Limit</label>
|
||||
<input value="{{test.worker_limit|default:'None'}}" name="worker_limit">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Thread Limit</label>
|
||||
<input value="{{test.thread_limit|default:'None'}}" name="thread_limit">
|
||||
</div>
|
||||
|
||||
<!-- Edit Button: For Approvers or Test Authors -->
|
||||
{% if profile.approver or profile.user.username == test.author %}
|
||||
|
||||
Reference in new issue
Block a user