summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-01-15 11:38:40 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-03-16 10:02:27 +0000
commit91b1c90a4409d70552625e6d67751cbf7cf0653b (patch)
tree70cfa55dd074fc2aef5e41f03b4ccc13623f2475
parentcfb03bcd39fdfa089004f1fc04f1625083cfef45 (diff)
downloadbuildstream-91b1c90a4409d70552625e6d67751cbf7cf0653b.tar.gz
Don't update state before summary. It should be consistent
Since we know when an object's state can change, we don't need to update the state of all objects for consistency.
-rw-r--r--buildstream/_stream.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/buildstream/_stream.py b/buildstream/_stream.py
index 4a21f5002..32efc6271 100644
--- a/buildstream/_stream.py
+++ b/buildstream/_stream.py
@@ -32,7 +32,7 @@ from contextlib import contextmanager, suppress
from fnmatch import fnmatch
from ._artifactelement import verify_artifact_ref
-from ._exceptions import StreamError, ImplError, BstError, ArtifactElementError, CASCacheError, set_last_task_error
+from ._exceptions import StreamError, ImplError, BstError, ArtifactElementError, CASCacheError
from ._message import Message, MessageType
from ._scheduler import Scheduler, SchedStatus, TrackQueue, FetchQueue, BuildQueue, PullQueue, PushQueue
from ._pipeline import Pipeline, PipelineSelection
@@ -1172,17 +1172,6 @@ class Stream():
_, status = self._scheduler.run(self.queues)
- # Force update element states after a run, such that the summary
- # is more coherent
- try:
- for element in self.total_elements:
- element._update_state()
- except BstError as e:
- self._message(MessageType.ERROR, "Error resolving final state", detail=str(e))
- set_last_task_error(e.domain, e.reason)
- except Exception as e: # pylint: disable=broad-except
- self._message(MessageType.BUG, "Unhandled exception while resolving final state", detail=str(e))
-
if status == SchedStatus.ERROR:
raise StreamError()
elif status == SchedStatus.TERMINATED: