Javier Jardón pushed to branch master at BuildStream / buildstream
Commits:
-
1ee4a4ba
by Abderrahim Kitouni at 2019-02-08T16:42:23Z
-
24c0de16
by Abderrahim Kitouni at 2019-02-08T16:42:23Z
-
a937f99a
by Javier Jardón at 2019-02-08T20:29:05Z
2 changed files:
Changes:
... | ... | @@ -467,7 +467,7 @@ class ArtifactCache(): |
467 | 467 |
# on_failure (callable): Called if we fail to contact one of the caches.
|
468 | 468 |
#
|
469 | 469 |
def initialize_remotes(self, *, on_failure=None):
|
470 |
- remote_specs = self.global_remote_specs
|
|
470 |
+ remote_specs = list(self.global_remote_specs)
|
|
471 | 471 |
|
472 | 472 |
for project in self.project_remote_specs:
|
473 | 473 |
remote_specs += self.project_remote_specs[project]
|
... | ... | @@ -1046,8 +1046,5 @@ class ArtifactCache(): |
1046 | 1046 |
# A list of ArtifactCacheSpec instances describing the remote artifact caches.
|
1047 | 1047 |
#
|
1048 | 1048 |
def _configured_remote_artifact_cache_specs(context, project):
|
1049 |
- project_overrides = context.get_overrides(project.name)
|
|
1050 |
- project_extra_specs = ArtifactCache.specs_from_config_node(project_overrides)
|
|
1051 |
- |
|
1052 | 1049 |
return list(utils._deduplicate(
|
1053 |
- project_extra_specs + project.artifact_cache_specs + context.artifact_cache_specs))
|
|
1050 |
+ project.artifact_cache_specs + context.artifact_cache_specs))
|
... | ... | @@ -549,7 +549,15 @@ class Project(): |
549 | 549 |
#
|
550 | 550 |
|
551 | 551 |
# Load artifacts pull/push configuration for this project
|
552 |
- self.artifact_cache_specs = ArtifactCache.specs_from_config_node(config, self.directory)
|
|
552 |
+ project_specs = ArtifactCache.specs_from_config_node(config, self.directory)
|
|
553 |
+ override_specs = ArtifactCache.specs_from_config_node(
|
|
554 |
+ self._context.get_overrides(self.name), self.directory)
|
|
555 |
+ |
|
556 |
+ self.artifact_cache_specs = override_specs + project_specs
|
|
557 |
+ |
|
558 |
+ if self.junction:
|
|
559 |
+ parent = self.junction._get_project()
|
|
560 |
+ self.artifact_cache_specs = parent.artifact_cache_specs + self.artifact_cache_specs
|
|
553 | 561 |
|
554 | 562 |
# Load remote-execution configuration for this project
|
555 | 563 |
project_specs = SandboxRemote.specs_from_config_node(config, self.directory)
|