diff options
author | Jürg Billeter <j@bitron.ch> | 2020-10-08 17:09:00 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-12-14 10:42:59 +0100 |
commit | 6b4baf81ad123d68f21560a13cbecb546155314f (patch) | |
tree | 29edfbf2a2098f839bde92b7d946f7eaa2e7aa7d /tests/artifactcache/push.py | |
parent | 592c04e44fb73151f5273f7125aaf7e0b60b925d (diff) | |
download | buildstream-6b4baf81ad123d68f21560a13cbecb546155314f.tar.gz |
Call _initialize_state() in Element._new_from_load_element()juerg/cache-query-job
With the cache queries moved to job threads, `_initialize_state()` is
fairly lightweight and can be called earlier.
Diffstat (limited to 'tests/artifactcache/push.py')
-rw-r--r-- | tests/artifactcache/push.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py index 0bcf20502..0be2e4933 100644 --- a/tests/artifactcache/push.py +++ b/tests/artifactcache/push.py @@ -6,7 +6,6 @@ import os import pytest from buildstream import _yaml -from buildstream.types import _Scope from buildstream._project import Project from buildstream._protos.build.bazel.remote.execution.v2 import remote_execution_pb2 from buildstream.testing import cli # pylint: disable=unused-import @@ -33,12 +32,6 @@ def _push(cli, cache_dir, project_dir, config_file, target): # Create a local artifact cache handle artifactcache = context.artifactcache - # Ensure the element's artifact memeber is initialised - # This is duplicated from Pipeline.resolve_elements() - # as this test does not use the cli frontend. - for e in element._dependencies(_Scope.ALL): - e._initialize_state() - # Manually setup the CAS remotes artifactcache.setup_remotes(use_config=True) artifactcache.initialize_remotes() |