Skip to content

Commit

Permalink
Migrate to subdomain tests (#12)
Browse files Browse the repository at this point in the history
Server has been upgraded at the same time. Now using a 7950X with 96GB RAM, 1TB x2 SSD (RAID1), 1Gbps bandwidth.
  • Loading branch information
Viren6 authored Sep 5, 2024
1 parent 9d9ee92 commit 306eee7
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Montytest is a fishtest derivative: https://github.com/official-stockfish/fishtest

Montytest is a distributed task queue for testing chess engines. The main instance
for testing the chess engine [Monty](https://github.com/official-monty/Monty) is at this web page https://montychess.org
for testing the chess engine [Monty](https://github.com/official-monty/Monty) is at this web page https://tests.montychess.org

Developers submit patches with new ideas and improvements, CPU contributors install a montytest worker on their computers to play some chess games in the background to help the developers testing the patches.

Expand Down
6 changes: 4 additions & 2 deletions server/montytest/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
according to the route/URL mapping defined in `__init__.py`.
"""

WORKER_VERSION = 25
WORKER_VERSION = 26


@exception_view_config(HTTPException)
Expand Down Expand Up @@ -665,7 +665,9 @@ def download_nn(self):
else:
self.request.rundb.increment_nn_downloads(self.request.matchdict["id"])

return HTTPFound("https://montychess.org/nn/" + self.request.matchdict["id"])
return HTTPFound(
"https://tests.montychess.org/nn/" + self.request.matchdict["id"]
)


class InternalApi(GenericApi):
Expand Down
4 changes: 2 additions & 2 deletions server/montytest/rundb.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ def scavenge_dead_tasks(self):
for task_id, run in dead_tasks:
task = run["tasks"][task_id]
print(
"dead task: run: https://montychess.org/tests/view/{} task_id: {} worker: {}".format(
"dead task: run: https://tests.montychess.org/tests/view/{} task_id: {} worker: {}".format(
run["_id"], task_id, worker_name(task["worker_info"])
),
flush=True,
Expand Down Expand Up @@ -1574,7 +1574,7 @@ def failed_task(self, run_id, task_id, message="Unknown reason"):
self.handle_crash_or_time(run, task_id)
self.buffer(run, False)
print(
"Failed_task: failure for: https://montychess.org/tests/view/{}, "
"Failed_task: failure for: https://tests.montychess.org/tests/view/{}, "
"task_id: {}, worker: {}, reason: '{}'".format(
run_id, task_id, worker_name(task["worker_info"]), message
),
Expand Down
2 changes: 1 addition & 1 deletion server/montytest/static/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function notify(title, body, link, fallback) {
const notification = new Notification(title, {
body: body,
requireInteraction: true,
icon: "https://montychess.org/img/monty.png",
icon: "https://tests.montychess.org/img/monty.png",
});
notification.onclick = () => {
window.open(link, "_blank");
Expand Down
4 changes: 2 additions & 2 deletions server/montytest/templates/base.mak
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
<ul class="list-unstyled fw-normal small">
<li>
<a
href="https://montychess.org/download/"
href="https://tests.montychess.org/download/"
target="_blank"
rel="noopener"
class="links-link rounded release"
Expand All @@ -359,7 +359,7 @@
</li>
<li>
<a
href="https://montychess.org/get-involved/"
href="https://tests.montychess.org/get-involved/"
target="_blank"
rel="noopener"
class="links-link rounded get-involved"
Expand Down
8 changes: 4 additions & 4 deletions server/montytest/templates/sprt_calc.mak
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@
<em>live_elo page</em>
of a test with typical URL
<a
href="https://montychess.org/tests/live_elo/666cac63746a4248d2b64a4d"
>https://montychess.org/tests/live_elo/666cac63746a4248d2b64a4d</a
href="https://tests.montychess.org/tests/live_elo/666cac63746a4248d2b64a4d"
>https://tests.montychess.org/tests/live_elo/666cac63746a4248d2b64a4d</a
>
or the <em>raw statistics page</em> with typical URL
<a
href="http://montychess.org/tests/stats/666cac63746a4248d2b64a4d"
>http://montychess.org/tests/stats/666cac63746a4248d2b64a4d</a
href="http://tests.montychess.org/tests/stats/666cac63746a4248d2b64a4d"
>http://tests.montychess.org/tests/stats/666cac63746a4248d2b64a4d</a
>.
</li>
<li>
Expand Down
2 changes: 1 addition & 1 deletion server/montytest/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from email_validator import EmailNotValidError, caching_resolver, validate_email
from zxcvbn import zxcvbn

monty_URL = "https://montychess.org/tests/view/"
monty_URL = "https://tests.montychess.org/tests/view/"


class GeneratorAsFileReader:
Expand Down
2 changes: 1 addition & 1 deletion server/utils/clone_fish.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pymongo import ASCENDING, MongoClient

# monty_host = 'http://localhost:6543'
monty_host = "http://149.202.73.158/" # 'http://montychess.org'
monty_host = "http://130.250.185.45/" # 'http://tests.montychess.org'

conn = MongoClient("localhost")

Expand Down
2 changes: 1 addition & 1 deletion worker/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@ def make_player(arg):
"penta=true",
]
+ pgnout
+ ["-site", "https://montychess.org/tests/view/" + run["_id"]]
+ ["-site", "https://tests.montychess.org/tests/view/" + run["_id"]]
+ [
"-event",
"Batch {}: {} vs {}".format(
Expand Down
2 changes: 1 addition & 1 deletion worker/sri.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"__version": 25, "updater.py": "gSJX/HbsPwsZnUZaFbAgF0zwWPWXv+LEw9jBhJkxFOrCH9CZS0+4U4nE2fJdeNze", "worker.py": "fHEii2XAK7THu9srxn+XOwp5pJGShe4Nz2uJFl7npFD5P+cfKyZM5Du22kmA1KV+", "games.py": "GWKDCJDHcqL4VcGTIYp/Q0Elf7H/wiHa0SB9I+EfyVgOWyaBl6SnlAhaPAogF3SH"}
{"__version": 26, "updater.py": "gSJX/HbsPwsZnUZaFbAgF0zwWPWXv+LEw9jBhJkxFOrCH9CZS0+4U4nE2fJdeNze", "worker.py": "wTksP/uDhuFO81EOkwIDGWiTLbphR2d+wyqsCWBvylN5Xwm5UJOc3MFDW6coRfjh", "games.py": "xzUQOXluwXhfOZf4w0VsoPDR4/VgHYr/bkwt+dgJEM+zReVBM3B6+AlxJxVOfk59"}
6 changes: 3 additions & 3 deletions worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
MIN_CARGO_MAJOR = 1
MIN_CARGO_MINOR = 77

WORKER_VERSION = 25
WORKER_VERSION = 26
FILE_LIST = ["updater.py", "worker.py", "games.py"]
HTTP_TIMEOUT = 30.0
INITIAL_RETRY_TIME = 15.0
Expand Down Expand Up @@ -110,7 +110,7 @@
Apis used by the worker
=======================
<montytest> = https://montychess.org
<montytest> = https://tests.montychess.org
<github> = https://api.github.com
<github-books> = <github>/repos/official-monty/books
Expand Down Expand Up @@ -652,7 +652,7 @@ def setup_parameters(worker_dir):
("login", "username", "", str, None),
("login", "password", "", str, None),
("parameters", "protocol", "https", ["http", "https"], None),
("parameters", "host", "montychess.org", str, None),
("parameters", "host", "tests.montychess.org", str, None),
("parameters", "port", "443", int, None),
(
"parameters",
Expand Down

0 comments on commit 306eee7

Please sign in to comment.