Copr messaging API¶
-
class
copr_messaging.schema.
BuildChrootStarted
(*args, **kwargs)[source]¶ Representation of a message sent by Copr build system right before some Copr worker starts working on a build in a particular mock chroot.
-
build_id
¶ Copr Build ID.
Note that one copr build (identified by this ID) generates several build messages (namely for each
chroot
, before build started and after the build finished).
-
chroot
¶ Build chroot name this build is done in. For example
fedora-rawhide-x86_64
orepel-7-x86_64
.When this is source build, the returned value is
srpm-builds
. Each build (seebuild_id
) in copr needs to prepare sources first (those are imported into copr dist-git) for the following binary-RPM builds; so such source build might represent some SCM method execution, or e.g. just act of downloading SRPM from a remote URL.
-
project_full_name
¶ Project owner name + project name, separated by slash.
-
project_name
¶ Name of the copr project. Note that several owners may host project of the same name at the same time.
-
project_owner
¶ Owner name of the Copr project. It may be either
@groupname
orusername
(leading at sign indicates group).
-
-
class
copr_messaging.schema.
BuildChrootEnded
(*args, **kwargs)[source]¶ Representation of a message sent by Copr build system right after some Copr worker finished a build in a particular mock chroot.
-
build_id
¶ Copr Build ID.
Note that one copr build (identified by this ID) generates several build messages (namely for each
chroot
, before build started and after the build finished).
-
chroot
¶ Build chroot name this build is done in. For example
fedora-rawhide-x86_64
orepel-7-x86_64
.When this is source build, the returned value is
srpm-builds
. Each build (seebuild_id
) in copr needs to prepare sources first (those are imported into copr dist-git) for the following binary-RPM builds; so such source build might represent some SCM method execution, or e.g. just act of downloading SRPM from a remote URL.
-
project_full_name
¶ Project owner name + project name, separated by slash.
-
project_name
¶ Name of the copr project. Note that several owners may host project of the same name at the same time.
-
project_owner
¶ Owner name of the Copr project. It may be either
@groupname
orusername
(leading at sign indicates group).
-
status
¶ string representation of build status, e.g.
succeeded
,failed
-
[1] | (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) Note that this information may not be known if
the message is triggered by source build (see method chroot() for
more info) – in such case this attribute returns None. |