class BuildStageTable(BaseModel): """Model for cidb.buildStageTable.""" class Meta(object): """Set extra table options.""" db_table = 'buildStageTable' # Not used directly in field definition for readonly tables, but used # elsewhere as constants. FAIL = 'fail' PASS = '******' INFLIGHT = 'inflight' MISSING = 'missing' PLANNED = 'planned' SKIPPED = 'skipped' FORGIVEN = 'forgiven' STATUS_CHOICES = ( (FAIL, 'Stage failed'), (PASS, 'Stage passed! Hurray!'), (INFLIGHT, 'Stage is inflight'), (MISSING, 'Status missing'), (PLANNED, 'Stage is planned'), (SKIPPED, 'Stage skipped'), (FORGIVEN, 'Stage failed but forgiven')) id = ba_fields.ReadOnlyIntegerField(primary_key=True) build_id = ba_fields.ReadOnlyForeignKey('BuildTable', db_column='build_id') name = ba_fields.ReadOnlyCharField() board = ba_fields.ReadOnlyCharField() status = ba_fields.ReadOnlyEnumField() last_updated = ba_fields.ReadOnlyDateTimeField() start_time = ba_fields.ReadOnlyDateTimeField() finish_time = ba_fields.ReadOnlyDateTimeField() final = ba_fields.ReadOnlyBooleanField()
class ClActionTable(BaseModel): """Model for cidb.clActionTable.""" class Meta(object): """Set extra table options.""" db_table = 'clActionTable' # Not used directly in field definition for readonly tables, but used # elsewhere as constants. PICKED_UP = 'picked_up' SUBMITTED = 'submitted' KICKED_OUT = 'kicked_out' SUBMIT_FAILED = 'submit_failed' VERIFIED = 'verified' FORGIVEN = 'forgiven' # This list of choices is not exhaustive yet. It's only enough for CQ stats. ACTION_CHOICES = ( (PICKED_UP, 'CL picked up by CQ'), (SUBMITTED, 'CL submitted by CQ'), (KICKED_OUT, 'CL kicked out by CQ'), (SUBMIT_FAILED, 'CQ failed to submit CL'), (VERIFIED, 'CL verified by CQ'), (FORGIVEN, 'CQ run failed, but CL forgiven')) id = ba_fields.ReadOnlyIntegerField(primary_key=True) build_id = ba_fields.ReadOnlyForeignKey('BuildTable', db_column='build_id') change_number = ba_fields.ReadOnlyIntegerField() patch_number = ba_fields.ReadOnlyIntegerField() change_source = ba_fields.ReadOnlyEnumField() action = ba_fields.ReadOnlyEnumField() reason = ba_fields.ReadOnlyCharField() timestamp = ba_fields.ReadOnlyDateTimeField()
class FailureTable(BaseModel): """Model for cidb.failureTable.""" class Meta(object): """Set extra table options.""" db_table = 'failureTable' id = ba_fields.ReadOnlyIntegerField(primary_key=True) build_stage_id = ba_fields.ReadOnlyForeignKey('BuildStageTable', db_column='build_stage_id') outer_failure_id = ba_fields.ReadOnlyForeignKey( 'self', db_column='outer_failure_id') exception_type = ba_fields.ReadOnlyCharField() exception_message = ba_fields.ReadOnlyCharField() exception_category = ba_fields.ReadOnlyEnumField() extra_info = ba_fields.ReadOnlyCharField() timestamp = ba_fields.ReadOnlyDateTimeField()
class BuildTable(BaseModel): """Model for cidb.buildTable.""" class Meta(object): """Set extra table options.""" db_table = 'buildTable' id = ba_fields.ReadOnlyIntegerField(primary_key=True) last_updated = ba_fields.ReadOnlyDateTimeField() master_build_id = ba_fields.ReadOnlyForeignKey('self', db_column='master_build_id') buildbot_generation = ba_fields.ReadOnlyIntegerField() builder_name = ba_fields.ReadOnlyCharField() waterfall = ba_fields.ReadOnlyCharField() build_number = ba_fields.ReadOnlyIntegerField() build_config = ba_fields.ReadOnlyCharField() bot_hostname = ba_fields.ReadOnlyCharField() start_time = ba_fields.ReadOnlyDateTimeField() finish_time = ba_fields.ReadOnlyDateTimeField() status = ba_fields.ReadOnlyCharField() status_pickle = ba_fields.ReadOnlyBlobField() build_type = ba_fields.ReadOnlyCharField() chrome_version = ba_fields.ReadOnlyCharField() milestone_version = ba_fields.ReadOnlyCharField() platform_version = ba_fields.ReadOnlyCharField() full_version = ba_fields.ReadOnlyCharField() sdk_version = ba_fields.ReadOnlyCharField() toolchain_url = ba_fields.ReadOnlyURLField() final = ba_fields.ReadOnlyBooleanField() metadata_url = ba_fields.ReadOnlyURLField() summary = ba_fields.ReadOnlyCharField() deadline = ba_fields.ReadOnlyDateTimeField()