ambitious-actor-36781
06/09/2022, 12:48 AMGoal
class have a mechanism for generating a union subclass
e.g.
class RunAThingPreTest(Test.PreGoal):
...
def rules():
return [UnionRule(Test.PreGoal, RunAThingPreTest)]
Then something (where?) could do something like
pre_goal_results = await MultiGet(
Get(PreGoalResult, PreGoal, klass(goal_subsystem)
for klass in UnionMembership[PreGoal]
)
try:
await do_the_goal()
finally:
post_goal_results = await MultiGet(
Get(PostGoalResult, PostGoal, klass(goal_subsystem, pre_results)
for (klass, pre_result) in zip(UnionMembership[PostGoal], pre_goal_results
)
How far on/off target am I?
for background, some of our tests need to run against code running a PaaS system, so we need to upload the dependencies of the tests that we're running before running the tests.curved-television-6568
06/09/2022, 5:37 AMcurved-television-6568
06/09/2022, 5:37 AMambitious-actor-36781
06/09/2022, 6:12 AMcurved-television-6568
06/09/2022, 6:55 AMambitious-actor-36781
06/09/2022, 6:55 AMcurved-television-6568
06/09/2022, 7:15 AM