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.

property 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).

property chroot

Build chroot name this build is done in. For example fedora-rawhide-x86_64 or epel-7-x86_64.

When this is source build, the returned value is srpm-builds. Each build (see build_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.

property package_epoch

Epoch of the package [1]. Returns None if epoch is unset.

property package_full_name

Full - human readable - package name (not meant to be parsed). [1].

property package_name

Name of the package this message is related to [1].

property package_release

Release of the package [1]. Returns None if epoch is unset.

property package_version

Version of the package [1]. Returns None if epoch is unset.

property project_full_name

Project owner name + project name, separated by slash.

property project_name

Name of the copr project. Note that several owners may host project of the same name at the same time.

property project_owner

Owner name of the Copr project. It may be either @groupname or username (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.

property 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).

property chroot

Build chroot name this build is done in. For example fedora-rawhide-x86_64 or epel-7-x86_64.

When this is source build, the returned value is srpm-builds. Each build (see build_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.

property package_epoch

Epoch of the package [1]. Returns None if epoch is unset.

property package_full_name

Full - human readable - package name (not meant to be parsed). [1].

property package_name

Name of the package this message is related to [1].

property package_release

Release of the package [1]. Returns None if epoch is unset.

property package_version

Version of the package [1]. Returns None if epoch is unset.

property project_full_name

Project owner name + project name, separated by slash.

property project_name

Name of the copr project. Note that several owners may host project of the same name at the same time.

property project_owner

Owner name of the Copr project. It may be either @groupname or username (leading at sign indicates group).

property status

string representation of build status, e.g. succeeded, failed