Skip to content

Comments

Begin adding support for shared resources in multi-slot test stations#8

Merged
jonny12375 merged 13 commits intohalter-modsfrom
feat/add-support-for-multi-slot-station
Apr 9, 2025
Merged

Begin adding support for shared resources in multi-slot test stations#8
jonny12375 merged 13 commits intohalter-modsfrom
feat/add-support-for-multi-slot-station

Conversation

@thealastair
Copy link

Allow PlugManager to be explicitly created and provided to the test, thereby also allowing explicit plug construction which allows for complex construction.

@thealastair
Copy link
Author

@jonny12375 jonny12375 changed the base branch from master to halter-mods January 10, 2025 00:34
thealastair and others added 7 commits February 12, 2025 11:39
Allow PlugManager to be explicitly created and provided to the test,
thereby also allowing explicit plug construction which allows for
complex construction.
The swapping out of the loggers is not threadsafe.
@jonny12375 jonny12375 force-pushed the feat/add-support-for-multi-slot-station branch from eb58fc7 to fc07e53 Compare March 28, 2025 01:06
return _ExecutorReturn.CONTINUE

outcome = self.phase_executor.evaluate_checkpoint(checkpoint, subtest_rec)
def _execute_children(self, child_runner: phase_child_runner.ChildRunnerPhase,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1000 points for function name

'diagnosers': [],
'diagnoses': [],
'log_records': [],
'test_uid': 'testing-123',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug code? or guaranteed to be overwritten?

Comment on lines 413 to 417
while any([not t.state.is_finalized if t.state is not None else False for t in tests]):
time.sleep(0.1)

for thread in execution_threads:
thread.join()
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wh

Suggested change
while any([not t.state.is_finalized if t.state is not None else False for t in tests]):
time.sleep(0.1)
for thread in execution_threads:
thread.join()
for thread in execution_threads:
thread.join()

diagnoses = attr.ib(type=List['diagnoses_lib.Diagnosis'], factory=list)
log_records = attr.ib(type=List[logs.LogRecord], factory=list)
marginal = attr.ib(type=Optional[bool], default=None)
test_uid = attr.ib(type=Optional[Text], default=None)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this optional? Feels fairly non-optional?

run_phases_with_profiling: bool):
run_phases_with_profiling: bool,
plug_manager: Optional[PlugManager] = None):
super(TestExecutor, self).__init__(name='TestExecutorThread')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would there be any value in adding the "slot id" in so that it can be in the thread name? Maybe only useful for debug?

@jonny12375 jonny12375 force-pushed the feat/add-support-for-multi-slot-station branch from dd1cedb to f702d6c Compare April 6, 2025 22:03
@jonny12375 jonny12375 merged commit a2de8e9 into halter-mods Apr 9, 2025
5 of 17 checks passed
@jonny12375 jonny12375 deleted the feat/add-support-for-multi-slot-station branch April 9, 2025 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants