Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit ec44fda

Browse files
author
Matthew J. Bryan
committed
Remove most PORT/WRAP markers to clean up a bit.
1 parent 70c58b7 commit ec44fda

File tree

2 files changed

+1
-41
lines changed

2 files changed

+1
-41
lines changed

combtest/runner.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ class WalkExecutorService(worker.CoordinatorService):
142142
The user should probably not be calling into this directly. They
143143
should be starting it up via rpyc.
144144
"""
145-
# TODO: PORT/WRAP
146145
#: Override the type of ``WalkRunner`` used, here or in a child class
147146
WALK_RUNNER_TYPE = WalkRunner
148147
#: Override the type of ``ThreadPool`` used for executing ``Walks``, here
@@ -429,7 +428,6 @@ def _set_supplemental_state(self, walk_id, **kwargs):
429428
self._state_supplement[walk_id].update(**kwargs)
430429

431430
def _get_walks_state(self, walk_id, branch_id, state):
432-
# PORT/WRAP
433431
if walk_id not in self._walk_states:
434432
supplement = {'walk_id': walk_id,
435433
'branch_id': branch_id,
@@ -461,7 +459,6 @@ def get_full_states(self, full=False):
461459
return states_out
462460

463461
def update_walks_state(self, walk_id, state_update):
464-
# PORT/WRAP
465462
try:
466463
self._walk_states[walk_id].update(state_update)
467464
except AttributeError:
@@ -823,7 +820,6 @@ def provide_logs(self, log_dir):
823820
logs[ip] = client_logs
824821
return logs
825822

826-
# TODO: PORT/WRAP
827823
def run_tests(walk_order,
828824
state=None,
829825
verbose=1,
@@ -835,8 +831,6 @@ def run_tests(walk_order,
835831
max_thread_count=None,
836832
gather_states=False,
837833
log_dir=None,
838-
# PORT/WRAP test_path=utils.DEFAULT_TEST_PATH,
839-
#**file_config_kwargs,
840834
):
841835
"""
842836
Run a collection of :class:`combtest.walk.Walk`. This should be the main
@@ -906,15 +900,7 @@ def run_tests(walk_order,
906900
central_logger.set_level(central_logger.DEBUG)
907901

908902

909-
# PORT/WRAP
910-
#if log_dir is None:
911-
# log_dir = ac_config.get_log_dir()
912-
# if log_dir is None or log_dir == ".":
913-
# log_dir = "/var/crash"
914-
#log_dir = os.path.join(log_dir, SUBDIR_NAME)
915-
916903
my_ip = utils.get_my_IP()
917-
#rtt.remote_cmd(my_ip, 'isi_for_array "mkdir -p %s"' % log_dir)
918904

919905
if log_dir is not None:
920906
central_logger.log_status("Log files will be at: %s", log_dir)
@@ -943,12 +929,10 @@ def run_tests(walk_order,
943929
service_handler_class=service_handler_class
944930
)
945931

946-
# PORT/WRAP: pass test_path
947932
remote_log_locations = sg.start_remote_logging(my_ip,
948933
logger_port,
949934
log_dir,
950935
verbose=verbose)
951-
# test_path, verbose=verbose)
952936

953937
master_location = ""
954938

@@ -971,18 +955,6 @@ def run_tests(walk_order,
971955
logger.info("Scattering work")
972956
start_time = time.time()
973957

974-
# PORT/WRAP
975-
#ctx = {}
976-
#if file_config_kwargs:
977-
# ctx['runner_opts'] = copy.copy(file_config_kwargs)
978-
#if verbose:
979-
# ctx['verbose'] = True
980-
981-
#ctx['test_path'] = test_path
982-
#ctx['log_dir'] = log_dir
983-
984-
# central_logger.log_status("Test path: %s", test_path)
985-
986958
master_worker_ids = {}
987959
for epoch_list in wo:
988960
logger.info("Epoch list has %d epochs",
@@ -991,13 +963,6 @@ def run_tests(walk_order,
991963
state_copy = copy.copy(state)
992964
if epoch.serial_action is not None:
993965
for branch_id in epoch.branch_ids:
994-
# PORT/WRAP
995-
#sp_ctx = {"base_dir": test_path,
996-
# "branch_id": branch_id,
997-
# "service": sg,
998-
# "worker_ids": master_worker_ids,
999-
# "epoch": epoch
1000-
# }
1001966
state_copy = epoch.serial_action(state=state_copy,
1002967
branch_id=branch_id,
1003968
epoch=epoch,
@@ -1068,7 +1033,6 @@ def run_tests(walk_order,
10681033
master_log, failed_tests)
10691034

10701035

1071-
# TODO: PORT/WRAP
10721036
def replay_walk(walk_to_run, step=False, log_errors=True, state=None):
10731037
"""
10741038
Run a single :class:`combtest.walk.Walk`
@@ -1087,8 +1051,6 @@ def replay_walk(walk_to_run, step=False, log_errors=True, state=None):
10871051
print(str(type(op)))
10881052
raw_input("Press key to continue...")
10891053

1090-
# PORT/WRAP if verify:
1091-
# PORT/WRAP test_file.verify_nonsparse_logical_all()
10921054
except CancelWalk as e:
10931055
return True
10941056
except Exception as e:

combtest/walk.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def execute(self, state, log_errors=True):
9393
# Likewise here: let the user decide to log or not in their layer
9494
return True
9595
except Exception as e:
96-
# PORT/WRAP: no state specifics here.
9796
msg_state = "Walk was: %s\nstate: %s" % (repr(self),
9897
encode.encode(state))
9998
exc = type(e)(str(e) + "\n" + msg_state)
@@ -582,7 +581,7 @@ def _expand_temp_frontier(self, epochs, frontier):
582581
Args:
583582
frontier - an iterable of Segment
584583
"""
585-
# TODO
584+
# We could do something more advanced here...
586585
return epochs, frontier
587586

588587
def next(self):
@@ -681,7 +680,6 @@ def next(inner_self):
681680

682681
return json_iter()
683682

684-
# TODO PORT/WRAP: add back path, lin, file_config
685683
class WalkOpTracer(central_logger.OpTracer):
686684
"""
687685
Traces a :class:`Walk` portion + its adjacent :class:`SerialAction` and

0 commit comments

Comments
 (0)