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-15 07:59:38 +0100 |
commit | 834c4c3b9b0317b81765cb1a9dcab7d7ef2e5c8c (patch) | |
tree | 98fec1743620ce70d8cf3cca0d417c914265a4c5 /tests/artifactcache/push.py | |
parent | 9c9f11bfbcfad94ef8263eb1c41a2cc472965c19 (diff) | |
download | buildstream-juerg/cache-query-job-65.tar.gz |
Call _initialize_state() in Element._new_from_load_element()juerg/cache-query-job-65
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 17ad2e2a7..cd9930ecc 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() |