Search in sources :

Example 16 with Reporter

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);
}
Also used : Reporter(com.google.devtools.build.lib.events.Reporter) EventBus(com.google.common.eventbus.EventBus)

Example 17 with Reporter

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));
}
Also used : Reporter(com.google.devtools.build.lib.events.Reporter) EventBus(com.google.common.eventbus.EventBus)

Aggregations

Reporter (com.google.devtools.build.lib.events.Reporter)17 EventBus (com.google.common.eventbus.EventBus)15 Test (org.junit.Test)8 Path (com.google.devtools.build.lib.vfs.Path)7 HashMap (java.util.HashMap)6 BuildLangTypedAttributeValuesMap (com.google.devtools.build.lib.packages.RuleFactory.BuildLangTypedAttributeValuesMap)5 Event (com.google.devtools.build.lib.events.Event)3 EventHandler (com.google.devtools.build.lib.events.EventHandler)3 SkyKey (com.google.devtools.build.skyframe.SkyKey)3 SkyValue (com.google.devtools.build.skyframe.SkyValue)3 EventCollector (com.google.devtools.build.lib.events.EventCollector)2 StoredEventHandler (com.google.devtools.build.lib.events.StoredEventHandler)2 ArrayList (java.util.ArrayList)2 Supplier (com.google.common.base.Supplier)1 ImmutableMap (com.google.common.collect.ImmutableMap)1 ImmutableSet (com.google.common.collect.ImmutableSet)1 Range (com.google.common.collect.Range)1 ActionCacheChecker (com.google.devtools.build.lib.actions.ActionCacheChecker)1 ActionExecutionStatusReporter (com.google.devtools.build.lib.actions.ActionExecutionStatusReporter)1 ActionInputFileCache (com.google.devtools.build.lib.actions.ActionInputFileCache)1