Skip to content

Commit

Permalink
Enable Acto to utilize examples when generating test values
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Oct 8, 2024
1 parent 72f131a commit 4fa21e1
Show file tree
Hide file tree
Showing 21 changed files with 629 additions and 734 deletions.
5 changes: 2 additions & 3 deletions acto/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
if "monkey_patch" in config:
del config["monkey_patch"]
config = OperatorConfig.model_validate(config)

logger.info("Acto started with [%s]", sys.argv)
logger.info("Operator config: %s", config)

Expand All @@ -137,7 +138,6 @@
workdir_path=args.workdir_path,
operator_config=config,
cluster_runtime="KIND",
preload_images_=None,
context_file=context_cache,
helper_crd=args.helper_crd,
num_workers=args.num_workers,
Expand All @@ -147,13 +147,12 @@
is_reproduce=False,
input_model=DeterministicInputModel,
apply_testcase_f=apply_testcase_f,
delta_from=None,
focus_fields=config.focus_fields,
)
generation_time = datetime.now()
logger.info("Acto initialization finished in %s", generation_time - start_time)
if not args.learn:
acto.run(modes=["normal"])
acto.run()
normal_finish_time = datetime.now()
logger.info("Acto normal run finished in %s", normal_finish_time - start_time)
logger.info("Start post processing steps")
Expand Down
Loading

0 comments on commit 4fa21e1

Please sign in to comment.