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

package_epoch

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

package_full_name

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

package_name

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

package_release

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

package_version

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

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

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

package_epoch

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

package_full_name

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

package_name

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

package_release

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

package_version

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

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 or username (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.