apache / apache/buildstream

`bst build` appears to build same module twice

Open
#1,474 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
140
Forks
45
Avg merge
1d 3h
Merged PRs (30d)
6

Description

I noticed bst 1.6.1 is building webkitgtk.bst twice at the same time:

![Screenshot from 2021-05-03 16-18-29](https://user-images.githubusercontent.com/1424966/116935536-1709f880-ac2c-11eb-821a-b48ac16ceb9e.png)

That's twice the WebKit I had bargained for! I'm not certain, but I think it is not just a visual error: I think it really is building WebKit twice at once, because I see two separate chains of bst processes in gnome-control-center, each working on webkitgtk:

![Screenshot from 2021-05-03 16-21-03](https://user-images.githubusercontent.com/1424966/116935559-1ec99d00-ac2c-11eb-9468-4e6482b0e9b2.png)

![Screenshot from 2021-05-03 16-21-07](https://user-images.githubusercontent.com/1424966/116935565-1f623380-ac2c-11eb-9ab1-65b5f63774ad.png)

I attached two screenshots of that to show the tooltips for the two different bwrap processes that you can see are both working on webkitgtk.bst. Another clue that it's really doing a second build: my desktop was thrashing, which doesn't normally happen when building WebKitGTK via buildstream.

This is, sadly, not reproducible at all. After killing buildstream with Ctrl+C and restarting the build, it works fine, building webkitgtk.bst only once.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the `bst build` entry point and the process scheduling behavior described in the issue. Try to reproduce the simultaneous `webkitgtk.bst` builds using the reported screenshots and process observations; done means confirming and preventing duplicate builds, with a regression test if the relevant test location can be identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.