Commits on Source (20)
-
Tristan Van Berkom authored
Commit 3fa79d8d, part of an initiative for caching of the failed builds, introduced a call to Element._update_state() after a job completes and before entering the error handling harness intended for handling plugin raised errors. Element._update_state() can result in triggering plugin code to run, so this is incorrect, and causes raised errors to crash BuildStream if they happen here. After analyzing the code, it appears that this additional call to Element._update_state() is unneeded, and was only added because the state needs to be updated for a failure as well as a success. Instead, we now have the BuildQueue call Element._assemble_done() unconditionally, regardless of whether the build was successful or not, which has the same effect and also reads better. In addition, added a FIXME comment that we are still conditionally updating the artifact cache size from BuildQueue.done() only if the build is successful, which is incorrect because failed builds also increase the local artifact cache size - to fix this we need to communicate the added artifact size through Element._assemble() regardless of whether the build succeeded or failed.
-
Tristan Van Berkom authored
_scheduler/queues/queue.py: Don't call update state outside of error handling harness See merge request !988
-
Valentin David authored
Instead of tag information being fetched which can change with time, they are tracked and saved in the projects.refs/.bst. Then we re-tag automatically the closest tag so that `git describe` works and is reproducible. This new feature is opt-in with the new `track-tags` configuration, and must be used to fix modules which are broken by our new policy of omitting the `.git/` repository when staging git sources. This fixes issue #487
-
Valentin David authored
-
Tristan Van Berkom authored
Track of git tags and save them to reproduce minimum shallow repository Closes #487 See merge request !906
-
Raoul Hidalgo Charman authored
-
Raoul Hidalgo Charman authored
In element, platform asks for host os and architecture to default to when SandboxConfig is initialised. This changes element cache keys so those have been updated in the tests.
-
Raoul Hidalgo Charman authored
Also update tests to be consistent with this
-
Raoul Hidalgo Charman authored
These are contained within the platform field.
-
Raoul Hidalgo Charman authored
-
Raoul Hidalgo Charman authored
Same format as OptionArch tests, but with OS's.
-
Raoul Hidalgo Charman authored
-
Raoul Hidalgo Charman authored
o _platform/linux.py: Add linux32 flag to send to sandbox bwrap when the build arch is x86-32 and the machines arch is x86-64 or similarly with aarch32 and aarch64. o sandbox/_sandboxbwrap.py: Use flag passed to start bwrap command with linux32 if set.
-
Raoul Hidalgo Charman authored
-
Raoul Hidalgo Charman authored
-
Raoul Hidalgo Charman authored
-
Jürg Billeter authored
Execution environment reqs Closes #775 See merge request !969
-
Phillip Smyth authored
Created a script to return all elements in a project
-
Phillip Smyth authored
Created script to build all elements in a project
-
Phillip Smyth authored
Created a script to show/validate all elements in a project
Showing
- NEWS 4 additions, 0 deletionsNEWS
- buildstream/_options/optionarch.py 2 additions, 3 deletionsbuildstream/_options/optionarch.py
- buildstream/_options/optionos.py 41 additions, 0 deletionsbuildstream/_options/optionos.py
- buildstream/_options/optionpool.py 2 additions, 0 deletionsbuildstream/_options/optionpool.py
- buildstream/_platform/linux.py 30 additions, 3 deletionsbuildstream/_platform/linux.py
- buildstream/_platform/platform.py 38 additions, 0 deletionsbuildstream/_platform/platform.py
- buildstream/_platform/unix.py 10 additions, 1 deletionbuildstream/_platform/unix.py
- buildstream/_scheduler/queues/buildqueue.py 11 additions, 5 deletionsbuildstream/_scheduler/queues/buildqueue.py
- buildstream/_scheduler/queues/queue.py 0 additions, 1 deletionbuildstream/_scheduler/queues/queue.py
- buildstream/_versions.py 1 addition, 1 deletionbuildstream/_versions.py
- buildstream/element.py 11 additions, 3 deletionsbuildstream/element.py
- buildstream/plugins/sources/git.py 203 additions, 13 deletionsbuildstream/plugins/sources/git.py
- buildstream/sandbox/_config.py 5 additions, 5 deletionsbuildstream/sandbox/_config.py
- buildstream/sandbox/_sandboxbwrap.py 8 additions, 1 deletionbuildstream/sandbox/_sandboxbwrap.py
- buildstream/sandbox/_sandboxremote.py 8 additions, 1 deletionbuildstream/sandbox/_sandboxremote.py
- contrib/bstBuildAllElements.py 32 additions, 0 deletionscontrib/bstBuildAllElements.py
- contrib/bstGetAllElements.py 56 additions, 0 deletionscontrib/bstGetAllElements.py
- contrib/bstShowAllElements.py 32 additions, 0 deletionscontrib/bstShowAllElements.py
- doc/examples/flatpak-autotools/elements/base/sdk.bst 2 additions, 2 deletionsdoc/examples/flatpak-autotools/elements/base/sdk.bst
- doc/examples/flatpak-autotools/project.conf 2 additions, 2 deletionsdoc/examples/flatpak-autotools/project.conf
buildstream/_options/optionos.py
0 → 100644
contrib/bstBuildAllElements.py
0 → 100755
contrib/bstGetAllElements.py
0 → 100755
contrib/bstShowAllElements.py
0 → 100755