Skip to content

Commit

Permalink
Remove port from master-config.yml
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RazvanLiviuVarzaru committed Jan 9, 2025
1 parent f39d5da commit b732992
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions define_masters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
)
Expand All @@ -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"]))

0 comments on commit b732992

Please sign in to comment.