From 6f4863e4aafe36fcfd8d231a3c1419d49da6cb66 Mon Sep 17 00:00:00 2001 From: Dave Pifke Date: Fri, 22 Dec 2023 11:42:58 -0700 Subject: [PATCH] Install dependencies when list tracks `esrally list tracks` attempts to load plugins for each track, and if a dependency is missing, Rally exits with an error. Dependencies can be specified in track.json, however by default we don't install them every time we load a track, because doing so involves shelling out to pip. This commit changes `list tracks` to install any necessary dependencies during track loading. --- esrally/track/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esrally/track/loader.py b/esrally/track/loader.py index 22cf45a83..696b7a49a 100644 --- a/esrally/track/loader.py +++ b/esrally/track/loader.py @@ -129,7 +129,7 @@ def tracks(cfg): :return: A list of tracks that are available for the provided distribution version or else for the main version. """ repo = track_repo(cfg) - return [_load_single_track(cfg, repo, track_name) for track_name in repo.track_names] + return [_load_single_track(cfg, repo, track_name, install_dependencies=True) for track_name in repo.track_names] def list_tracks(cfg):