Skip to content

Commit

Permalink
Merge pull request #5538 from input-output-hk/andreabedini/workbench/…
Browse files Browse the repository at this point in the history
…cleanup-dead-code

Clean up some dead code in nix/workbench
  • Loading branch information
mgmeier authored Dec 8, 2023
2 parents e1a3f4b + d98064e commit 1cc31d2
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 75 deletions.
22 changes: 0 additions & 22 deletions nix/workbench/cluster.sh

This file was deleted.

24 changes: 0 additions & 24 deletions nix/workbench/forall.sh

This file was deleted.

16 changes: 0 additions & 16 deletions nix/workbench/lib.jq

This file was deleted.

9 changes: 0 additions & 9 deletions nix/workbench/lib.nix

This file was deleted.

17 changes: 16 additions & 1 deletion nix/workbench/manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,22 @@ case "${op}" in
local json=${1:?$usage}

jq '
include "lib";
def color:
{ red: "\u001b[31m"
, green: "\u001b[32m"
, yellow: "\u001b[33m"
, blue: "\u001b[34m"
, magenta: "\u001b[35m"
, cyan: "\u001b[36m"
, white: "\u001b[37m"
, off: "\u001b[39m"
};
def colorly($col; $x):
"\(color[$col])\($x)\(color["off"])";
def drop_nulls:
map(select(. != null));
def unwords: join(" ");
def unlines: join("\n");
Expand Down
3 changes: 1 addition & 2 deletions nix/workbench/profile/prof3-derived.jq
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include "prof0-defaults";
include "genesis";
include "lib";

## XXX: this is corruption at the highest levels, pure and simple.
def default_value_tx_size_estimate:
Expand Down Expand Up @@ -102,7 +101,7 @@ def add_derived_params:
| ($shutdown_slots | may_mult($gsis.slot_duration)) as $shutdown_time
| ([ $generator_requested_duration
, $shutdown_time
] | drop_nulls | min) as $generator_duration
] | map(values) | min) as $generator_duration

## Tx count for inferred absolute duration.
## Note that this the workload would take longer, if we saturate the cluster.
Expand Down
7 changes: 6 additions & 1 deletion nix/workbench/service/nodes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@
}:

with pkgs.lib;
with (import ../lib.nix pkgs.lib);

let
readJSONMay = fp:
let fv = __tryEval (__readFile fp);
in if fv.success
then __fromJSON fv.value
else {};

profileName = profile.name;

eras = [ ## This defines the order of eras -- which is important.
Expand Down

0 comments on commit 1cc31d2

Please sign in to comment.