From b73299298e4e3cc8b58c5a8ce3f72ef2c456c64f Mon Sep 17 00:00:00 2001 From: Razvan-Liviu Varzaru Date: Thu, 9 Jan 2025 11:04:49 +0200 Subject: [PATCH] Remove port from master-config.yml This was the "systemd" approach on BuildBot services for getting the PORT number. Now that both environments run in docker containers, the port variable is exposed to the container environment via docker-compose. --- define_masters.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/define_masters.py b/define_masters.py index ed90ccec..4b62abed 100755 --- a/define_masters.py +++ b/define_masters.py @@ -27,7 +27,6 @@ if os.path.exists(BASE_PATH): shutil.rmtree(BASE_PATH) -IDX = 0 for arch in platforms: # Create the directory for the architecture that is handled by each master # If for a given architecture there are more than "max_builds" builds, @@ -47,13 +46,6 @@ master_config["workers"] = config["private"]["master-variables"]["workers"][ arch ] - - starting_port = int( - os.getenv( - "PORT", default=config["private"]["master-variables"]["starting_port"] - ) - ) - master_config["port"] = starting_port + IDX master_config["log_name"] = ( "master-docker-" + arch + "-" + str(master_id) + ".log" ) @@ -69,5 +61,4 @@ ) with open(dir_path + "/buildbot.tac", mode="w", encoding="utf-8") as f: f.write(buildbot_tac) - IDX += 1 print(arch, len(master_config["builders"]))