From ef727879072cc63f83ed1cae846d37f36e0bca28 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 21 Jun 2026 17:29:01 +0200 Subject: [PATCH] nix(loadtest): remove left-over run_command helper When we changed the test structure to use libfaketime, we moved away from generating targets as part of the chained command running with-pg/with-pgrst. This function was left-over from that, the genTargets script does not need to relay its remaining arguments arguments anymore. --- nix/tools/generate_targets.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/nix/tools/generate_targets.py b/nix/tools/generate_targets.py index 5f8edbd00..75ddd597c 100644 --- a/nix/tools/generate_targets.py +++ b/nix/tools/generate_targets.py @@ -12,7 +12,6 @@ # from an array import time import argparse -import subprocess import sys import random import jwt @@ -54,27 +53,6 @@ def generate_target( ] -# we use this to chain commands on loadtest.nix -def run_command(command: list[str]): - if not command: - return - - if command[0] == "--": - command = command[1:] - - if not command: - return - - try: - subprocess.run(command, check=True) - except subprocess.CalledProcessError as exc: - print( - f"Error executing command {' '.join(command)}: {exc}", - file=sys.stderr, - ) - sys.exit(exc.returncode) - - def main(): parser = argparse.ArgumentParser( description="Generate Vegeta targets with unique JWTs"