Skip to content

Commit

Permalink
fix cd pipeline for code proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
tenmoves committed May 3, 2023
1 parent 03103b0 commit fb88d67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ config :git_hooks,
{:cmd, "mix credo"},
{:cmd, "mix sobelow"},
{:cmd, "mix knigge.verify"},
{:cmd, "mix test --trace"},
{:cmd, "mix dialyzer"},
{:cmd, "mix check.updates"}
# {:cmd, "mix test --trace"},
{:cmd, "mix dialyzer"}
# {:cmd, "mix check.updates"}
]
]
]
Expand Down
1 change: 1 addition & 0 deletions lib/archethic/governance/code/cicd/docker/cicd.ex
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ defmodule Archethic.Governance.Code.CICD.Docker do
end

@subnet "172.16.100.0/24"

defp testnet_start(dir, nb_nodes) do
compose = compose_file(dir)
options = [image: "archethic-cd", dir: dir, src: @src_dir, persist: false]
Expand Down
3 changes: 1 addition & 2 deletions lib/archethic/governance/code/proposal/validator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ defmodule Archethic.Governance.Code.Proposal.Validator do
"""
require Logger

alias Archethic.Utils
alias Archethic.Utils.Regression

@marker Application.compile_env(:archethic, :marker)
Expand All @@ -20,7 +19,7 @@ defmodule Archethic.Governance.Code.Proposal.Validator do
_ <- Process.sleep(3 * 60 * 1000),
:ok <- Regression.run_benchmarks(nodes, phase: :after),
:ok <- Regression.run_playbooks(nodes),
{:ok, metrics} <-
{:ok, _metrics} <-
Regression.get_metrics("collector", 9090, 5 + System.monotonic_time(:second) - start) do
write_metrics(metrics)
end
Expand Down

0 comments on commit fb88d67

Please sign in to comment.