Add back further changes from blender-devops
This commit is contained in:
parent
18e653fd2e
commit
0a1454d250
61 changed files with 7917 additions and 1 deletions
0
config/conf/local/__init__.py
Normal file
0
config/conf/local/__init__.py
Normal file
28
config/conf/local/auth.py
Normal file
28
config/conf/local/auth.py
Normal file
|
@ -0,0 +1,28 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# SPDX-FileCopyrightText: 2011-2024 Blender Authors
|
||||
# <pep8 compliant>
|
||||
|
||||
import buildbot.plugins
|
||||
|
||||
# Buildbot admin with access to everything.
|
||||
admin_usernames = [
|
||||
"admin",
|
||||
]
|
||||
|
||||
# Release engineers with access to store and deploy builders.
|
||||
deploy_dev_usernames = [
|
||||
"admin",
|
||||
]
|
||||
|
||||
# Trusted developers with access to trigger daily, doc and patch builds.
|
||||
trusted_dev_usernames = [
|
||||
"admin",
|
||||
]
|
||||
|
||||
|
||||
def get_authentication(devops_env_id: str):
|
||||
class LocalEnvAuth(buildbot.plugins.util.CustomAuth):
|
||||
def check_credentials(self, user, password):
|
||||
return user.decode() == "admin" and password.decode() == "admin"
|
||||
|
||||
return LocalEnvAuth()
|
31
config/conf/local/machines.py
Normal file
31
config/conf/local/machines.py
Normal file
|
@ -0,0 +1,31 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# SPDX-FileCopyrightText: 2011-2024 Blender Authors
|
||||
# <pep8 compliant>
|
||||
|
||||
_worker_names = {
|
||||
"code-lint": ["localhost"],
|
||||
"linux-x86_64-code": ["localhost"],
|
||||
"linux-x86_64-code-gpu": ["localhost"],
|
||||
"linux-x86_64-doc-api": ["localhost"],
|
||||
"linux-x86_64-doc-studio-tools": ["localhost"],
|
||||
"linux-x86_64-general": ["localhost"],
|
||||
"linux-x86_64-store-snap": ["localhost"],
|
||||
"linux-x86_64-store-steam": ["localhost"],
|
||||
"darwin-arm64-code": ["localhost"],
|
||||
"darwin-arm64-code-gpu": ["localhost"],
|
||||
"darwin-x86_64-code": ["localhost"],
|
||||
"darwin-x86_64-code-gpu": ["localhost"],
|
||||
"windows-amd64-code": ["localhost"],
|
||||
"windows-amd64-code-gpu": [],
|
||||
"windows-amd64-store-windows": ["localhost"],
|
||||
"windows-arm64-code": ["localhost"],
|
||||
"windows-arm64-code-gpu": [],
|
||||
}
|
||||
|
||||
|
||||
def get_worker_password(worker_name: str) -> str:
|
||||
return "localhost"
|
||||
|
||||
|
||||
def get_worker_names(devops_env_id: str):
|
||||
return _worker_names
|
87
config/conf/local/worker.py
Normal file
87
config/conf/local/worker.py
Normal file
|
@ -0,0 +1,87 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# SPDX-FileCopyrightText: 2011-2024 Blender Authors
|
||||
# <pep8 compliant>
|
||||
|
||||
import os
|
||||
import pathlib
|
||||
|
||||
from typing import Optional, Tuple
|
||||
|
||||
# Where tracks data is stored.
|
||||
tracks_root_path = pathlib.Path.home() / "git"
|
||||
|
||||
# Software cache
|
||||
software_cache_path = tracks_root_path / "downloads" / "software" / "workers"
|
||||
|
||||
# Docs delivery.
|
||||
docs_user = os.getlogin()
|
||||
docs_machine = "127.0.0.1"
|
||||
docs_folder = tracks_root_path / "delivery" / "docs"
|
||||
docs_port = 22
|
||||
|
||||
# Studio docs delivery.
|
||||
studio_user = os.getlogin()
|
||||
studio_machine = "127.0.0.1"
|
||||
studio_folder = tracks_root_path / "delivery" / "studio" / "blender-studio-tools"
|
||||
studio_port = 22
|
||||
|
||||
# Download delivery.
|
||||
download_user = os.getlogin()
|
||||
download_machine = "127.0.0.1"
|
||||
download_source_folder = tracks_root_path / "delivery" / "download" / "source"
|
||||
download_release_folder = tracks_root_path / "delivery" / "download" / "release"
|
||||
download_port = 22
|
||||
|
||||
# Buildbot download delivery
|
||||
buildbot_download_folder = tracks_root_path / "delivery" / "buildbot"
|
||||
|
||||
# Code signing
|
||||
sign_code_windows_certificate = None # "Blender Self Code Sign SPC"
|
||||
sign_code_windows_time_servers = ["http://ts.ssl.com"]
|
||||
sign_code_windows_server_url = "http://fake-windows-sign-server"
|
||||
|
||||
sign_code_darwin_certificate = None
|
||||
sign_code_darwin_team_id = None
|
||||
sign_code_darwin_apple_id = None
|
||||
sign_code_darwin_keychain_profile = None
|
||||
|
||||
|
||||
def darwin_keychain_password(service_env_id: str) -> str:
|
||||
return "fake_keychain_password"
|
||||
|
||||
|
||||
# Steam
|
||||
steam_app_id = None
|
||||
steam_platform_depot_ids = {
|
||||
"windows": None,
|
||||
"linux": None,
|
||||
"darwin": None,
|
||||
}
|
||||
|
||||
|
||||
def steam_credentials(service_env_id: str) -> Tuple[str, str]:
|
||||
return "fake_steam_username", "fake_steam_password"
|
||||
|
||||
|
||||
# Snap
|
||||
def snap_credentials(service_env_id: str) -> str:
|
||||
return "fake_snap_credentials"
|
||||
|
||||
|
||||
# Windows Store
|
||||
windows_store_self_sign = False
|
||||
|
||||
|
||||
def windows_store_certificate(service_env_id: str) -> str:
|
||||
# return sign_code_windows_certificate
|
||||
return "fake_windows_store_publisher"
|
||||
|
||||
|
||||
# PyPI
|
||||
def pypi_token(service_env_id: str) -> str:
|
||||
return "fake_pypi_token"
|
||||
|
||||
|
||||
# Gitea
|
||||
def gitea_api_token(service_env_id: str) -> Optional[str]:
|
||||
return None
|
Loading…
Add table
Add a link
Reference in a new issue