(analyzer, task)
| 120 | |
| 121 | @Analyzer.register(Task) |
| 122 | def analyze_task(analyzer, task): |
| 123 | # check that our plan protobuf is not too large (limit of 64Mb) |
| 124 | step = task.get_step() |
| 125 | plan = Plan(task.node) |
| 126 | plan.AddStep(step) |
| 127 | proto_len = len(plan.Proto().SerializeToString()) |
| 128 | assert proto_len < 2 ** 26, ( |
| 129 | 'Due to a protobuf limitation, serialized tasks must be smaller ' |
| 130 | 'than 64Mb, but this task has {} bytes.' % proto_len) |
| 131 | |
| 132 | is_private = task.workspace_type() != WorkspaceType.GLOBAL |
| 133 | with analyzer.set_workspace(do_copy=is_private): |
| 134 | analyzer(step) |
| 135 | |
| 136 | |
| 137 | @Analyzer.register(TaskGroup) |
nothing calls this directly
no test coverage detected
searching dependent graphs…