use of com.google.devtools.build.lib.events.Reporter in project bazel by bazelbuild.
the class ParallelEvaluatorTest method makeEvaluator.
private ParallelEvaluator makeEvaluator(ProcessableGraph graph, ImmutableMap<SkyFunctionName, ? extends SkyFunction> builders, boolean keepGoing, EventFilter storedEventFilter) {
Version oldGraphVersion = graphVersion;
graphVersion = graphVersion.next();
return new ParallelEvaluator(graph, oldGraphVersion, builders, new Reporter(new EventBus(), eventCollector), new MemoizingEvaluator.EmittedEventState(), storedEventFilter, keepGoing, 150, revalidationReceiver);
}
use of com.google.devtools.build.lib.events.Reporter in project bazel by bazelbuild.
the class EagerInvalidatorTest method eval.
protected <T extends SkyValue> EvaluationResult<T> eval(boolean keepGoing, SkyKey... keys) throws InterruptedException {
Reporter reporter = new Reporter(new EventBus());
ParallelEvaluator evaluator = new ParallelEvaluator(graph, graphVersion, tester.getSkyFunctionMap(), reporter, new MemoizingEvaluator.EmittedEventState(), InMemoryMemoizingEvaluator.DEFAULT_STORED_EVENT_FILTER, keepGoing, 200, new DirtyTrackingProgressReceiver(null));
graphVersion = graphVersion.next();
return evaluator.eval(ImmutableList.copyOf(keys));
}
Aggregations