Store the source path on the server side for Client usage
This commit is contained in:
1 parent
ab4da06b8b
commit
8adb23d974
3 files changed
+19
-22
No files matched your search
+7
-10
@@ -30,11 +30,11 @@ ERROR_TIMEOUT = 60 # Timeout when an error is thrown
|
|||||||
GAMES_PER_CONCURRENCY = 32 # Total games to play per concurrency
|
GAMES_PER_CONCURRENCY = 32 # Total games to play per concurrency
|
||||||
|
|
||||||
CUSTOM_SETTINGS = {
|
CUSTOM_SETTINGS = {
|
||||||
'ETHEREAL' : { 'path' : '/src/', 'args' : [] }, # Configuration for Ethereal
|
'ETHEREAL' : { 'args' : [] }, # Configuration for Ethereal
|
||||||
'LASER' : { 'path' : '/src/', 'args' : [] }, # Configuration for Laser
|
'LASER' : { 'args' : [] }, # Configuration for Laser
|
||||||
'WEISS' : { 'path' : '/src/', 'args' : [] }, # Configuration for Weiss
|
'WEISS' : { 'args' : [] }, # Configuration for Weiss
|
||||||
'DEMOLITO' : { 'path' : '/src/', 'args' : [] }, # Configuration for Demolito
|
'DEMOLITO' : { 'args' : [] }, # Configuration for Demolito
|
||||||
'RUBICHESS' : { 'path' : '/src/', 'args' : [] }, # Configuration for RubiChess
|
'RUBICHESS' : { 'args' : [] }, # Configuration for RubiChess
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -139,15 +139,12 @@ def getEngine(data, engine):
|
|||||||
tokens = engine['source'].split('/')
|
tokens = engine['source'].split('/')
|
||||||
unzipname = '{0}-{1}'.format(tokens[-3], tokens[-1].replace('.zip', ''))
|
unzipname = '{0}-{1}'.format(tokens[-3], tokens[-1].replace('.zip', ''))
|
||||||
getAndUnzipFile(engine['source'], '{0}.zip'.format(engine['name']), 'tmp')
|
getAndUnzipFile(engine['source'], '{0}.zip'.format(engine['name']), 'tmp')
|
||||||
|
pathway = pathjoin('tmp/{0}/'.format(unzipname), data['test']['path'])
|
||||||
# By default, build at the root with a simple make
|
|
||||||
pathway = 'tmp/{0}/'.format(unzipname)
|
|
||||||
command = ['make', 'EXE={0}'.format(engine['name'])]
|
|
||||||
|
|
||||||
# Check CUSTOM_SETTINGS for a custom configuration
|
# Check CUSTOM_SETTINGS for a custom configuration
|
||||||
|
command = ['make', 'EXE={0}'.format(engine['name'])]
|
||||||
if data['test']['engine'].upper() in CUSTOM_SETTINGS:
|
if data['test']['engine'].upper() in CUSTOM_SETTINGS:
|
||||||
config = CUSTOM_SETTINGS[data['test']['engine'].upper()]
|
config = CUSTOM_SETTINGS[data['test']['engine'].upper()]
|
||||||
pathway = pathjoin(pathway, config['path'])
|
|
||||||
command.extend(config['args'])
|
command.extend(config['args'])
|
||||||
|
|
||||||
# Build the engine. If something goes wrong with the
|
# Build the engine. If something goes wrong with the
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ OPENBENCH_CONFIG = {
|
|||||||
'Ethereal' : {
|
'Ethereal' : {
|
||||||
'proto' : 'uci',
|
'proto' : 'uci',
|
||||||
'nps' : 1275000,
|
'nps' : 1275000,
|
||||||
|
'path' : '/src/',
|
||||||
'source' : 'https://github.com/AndyGrant/Ethereal',
|
'source' : 'https://github.com/AndyGrant/Ethereal',
|
||||||
'testmodes' : {
|
'testmodes' : {
|
||||||
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '12.0+0.12' },
|
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '12.0+0.12' },
|
||||||
@@ -79,6 +80,7 @@ OPENBENCH_CONFIG = {
|
|||||||
'Laser' : {
|
'Laser' : {
|
||||||
'proto' : 'uci',
|
'proto' : 'uci',
|
||||||
'nps' : 710000,
|
'nps' : 710000,
|
||||||
|
'path' : '/src/',
|
||||||
'source' : 'https://github.com/jeffreyan11/uci-chess-engine',
|
'source' : 'https://github.com/jeffreyan11/uci-chess-engine',
|
||||||
'testmodes' : {
|
'testmodes' : {
|
||||||
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '10.0+0.1' },
|
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '10.0+0.1' },
|
||||||
@@ -91,6 +93,7 @@ OPENBENCH_CONFIG = {
|
|||||||
'Weiss' : {
|
'Weiss' : {
|
||||||
'proto' : 'uci',
|
'proto' : 'uci',
|
||||||
'nps' : 2675000,
|
'nps' : 2675000,
|
||||||
|
'path' : '/src/',
|
||||||
'source' : 'https://github.com/TerjeKir/weiss',
|
'source' : 'https://github.com/TerjeKir/weiss',
|
||||||
'testmodes' : {
|
'testmodes' : {
|
||||||
'stc' : { 'threads' : 1, 'hash' : 32, 'timecontrol' : '10.0+0.1' },
|
'stc' : { 'threads' : 1, 'hash' : 32, 'timecontrol' : '10.0+0.1' },
|
||||||
@@ -103,6 +106,7 @@ OPENBENCH_CONFIG = {
|
|||||||
'Demolito' : {
|
'Demolito' : {
|
||||||
'proto' : 'uci',
|
'proto' : 'uci',
|
||||||
'nps' : 1250000,
|
'nps' : 1250000,
|
||||||
|
'path' : '/src/',
|
||||||
'source' : 'https://github.com/lucasart/Demolito',
|
'source' : 'https://github.com/lucasart/Demolito',
|
||||||
'testmodes' : {
|
'testmodes' : {
|
||||||
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '8.0+0.08' },
|
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '8.0+0.08' },
|
||||||
@@ -115,6 +119,7 @@ OPENBENCH_CONFIG = {
|
|||||||
'RubiChess' : {
|
'RubiChess' : {
|
||||||
'proto' : 'uci',
|
'proto' : 'uci',
|
||||||
'nps' : 1000000,
|
'nps' : 1000000,
|
||||||
|
'path' : '/src/',
|
||||||
'source' : 'https://github.com/Matthies/RubiChess',
|
'source' : 'https://github.com/Matthies/RubiChess',
|
||||||
'testmodes' : {
|
'testmodes' : {
|
||||||
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '10.0+0.1' },
|
'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '10.0+0.1' },
|
||||||
|
|||||||
+7
-12
@@ -227,25 +227,20 @@ def workloadDictionary(machine, result, test):
|
|||||||
'test' : {
|
'test' : {
|
||||||
'id' : test.id,
|
'id' : test.id,
|
||||||
'nps' : OPENBENCH_CONFIG['engines'][test.engine]['nps'],
|
'nps' : OPENBENCH_CONFIG['engines'][test.engine]['nps'],
|
||||||
|
'path' : OPENBENCH_CONFIG['engines'][test.engine]['path'],
|
||||||
'book' : OPENBENCH_CONFIG['books'][test.bookname],
|
'book' : OPENBENCH_CONFIG['books'][test.bookname],
|
||||||
'timecontrol' : test.timecontrol,
|
'timecontrol' : test.timecontrol,
|
||||||
'engine' : test.engine,
|
'engine' : test.engine,
|
||||||
'dev' : {
|
'dev' : {
|
||||||
'id' : test.dev.id,
|
'id' : test.dev.id, 'name' : test.dev.name,
|
||||||
'name' : test.dev.name,
|
'source' : test.dev.source, 'protocol' : test.dev.protocol,
|
||||||
'source' : test.dev.source,
|
'sha' : test.dev.sha, 'bench' : test.dev.bench,
|
||||||
'protocol' : test.dev.protocol,
|
|
||||||
'sha' : test.dev.sha,
|
|
||||||
'bench' : test.dev.bench,
|
|
||||||
'options' : test.devoptions,
|
'options' : test.devoptions,
|
||||||
},
|
},
|
||||||
'base' : {
|
'base' : {
|
||||||
'id' : test.base.id,
|
'id' : test.base.id, 'name' : test.base.name,
|
||||||
'name' : test.base.name,
|
'source' : test.base.source, 'protocol' : test.base.protocol,
|
||||||
'source' : test.base.source,
|
'sha' : test.base.sha, 'bench' : test.base.bench,
|
||||||
'protocol' : test.base.protocol,
|
|
||||||
'sha' : test.base.sha,
|
|
||||||
'bench' : test.base.bench,
|
|
||||||
'options' : test.baseoptions,
|
'options' : test.baseoptions,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user