mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-27 06:10:53 +01:00
Fixed buildbot
This commit is contained in:
parent
b90f365485
commit
290a57fcc5
2 changed files with 3 additions and 8 deletions
|
@ -103,8 +103,7 @@ class NixEvalCommand(buildstep.ShellMixin, steps.BuildStep):
|
|||
kwargs = self.setupShellMixin(kwargs)
|
||||
super().__init__(**kwargs)
|
||||
self.observer = logobserver.BufferLogObserver()
|
||||
self.addLogObserver("Eval trace", self.observer)
|
||||
self.logEnviron = False
|
||||
self.addLogObserver("stdio", self.observer)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def run(self) -> Generator[Any, object, Any]:
|
||||
|
@ -114,7 +113,6 @@ class NixEvalCommand(buildstep.ShellMixin, steps.BuildStep):
|
|||
|
||||
# if the command passes extract the list of stages
|
||||
result = cmd.results()
|
||||
print(f"RESULT: {result}")
|
||||
if result == util.SUCCESS:
|
||||
# create a ShellCommand for each stage and add them to the build
|
||||
jobs = []
|
||||
|
@ -323,6 +321,7 @@ def nix_eval_config(
|
|||
|
||||
factory.addStep(
|
||||
NixEvalCommand(
|
||||
logEnviron = False,
|
||||
env={},
|
||||
name="Eval flake",
|
||||
command=[
|
||||
|
|
|
@ -110,9 +110,6 @@ def build_config() -> dict[str, Any]:
|
|||
|
||||
credentials = os.environ.get("CREDENTIALS_DIRECTORY", ".")
|
||||
|
||||
has_cachix_auth_token = False
|
||||
has_cachix_signing_key = False
|
||||
|
||||
systemd_secrets = secrets.SecretInAFile(dirname=credentials)
|
||||
c["secretsProviders"] = [systemd_secrets]
|
||||
c["workers"] = []
|
||||
|
@ -130,9 +127,8 @@ def build_config() -> dict[str, Any]:
|
|||
nix_eval_config(
|
||||
[worker_names[0]],
|
||||
github_token_secret="github-token",
|
||||
automerge_users=[BUILDBOT_GITHUB_USER],
|
||||
),
|
||||
nix_build_config(worker_names, has_cachix_auth_token, has_cachix_signing_key),
|
||||
nix_build_config(worker_names),
|
||||
nix_update_flake_config(
|
||||
worker_names,
|
||||
f"{ORG}/{REPO}",
|
||||
|
|
Loading…
Add table
Reference in a new issue