Heading get's printed multiple times during the load
Currently when running any buildstream session with junctions (i.e. most real sessions), we get the heading printed multiple times at startup.
Note that the information is quite bogus, one might expect that we are printing a project specific heading for each project and just annoyingly including a lot of redundant information in there, but we are not, as we can see Project: foo (/full/path)
is printed twice, indicating that we are in fact printing the same toplevel project heading once for each project that gets loaded during the load process.
Here is a random sample taken from tests/format/junctions.py::test_build_tar_cross_junction_names
:
tests/format/junctions.py::test_build_tar_cross_junction_names BuildStream exited with code 0 for invocation:
bst --no-colors --config /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/cache/buildstream.conf --directory /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/use-repo build base.bst:target.bst
Program stderr was:
[--:--:--][ ][ main:core activity ] START Build
[--:--:--][ ][ main:core activity ] START Loading elements
BuildStream Version 1.93.4+80.g73b928e92
Session Start: Tuesday, 21-07-2020 at 18:32:18
Project: foo (/codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/use-repo)
Targets:
User Configuration
Configuration File: /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/cache/buildstream.conf
Cache Directory: /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/cache
Log Files: /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/cache/logs
Source Mirrors: /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/cache/sources
Build Area: /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/cache/build
Strict Build Plan: Yes
Maximum Fetch Tasks: 10
Maximum Build Tasks: 4
Maximum Push Tasks: 4
Maximum Network Retries: 2
Loaded Plugins
Element Plugins
- junction
Source Plugins
- tar
Pipeline
===============================================================================
Coverage.py warning: No data was collected. (no-data-collected)
[00:00:00][ ][ main:core activity ] SUCCESS Loading elements
1 subtasks processed
[--:--:--][ ][ main:core activity ] START Resolving elements
[00:00:00][ ][ main:core activity ] SUCCESS Resolving elements
1 of 1 subtasks processed
[--:--:--][ ][ main:core activity ] START Resolving cached state
[00:00:00][ ][ main:core activity ] SUCCESS Resolving cached state
1 of 1 subtasks processed
[--:--:--][ ][ main:core activity ] START Checking sources
[00:00:00][ ][ main:core activity ] SUCCESS Checking sources
BuildStream Version 1.93.4+80.g73b928e92
Session Start: Tuesday, 21-07-2020 at 18:32:18
Project: foo (/codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/use-repo)
Targets: target.bst
User Configuration
Configuration File: /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/cache/buildstream.conf
Cache Directory: /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/cache
Log Files: /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/cache/logs
Source Mirrors: /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/cache/sources
Build Area: /codethink/GNOME/buildstream/.tox/py37/tmp/test_build_tar_cross_junction_0/cache/build
Strict Build Plan: Yes
Maximum Fetch Tasks: 10
Maximum Build Tasks: 4
Maximum Push Tasks: 4
Maximum Network Retries: 2
Loaded Plugins
Element Plugins
- junction
Source Plugins
- tar
Pipeline
buildable 92ed62ecf3c09d900a44b13efea05f5597e9e3448cc51bc97314beedce3a02cc base.bst:target.bst
===============================================================================
Coverage.py warning: No data was collected. (no-data-collected)
Coverage.py warning: No data was collected. (no-data-collected)
[--:--:--][92ed62ec][ fetch:base.bst:target.bst ] START base/target/92ed62ec-fetch.23227.log
[00:00:00][92ed62ec][ fetch:base.bst:target.bst ] SUCCESS base/target/92ed62ec-fetch.23227.log
[--:--:--][92ed62ec][ build:base.bst:target.bst ] START base/target/92ed62ec-build.23233.log
[--:--:--][92ed62ec][ build:base.bst:target.bst ] START Staging sources
[00:00:00][92ed62ec][ build:base.bst:target.bst ] SUCCESS Staging sources
[--:--:--][92ed62ec][ build:base.bst:target.bst ] START Caching artifact
[00:00:00][92ed62ec][ build:base.bst:target.bst ] SUCCESS Caching artifact
[00:00:00][92ed62ec][ build:base.bst:target.bst ] SUCCESS base/target/92ed62ec-build.23233.log
[00:00:00][ ][ main:core activity ] SUCCESS Build
Pipeline Summary
Total: 1
Session: 1
Fetch Queue: processed 1, skipped 0, failed 0
Build Queue: processed 1, skipped 0, failed 0