Skip to content

Commit

Permalink
Renamed Tracker to Workload Generator (#185) (#205)
Browse files Browse the repository at this point in the history
* Renamed Tracker to Workload_Processor

Signed-off-by: Ian Hoang <[email protected]>

* Update import in test_index.py to adhere to pylint standards

Signed-off-by: Ian Hoang <[email protected]>

* Rename workload_processor to workload_generator to be more apt

Signed-off-by: Ian Hoang <[email protected]>

Signed-off-by: Ian Hoang <[email protected]>
Co-authored-by: Ian Hoang <[email protected]>
  • Loading branch information
IanHoang and Ian Hoang authored Aug 11, 2022
1 parent bc28461 commit 589bcfd
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions osbenchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
test_execution_orchestrator, results_publisher, \
metrics, workload, chart_generator, exceptions, log
from osbenchmark.builder import provision_config, builder
from osbenchmark.tracker import tracker
from osbenchmark.workload_generator import workload_generator
from osbenchmark.utils import io, convert, process, console, net, opts, versions


Expand Down Expand Up @@ -902,7 +902,7 @@ def dispatch_sub_command(arg_parser, args, cfg):
cfg.add(config.Scope.applicationOverride, "workload", "workload.name", args.workload)
configure_connection_params(arg_parser, args, cfg)

tracker.create_workload(cfg)
workload_generator.create_workload(cfg)
elif sub_command == "info":
configure_workload_params(arg_parser, args, cfg)
workload.workload_info(cfg)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

from osbenchmark import PROGRAM_NAME
from osbenchmark.client import OsClientFactory
from osbenchmark.tracker import corpus, index
from osbenchmark.workload_generator import corpus, index
from osbenchmark.utils import io, opts, console


Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from unittest import mock
from unittest.mock import call

from osbenchmark.tracker import corpus
from osbenchmark.workload_generator import corpus


def serialize_doc(doc):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
# under the License.

from unittest import mock
from osbenchmark.tracker.index import filter_ephemeral_index_settings, extract_index_mapping_and_settings, update_index_setting_parameters
from osbenchmark.workload_generator.index import (
filter_ephemeral_index_settings,
extract_index_mapping_and_settings,
update_index_setting_parameters)


def test_index_setting_filter():
Expand Down

0 comments on commit 589bcfd

Please sign in to comment.