Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions spartan/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ function network_bench {

echo_header "spartan bench"
gcp_auth
export K8S_ENRICHER=${K8S_ENRICHER:-1}
network_bench_cmds | parallelize 1
}

Expand All @@ -165,6 +166,7 @@ function proving_bench {

echo_header "spartan proving bench"
gcp_auth
export K8S_ENRICHER=${K8S_ENRICHER:-1}
proving_bench_cmds | parallelize 1
}

Expand Down Expand Up @@ -219,6 +221,7 @@ case "$cmd" in
# Run the network deploy script
DENOISE=1 denoise "./scripts/network_deploy.sh $env_file"

export K8S_ENRICHER=${K8S_ENRICHER:-1}
if [[ "${RUN_TESTS:-}" == "true" ]]; then
if [[ -n "$test_set" ]]; then
network_tests_$test_set "$env_file"
Expand Down Expand Up @@ -281,8 +284,8 @@ case "$cmd" in
source scripts/source_network_env.sh
source_network_env ${KIND_ENV:-kind-provers}
namespace="upgrade-rollup-version${NAME_POSTFIX:-}"
INSTALL_METRICS=false \
./scripts/test_kind.sh src/spartan/upgrade_rollup_version.test.ts "$namespace"
export K8S_ENRICHER=${K8S_ENRICHER:-1}
./scripts/test_kind.sh src/spartan/upgrade_rollup_version.test.ts "$namespace"
;;
"network_teardown")
env_file="$1"
Expand Down
6 changes: 6 additions & 0 deletions spartan/scripts/k8s_enricher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ if (cacheLogMode) {

const namespace = args[0];

// Previously this also ran, then Alex got bombarded running hundreds of prover agents.
// This is now set on the relevant tests.
if (process.env.K8S_ENRICHER !== '1') {
process.exit(0);
}

if (!namespace) {
console.error('Usage: k8s_enricher.ts <namespace> [--cache-log]');
process.exit(1);
Expand Down
Loading