Package coprs :: Module models :: Class BuildChroot
[hide private]
[frames] | no frames]

Class BuildChroot

source code


Representation of Build<->MockChroot relation

Instance Methods [hide private]
 
name(self)
Textual representation of name of this chroot
source code
 
state(self)
Return text representation of status of this build chroot
source code
 
finished(self) source code
 
task_id(self) source code
 
dist_git_url(self) source code
 
result_dir_url(self) source code
 
_compressed_log_variant(self, basename, states_raw_log) source code
 
rpm_live_log_url(self)
Full URL to the builder-live.log.gz for RPM build.
source code
 
rpm_backend_log_url(self)
Link to backend.log[.gz] related to RPM build.
source code
 
rpm_live_logs(self)
return list of live log URLs
source code

Inherited from helpers.Serializer: serializable_attributes, to_dict

Class Variables [hide private]
  __table_args__ = db.Index("build_chroot_status_started_on_idx"...
  id = db.Column('id', db.Integer, primary_key= True)
  copr_chroot_id = db.Column(db.Integer, db.ForeignKey("copr_chr...
  copr_chroot = db.relationship("CoprChroot", backref= db.backre...
  mock_chroot_id = db.Column(db.Integer, db.ForeignKey("mock_chr...
  mock_chroot = db.relationship("MockChroot", backref= db.backre...
  build_id = db.Column(db.Integer, db.ForeignKey("build.id", ond...
  build = db.relationship("Build", backref= db.backref("build_ch...
  git_hash = db.Column(db.String(40))
  status = db.Column(db.Integer, default= StatusEnum("waiting"))
  started_on = db.Column(db.Integer, index= True)
  ended_on = db.Column(db.Integer, index= True)
  result_dir = db.Column(db.Text, default= '', server_default= '...
  build_requires = db.Column(db.Text)
Method Details [hide private]

name(self)

source code 

Textual representation of name of this chroot

Decorators:
  • @property

state(self)

source code 

Return text representation of status of this build chroot

Decorators:
  • @property

finished(self)

source code 
Decorators:
  • @property

task_id(self)

source code 
Decorators:
  • @property

dist_git_url(self)

source code 
Decorators:
  • @property

result_dir_url(self)

source code 
Decorators:
  • @property

rpm_live_log_url(self)

source code 

Full URL to the builder-live.log.gz for RPM build.

Decorators:
  • @property

rpm_backend_log_url(self)

source code 

Link to backend.log[.gz] related to RPM build.

Decorators:
  • @property

rpm_live_logs(self)

source code 

return list of live log URLs

Decorators:
  • @property

Class Variable Details [hide private]

__table_args__

Value:
db.Index("build_chroot_status_started_on_idx", "status", "started_on")\
, db.UniqueConstraint("mock_chroot_id", "build_id", name= "build_chroo\
t_mock_chroot_id_build_id_uniq"),

copr_chroot_id

Value:
db.Column(db.Integer, db.ForeignKey("copr_chroot.id", ondelete= "SET N\
ULL"), nullable= True, index= True,)

copr_chroot

Value:
db.relationship("CoprChroot", backref= db.backref("build_chroots"))

mock_chroot_id

Value:
db.Column(db.Integer, db.ForeignKey("mock_chroot.id"), nullable= False\
)

mock_chroot

Value:
db.relationship("MockChroot", backref= db.backref("builds"))

build_id

Value:
db.Column(db.Integer, db.ForeignKey("build.id", ondelete= "CASCADE"), \
index= True, nullable= False)

build

Value:
db.relationship("Build", backref= db.backref("build_chroots", cascade=\
 "all, delete-orphan", passive_deletes= True))

result_dir

Value:
db.Column(db.Text, default= '', server_default= '', nullable= False)