Skip to content

Commit 705da94

Browse files
fmastemgmeier
authored andcommitted
wb | small changes
1 parent 1a93b04 commit 705da94

File tree

4 files changed

+21
-13
lines changed

4 files changed

+21
-13
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ PROFILES_EPOCHTRANS := epoch-transition
8484
PROFILES_PLUTUSCALL := plutuscall-loop-plain plutuscall-secp-ecdsa-plain plutuscall-secp-schnorr-plain
8585
PROFILES_PLUTUSCALL += plutuscall-loop-half plutuscall-secp-ecdsa-half plutuscall-secp-schnorr-half
8686
PROFILES_PLUTUSCALL += plutuscall-loop-double plutuscall-secp-ecdsa-double plutuscall-secp-schnorr-double
87-
PROFILES_MODEL := model-value model-secp-ecdsa-plain model-secp-ecdsa-half model-secp-ecdsa-double
88-
PROFILES_MODEL += model-value-test
87+
PROFILES_MODEL := model-value model-secp-ecdsa-plain model-secp-ecdsa-half model-secp-ecdsa-double
88+
PROFILES_MODEL += model-value-test
8989
PROFILES_10 := 10 10-p2p 10-plutus 10-notracer
9090
PROFILES_FORGE_STRESS := forge-stress forge-stress-p2p forge-stress-plutus forge-stress-plutus-solo forge-stress-notracer forge-stress-large forge-stress-solo forge-stress-solo-xs
9191
PROFILES_FORGE_STRESS_PRE := forge-stress-pre forge-stress-pre-plutus forge-stress-pre-notracer forge-stress-pre-solo forge-stress-pre-solo-xl forge-stress-pre-solo-xs

nix/workbench/backend/nomad/cloud.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ backend_nomadcloud() {
1919

2020
# Overrided backend "methods"
2121

22+
# All sub-backends set these same jq envars.
2223
setenv-defaults )
2324
local usage="USAGE: wb backend $op BACKEND-DIR"
2425
local backend_dir=${1:?$usage}; shift
@@ -190,9 +191,7 @@ backend_nomadcloud() {
190191

191192
}
192193

193-
# Sets jq envars ("profile_container_specs_file" ,"nomad_environment",
194-
# "nomad_task_driver" and "one_tracer_per_node") and checks Nomad envars
195-
# (NOMAD_ADDR, NOMAD_NAMESPACE, NOMAD_TOKEN).
194+
# Sets the envars not shared by all the other sub-backends.
196195
setenv-defaults-nomadcloud() {
197196
local backend_dir="${1}"
198197

@@ -683,9 +682,19 @@ allocate-run-nomadcloud() {
683682
# changes something related to Nomad Clients or AWS instances we
684683
# may hopefully notice it when the job fails to start (placement
685684
# errors).
686-
msg "$(blue "INFO:") Nomad Task $(yellow "\"${task_name}\"") will be constrainted to $(yellow "AWS Instance ID \"${instance_id}\" with AZ \"${availability_zone}\"") that is currently running $(yellow "Nomad node \"${node_name}\" (${node_id})")"
685+
msg "$(blue "INFO:") Nomad Task $(yellow "\"${task_name}\"") will be constrainted to $(yellow "AWS Instance ID \"${instance_id}\" with AZ \"${availability_zone}\"") running $(yellow "Nomad node \"${node_name}\" (${node_id})")"
687686
local group_constraints_array_plus="
688687
[ \
688+
{ \
689+
\"attribute\": \"\${node.unique.id}\" \
690+
, \"value\": \"${node_id}\" \
691+
} \
692+
,
693+
{ \
694+
\"attribute\": \"\${node.unique.name}\" \
695+
, \"value\": \"${node_name}\" \
696+
} \
697+
,
689698
{ \
690699
\"attribute\": \"\${attr.platform.aws.instance-type}\" \
691700
, \"value\": \"${instance_type}\" \
@@ -856,7 +865,7 @@ check-deployment() {
856865
then
857866
echo "${node_specs_ante}" > "${dir}"/node-specs.ante.json
858867
echo "${node_specs_post}" > "${dir}"/node-specs.post.json
859-
diff --side-by-side "${dir}"/node-specs.ante.json "${dir}"/node-specs.post.json
868+
dyff between "${dir}"/node-specs.ante.json "${dir}"/node-specs.post.json
860869
msg "$(red "----------")"
861870
msg "$(red "REQUESTED AND DEPLOYED node-specs.json DO NOT MATCH")"
862871
msg "$(red "----------")"
@@ -877,7 +886,7 @@ check-deployment() {
877886
then
878887
echo "${topology_ante}" > "${dir}"/topology.ante.json
879888
echo "${topology_post}" > "${dir}"/topology.post.json
880-
diff --side-by-side "${dir}"/topology.ante.json "${dir}"/topology.post.json
889+
dyff between "${dir}"/topology.ante.json "${dir}"/topology.post.json
881890
msg "$(red "----------")"
882891
msg "$(red "REQUESTED AND DEPLOYED topology.json DO NOT MATCH")"
883892
msg "$(red "----------")"

nix/workbench/backend/nomad/exec.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ backend_nomadexec() {
1919

2020
# Overrided backend "methods"
2121

22+
# All sub-backends set these same jq envars.
2223
setenv-defaults )
2324
local usage="USAGE: wb backend $op BACKEND-DIR"
2425
local backend_dir=${1:?$usage}; shift
@@ -156,8 +157,7 @@ backend_nomadexec() {
156157

157158
}
158159

159-
# Sets jq envars "profile_container_specs_file" ,"nomad_environment",
160-
# "nomad_task_driver" and "one_tracer_per_node".
160+
# Sets the envars not shared by all the other sub-backends.
161161
setenv-defaults-nomadexec() {
162162
local backend_dir="${1}"
163163

nix/workbench/backend/nomad/podman.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ backend_nomadpodman() {
1919

2020
# Overrided backend "methods"
2121

22+
# All sub-backends set these same jq envars.
2223
setenv-defaults )
2324
local usage="USAGE: wb backend $op BACKEND-DIR"
2425
local backend_dir=${1:?$usage}; shift
@@ -156,9 +157,7 @@ backend_nomadpodman() {
156157

157158
}
158159

159-
# Sets jq envars "profile_container_specs_file" ,"nomad_environment",
160-
# "nomad_task_driver" and "one_tracer_per_node".
161-
# It "overrides" completely `backend_nomad`'s `setenv-defaults`.
160+
# Sets the envars not shared by all the other sub-backends.
162161
setenv-defaults-nomadpodman() {
163162
local backend_dir="${1}"
164163

0 commit comments

Comments
 (0)