|
38 | 38 | test_execution_orchestrator, results_publisher, \
|
39 | 39 | metrics, workload, exceptions, log
|
40 | 40 | from osbenchmark.builder import provision_config, builder
|
41 |
| -from osbenchmark.synthetic_data_generator import synthetic_data_generator |
| 41 | +from osbenchmark.synthetic_data_generator import synthetic_data_generator_orchestrator |
42 | 42 | from osbenchmark.workload_generator import workload_generator
|
43 | 43 | from osbenchmark.utils import io, convert, process, console, net, opts, versions
|
44 | 44 | from osbenchmark import aggregator
|
@@ -174,7 +174,7 @@ def add_workload_source(subparser):
|
174 | 174 | help="Custom Python module that defines how to generate documents. " +
|
175 | 175 | "It can contain function definitions and even class definitions. " +
|
176 | 176 | "This gives users more granular control over how data is generated. " +
|
177 |
| - "This module must contain generate_fake_document() definition." |
| 177 | + "This module must contain generate_synthetic_document() definition." |
178 | 178 | )
|
179 | 179 |
|
180 | 180 | exclusive_params = synthetic_data_generator_parser.add_mutually_exclusive_group(required=True)
|
@@ -1185,7 +1185,7 @@ def dispatch_sub_command(arg_parser, args, cfg):
|
1185 | 1185 | cfg.add(config.Scope.applicationOverride, "synthetic_data_generator", "total_size", args.total_size)
|
1186 | 1186 | cfg.add(config.Scope.applicationOverride, "synthetic_data_generator", "test_document", args.test_document)
|
1187 | 1187 |
|
1188 |
| - synthetic_data_generator.orchestrate_data_generation(cfg) |
| 1188 | + synthetic_data_generator_orchestrator.orchestrate_data_generation(cfg) |
1189 | 1189 |
|
1190 | 1190 | elif sub_command == "create-workload":
|
1191 | 1191 | cfg.add(config.Scope.applicationOverride, "generator", "indices", args.indices)
|
@@ -1215,13 +1215,13 @@ def dispatch_sub_command(arg_parser, args, cfg):
|
1215 | 1215 | else:
|
1216 | 1216 | msg += "\n%s%s" % ("\t" * nesting, str(e))
|
1217 | 1217 |
|
1218 |
| - console.error("Cannot %s. %s" % (sub_command, msg)) |
| 1218 | + console.error(f"❌ Cannot {sub_command}. {msg}") |
1219 | 1219 | console.println("")
|
1220 | 1220 | print_help_on_errors()
|
1221 | 1221 | return False
|
1222 | 1222 | except BaseException as e:
|
1223 | 1223 | logging.getLogger(__name__).exception("A fatal error occurred while running subcommand [%s].", sub_command)
|
1224 |
| - console.error("Cannot %s. %s." % (sub_command, e)) |
| 1224 | + console.error(f"❌ Cannot {sub_command}. {e}.") |
1225 | 1225 | console.println("")
|
1226 | 1226 | print_help_on_errors()
|
1227 | 1227 | return False
|
@@ -1272,10 +1272,10 @@ def main():
|
1272 | 1272 | end = time.time()
|
1273 | 1273 | if success:
|
1274 | 1274 | console.println("")
|
1275 |
| - console.info("SUCCESS (took %d seconds)" % (end - start), overline="-", underline="-") |
| 1275 | + console.info("✅ SUCCESS (took %d seconds)" % (end - start), overline="-", underline="-") |
1276 | 1276 | else:
|
1277 | 1277 | console.println("")
|
1278 |
| - console.info("FAILURE (took %d seconds)" % (end - start), overline="-", underline="-") |
| 1278 | + console.info("❌ FAILURE (took %d seconds)" % (end - start), overline="-", underline="-") |
1279 | 1279 | sys.exit(64)
|
1280 | 1280 |
|
1281 | 1281 |
|
|
0 commit comments