Implement authentication via Gitea
Some checks failed
/ checks (pull_request) Failing after 14s

This commit is contained in:
Bart van der Braak 2024-11-20 23:59:35 +01:00
parent 0f45b38432
commit edb56e96dc
22 changed files with 134 additions and 82 deletions

View file

@ -233,7 +233,7 @@ scheduler_properties = {
@buildbot.plugins.util.renderer
def create_code_worker_command_args(
props, ENVIRONMENT, track_id, pipeline_type, step_name
props, environment, track_id, pipeline_type, step_name
):
commit_id = pipeline.common.fetch_property(props, key="revision", default="HEAD")
patch_id = pipeline.common.fetch_property(props, key="patch_id", default="")
@ -294,7 +294,7 @@ def create_code_worker_command_args(
args += [step_name]
return pipeline.common.create_worker_command("code.py", ENVIRONMENT, track_id, args)
return pipeline.common.create_worker_command("code.py", environment, track_id, args)
def needs_do_code_pipeline_step(step):
@ -449,17 +449,17 @@ class PlatformTrigger(plugins_steps.Trigger):
return schedulers
def populate(ENVIRONMENT):
def populate(environment):
builders = []
schedulers = []
platform_worker_names = conf.machines.fetch_platform_worker_names(ENVIRONMENT)
platform_worker_names = conf.machines.fetch_platform_worker_names(environment)
local_worker_names = conf.machines.fetch_local_worker_names()
worker_config = conf.worker.get_config(ENVIRONMENT)
worker_config = conf.worker.get_config(environment)
needs_incremental_schedulers = ENVIRONMENT in ["PROD"]
needs_nightly_schedulers = ENVIRONMENT in ["PROD"]
needs_incremental_schedulers = environment in ["PROD"]
needs_nightly_schedulers = environment in ["PROD"]
print("*** Creating [code] pipeline")
for track_id in code_track_ids:
@ -491,7 +491,7 @@ def populate(ENVIRONMENT):
step_timeout_in_seconds = compile_gpu_step_timeout_in_seconds
step_command = create_code_worker_command_args.withArgs(
ENVIRONMENT, track_id, pipeline_type, step_name
environment, track_id, pipeline_type, step_name
)
step = buildbot.plugins.steps.ShellCommand(
@ -510,7 +510,7 @@ def populate(ENVIRONMENT):
for master_step_name in pipeline.common.code_pipeline_master_step_names:
master_step_command = (
pipeline.common.create_master_command_args.withArgs(
ENVIRONMENT,
environment,
track_id,
pipeline_type,
master_step_name,
@ -534,7 +534,7 @@ def populate(ENVIRONMENT):
pipeline_lint_factory = buildbot.plugins.util.BuildFactory()
for step_name in code_pipeline_lint_step_names:
step_command = create_code_worker_command_args.withArgs(
ENVIRONMENT, track_id, pipeline_type, step_name
environment, track_id, pipeline_type, step_name
)
pipeline_lint_factory.addStep(
@ -574,7 +574,7 @@ def populate(ENVIRONMENT):
suitable_pipeline_worker_names = pipeline_worker_names
if (
platform_architecture == "linux-x86_64"
and ENVIRONMENT != "LOCAL"
and environment != "LOCAL"
):
selector = "rocky"
suitable_pipeline_worker_names = [