File: blhc.rst

package info (click to toggle)
debusine 0.14.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,200 kB
  • sloc: python: 195,951; sh: 849; javascript: 335; makefile: 116
file content (36 lines) | stat: -rw-r--r-- 1,191 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.. task:: Blhc

Blhc task
---------

A task to represent a build log check using the ``blhc`` utility.

The ``task_data`` associated to this task can contain the following keys:

* ``input`` (required): a dictionary describing the input data

  * ``artifact`` (:ref:`lookup-single`, required): a
    :artifact:`debian:package-build-log` artifact corresponding to the build
    log to be checked. The file should have a ``.build`` suffix.

* ``extra_flags`` (optional): a list of flags to be passed to the blhc
  command, such as ``--bindnow`` or ``--pie``. If an unsupported flag is
  passed then the request will fail.

* ``environment`` (:ref:`lookup-single` with default category
  :collection:`debian:environments`, required): artifact that will be used
  to run ``blhc`` (it will be installed if necessary).

* ``build_architecture`` (required): the architecture that we want to run
  ``blhc``.

The ``blhc`` output will be provided as a new :artifact:`debian:blhc`
artifact.

The task returns success if ```blhc``` returns an exit code of 0 or 1, and
failure otherwise.

The task computes dynamic metadata as:

.. dynamic_data::
  :method: debusine.tasks.blhc::Blhc.build_dynamic_data