Store the source path on the server side for Client usage

This commit is contained in:
AndyGrant committed 2020-02-18 19:34:39 -05:00
1 parent ab4da06b8b
commit 8adb23d974
3 files changed
+28 -31

No files matched your search

+7 -10
View File
@@ -30,11 +30,11 @@ ERROR_TIMEOUT = 60 # Timeout when an error is thrown
GAMES_PER_CONCURRENCY = 32 # Total games to play per concurrency
CUSTOM_SETTINGS = {
'ETHEREAL' : { 'path' : '/src/', 'args' : [] }, # Configuration for Ethereal
'LASER' : { 'path' : '/src/', 'args' : [] }, # Configuration for Laser
'WEISS' : { 'path' : '/src/', 'args' : [] }, # Configuration for Weiss
'DEMOLITO' : { 'path' : '/src/', 'args' : [] }, # Configuration for Demolito
'RUBICHESS' : { 'path' : '/src/', 'args' : [] }, # Configuration for RubiChess
'ETHEREAL' : { 'args' : [] }, # Configuration for Ethereal
'LASER' : { 'args' : [] }, # Configuration for Laser
'WEISS' : { 'args' : [] }, # Configuration for Weiss
'DEMOLITO' : { 'args' : [] }, # Configuration for Demolito
'RUBICHESS' : { 'args' : [] }, # Configuration for RubiChess
};
@@ -139,15 +139,12 @@ def getEngine(data, engine):
tokens = engine['source'].split('/')
unzipname = '{0}-{1}'.format(tokens[-3], tokens[-1].replace('.zip', ''))
getAndUnzipFile(engine['source'], '{0}.zip'.format(engine['name']), 'tmp')
# By default, build at the root with a simple make
pathway = 'tmp/{0}/'.format(unzipname)
command = ['make', 'EXE={0}'.format(engine['name'])]
pathway = pathjoin('tmp/{0}/'.format(unzipname), data['test']['path'])
# Check CUSTOM_SETTINGS for a custom configuration
command = ['make', 'EXE={0}'.format(engine['name'])]
if data['test']['engine'].upper() in CUSTOM_SETTINGS:
config = CUSTOM_SETTINGS[data['test']['engine'].upper()]
pathway = pathjoin(pathway, config['path'])
command.extend(config['args'])
# Build the engine. If something goes wrong with the
+14 -9
View File
@@ -67,6 +67,7 @@ OPENBENCH_CONFIG = {
'Ethereal' : {
'proto' : 'uci',
'nps' : 1275000,
'path' : '/src/',
'source' : 'https://github.com/AndyGrant/Ethereal',
'testmodes' : {
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '12.0+0.12' },
@@ -77,9 +78,10 @@ OPENBENCH_CONFIG = {
},
'Laser' : {
'proto' : 'uci',
'nps' : 710000,
'source' : 'https://github.com/jeffreyan11/uci-chess-engine',
'proto' : 'uci',
'nps' : 710000,
'path' : '/src/',
'source' : 'https://github.com/jeffreyan11/uci-chess-engine',
'testmodes' : {
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '10.0+0.1' },
'ltc' : { 'threads' : 1, 'hash' : 64, 'timecontrol' : '60.0+0.6' },
@@ -89,9 +91,10 @@ OPENBENCH_CONFIG = {
},
'Weiss' : {
'proto' : 'uci',
'nps' : 2675000,
'source' : 'https://github.com/TerjeKir/weiss',
'proto' : 'uci',
'nps' : 2675000,
'path' : '/src/',
'source' : 'https://github.com/TerjeKir/weiss',
'testmodes' : {
'stc' : { 'threads' : 1, 'hash' : 32, 'timecontrol' : '10.0+0.1' },
'ltc' : { 'threads' : 1, 'hash' : 128, 'timecontrol' : '60.0+0.6' },
@@ -101,9 +104,10 @@ OPENBENCH_CONFIG = {
},
'Demolito' : {
'proto' : 'uci',
'nps' : 1250000,
'source' : 'https://github.com/lucasart/Demolito',
'proto' : 'uci',
'nps' : 1250000,
'path' : '/src/',
'source' : 'https://github.com/lucasart/Demolito',
'testmodes' : {
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '8.0+0.08' },
'ltc' : { 'threads' : 1, 'hash' : 32, 'timecontrol' : '32.0+0.32'},
@@ -115,6 +119,7 @@ OPENBENCH_CONFIG = {
'RubiChess' : {
'proto' : 'uci',
'nps' : 1000000,
'path' : '/src/',
'source' : 'https://github.com/Matthies/RubiChess',
'testmodes' : {
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '10.0+0.1' },
+7 -12
View File
@@ -227,25 +227,20 @@ def workloadDictionary(machine, result, test):
'test' : {
'id' : test.id,
'nps' : OPENBENCH_CONFIG['engines'][test.engine]['nps'],
'path' : OPENBENCH_CONFIG['engines'][test.engine]['path'],
'book' : OPENBENCH_CONFIG['books'][test.bookname],
'timecontrol' : test.timecontrol,
'engine' : test.engine,
'dev' : {
'id' : test.dev.id,
'name' : test.dev.name,
'source' : test.dev.source,
'protocol' : test.dev.protocol,
'sha' : test.dev.sha,
'bench' : test.dev.bench,
'id' : test.dev.id, 'name' : test.dev.name,
'source' : test.dev.source, 'protocol' : test.dev.protocol,
'sha' : test.dev.sha, 'bench' : test.dev.bench,
'options' : test.devoptions,
},
'base' : {
'id' : test.base.id,
'name' : test.base.name,
'source' : test.base.source,
'protocol' : test.base.protocol,
'sha' : test.base.sha,
'bench' : test.base.bench,
'id' : test.base.id, 'name' : test.base.name,
'source' : test.base.source, 'protocol' : test.base.protocol,
'sha' : test.base.sha, 'bench' : test.base.bench,
'options' : test.baseoptions,
},
},