1. 27 May, 2017 6 commits
  2. 25 May, 2017 7 commits
  3. 24 May, 2017 8 commits
    • Sam Thursfield's avatar
      script element: Make 'collect' keyword actually optional · 05c7135c
      Sam Thursfield authored
      Commit ca9a8837 added the 'collect' keyword with the
      intention of it being optional, but it was actually required. We now
      specify a default value so that it can be omitted.
      Also variables are now substituted so that the documented example of
      setting it to %{install-root} actually works.
    • Sam Thursfield's avatar
      element: Give a helpful error if the 'collect' dir doesn't exist · 9de9e5d7
      Sam Thursfield authored
      This can occur with 'script' elements for example where the 'collect'
      directory can be specified by the user.
      Previously putting an invalid directory for the 'collect' field caused
      this output:
          [--:--:--][7ea949f2][initramfs/initramfs-gz.bst         ] START   Caching Artifact
          [00:03:09][7ea949f2][initramfs/initramfs-gz.bst         ] BUG     gnu-toolchain/initramfs-initramfs-gz/7ea949f2-build.4045.log
              An unhandled exception occured:
              Traceback (most recent call last):
                File "/home/shared/src/buildstream/buildstream/_scheduler.py", line 643, in child_action
                  result = self.action(element)
                File "/home/shared/src/buildstream/buildstream/_pipeline.py", line 152, in process
                File "/home/shared/src/buildstream/buildstream/element.py", line 715, in _assemble
                  self.__artifacts.commit(self, collectdir)
                File "/home/shared/src/buildstream/buildstream/_artifactcache.py", line 136, in commit
                  _ostree.commit(self.repo, content, ref)
                File "/home/shared/src/buildstream/buildstream/_ostree.py", line 138, in commit
                  mtree, commit_modifier)
              GLib.GError: g-io-error-quark: openat: No such file or directory (1)
          Build failure on element: initramfs/initramfs-gz.bst
      One now gets a more useful error:
          [00:02:55] FAILURE [initramfs/initramfs-gz.bst]: Build
              Directory '/invalid' was not found inside the sandbox, unable to collect artifact contents
    • Sam Thursfield's avatar
      Note that OSTree v2017.6 or newer is preferred · f3e1aadf
      Sam Thursfield authored
      There is a GPG bug that can cause a 10 second delay when loading
      pipelines, if the pipeline includes a signed OSTree repo and the
      path to the repository is over a certain length.
      OSTree v2017.6 and newer have internal changes that make hitting this
      issue much less likely, so let's make users aware of that.
    • Tristan Van Berkom's avatar
      Added __init__.py to the plugin subdirectories. · 25325b0d
      Tristan Van Berkom authored
      This makes the 'sources' and 'elements' subdirectores modules technically,
      but it does not effect how we load them with pluginbase, that still works.
      Updated documentation machinery to have buildstream/plugins in the PYTHONPATH
      and import the docs as elements.autotools etc.
      This is all because since recent sphinx started importing from distutils,
      this was conflicting with our distutils plugin.
    • Tristan Van Berkom's avatar
      widget.py: Only print the task elements in the output · 01fd7dfc
      Tristan Van Berkom authored
      This could be further enhanced to also print the originating
      element whenever message.task_id != message.unique_id, but for
      now this is better.
    • Tristan Van Berkom's avatar
    • Tristan Van Berkom's avatar
      _message.py: Added task_id parameter · ae08f92b
      Tristan Van Berkom authored
      To differentiate between the element and the task, some messages come
      from an element that is not the primary element of the task (i.e.
      when running integration commands on behalf of another element)
    • Tristan Van Berkom's avatar
      script element: interim hacks · ca9a8837
      Tristan Van Berkom authored
      We will soon be refactoring this element to be more widely useful, in
      the meantime I needed the following changes:
        o Make staging of the input element optional
        o Dont mount the root read-only
        o Allow configuration of where to collect the output artifact
      This was needed for a straight forward use case where the user
      wants to
        A.) Stage something in the root
        B.) Modify that sysroot by running some commands
        C.) Collect the entire resulting sysroot as an artifact
      In this case, I needed to be able to run `dpkg --configure -a`
      in a sysroot and collect the result.
  4. 22 May, 2017 2 commits
  5. 21 May, 2017 5 commits
  6. 20 May, 2017 5 commits
  7. 19 May, 2017 2 commits
  8. 16 May, 2017 1 commit
    • Tristan Van Berkom's avatar
      main.py: Added option to view log in failure mode · ff255c8e
      Tristan Van Berkom authored
      Instead of needing to go and open the log yourself (which you can
      still do with your favorite editor), now the build failure prompt
      gives you a choice to view the full log with the system pager in
      the terminal (which is usually less).
  9. 15 May, 2017 3 commits
  10. 14 May, 2017 1 commit
    • Tristan Van Berkom's avatar
      Added/fixed tar source tests. · b3b38df6
      Tristan Van Berkom authored
      Fixed original staging test to expect the content of the first
      encountered subdirectory to be extracted/staged.
      Added additional test to override the base-dir configuration
      with an empty string and instead extract the root of the tarball