{% extends "coprs/detail.html" %} {% from "coprs/detail/_builds_forms.html" import copr_build_cancel_form, copr_build_repeat_form, copr_resubmit_allow_user_ssh_form, copr_build_delete_form, copr_build_feed_log_detective %} {% from "coprs/detail/_describe_source.html" import describe_source %} {% from "coprs/detail/_describe_failure.html" import describe_failure %} {% from "_helpers.html" import chroot_to_os_logo, build_state_text, build_state, copr_name %} {% block title %}Build {{ build.id }} in {{ copr_name(build.copr) }}{% endblock %} {% set selected_tab = "builds" %} {%block project_breadcrumb %}
  • Builds
  • {{build.id}}
  • {%endblock%} {% block detail_body %} {% if build.copr != copr %}

    Build {{ build.id }} doesn't belong to this project.

    You can go to {{ copr_name(build.copr) }}/build/{{build.id}} to see this build.

    {% else %} {% if g.user and g.user.can_build_in(copr) and build.finished and not build.persistent %} {% if g.user.can_edit(copr) or build.user == g.user %} {{ copr_build_delete_form(build, page, class="pull-right button-build-action") }} {% endif %} {% endif %} {% if config.LOG_DETECTIVE_BUTTON and build.state == "failed" %} {{ copr_build_feed_log_detective(build, class="pull-right button-build-action") }} {% endif %} {% if g.user and g.user.can_build_in(copr) and build.cancelable %} {{ copr_build_cancel_form(build, page, class="pull-right button-build-action") }} {% endif %} {% if g.user and g.user.can_build_in(copr) and build.repeatable %} {{ copr_resubmit_allow_user_ssh_form(build, page, class="pull-right button-build-action") }} {{ copr_build_repeat_form(build, page, class="pull-right button-build-action") }} {% endif %}

    Build {{ build.id }} {% if build.is_background %} background {% endif %}

    General Information

    Status:
    {{ build_state(build) }} - {{ build.status | state_from_num | build_state_description }}
    Submitted:
    {% if g.user %} {{ build.submitted_on|localized_time(g.user.timezone) }} {% else %} {{ build.submitted_on|localized_time("UTC") }} {% endif %} ({{ build.submitted_on|time_ago }} ago)
    Started:
    {% if g.user %} {{ build.min_started_on|localized_time(g.user.timezone) }} {% else %} {{ build.min_started_on|localized_time("UTC") }} {% endif %} ({{ build.min_started_on|time_ago }} ago)
    Finished:
    {% if g.user %} {{ build.max_ended_on|localized_time(g.user.timezone) }} {% else %} {{ build.max_ended_on|localized_time("UTC") }} {% endif %} ({{ build.max_ended_on|time_ago }} ago)
    Build time:
    {{ build.min_started_on|time_ago(build.max_ended_on) }}
    Build timeout:
    {{ build.timeout|natural_time_delta() }}
    Networking enabled:
    {{ build.enable_net }}
    {% if build.scm_object_type == 'commit' %}
    Commit:
    {{ build.scm_object_id | truncate(7, True, "") }}
    {% endif %} {% if build.scm_object_type == 'pull-request' %}
    Pull Request:
    PR#{{ build.scm_object_id }}
    {% endif %} {% if build.batch_id %}
    Batch:
    {{ build.batch_id }}
    {% endif %}
    Directory:
    {{ build.copr_dir.name }}
    {% if build.resubmitted_from_id %}
    Resubmitted from:
    {% if build.resubmitted_from %} {{ build.resubmitted_from.id }} {% else %} {{ build.resubmitted_from_id }} {% endif %}
    {% endif %}
    Built by:
    {% if build.submitter[1] %} {{ build.submitter[0] }} {% else %} {{ build.submitter[0] or "unknown user" }} {% endif %}

    Source

    Package:
    {% if build.package %} {{ build.package.name }} {% else %} - {% endif %}
    {% if build.module %}
    Module:
    {{ build.module.nsv }}
    {% endif %}
    Version:
    {% if build.pkg_version %} {{ build.pkg_version}} {% else %} - {% endif %}
    {{ describe_source(build.source_type_text, build.source_json_dict) }}

    Results

    {{ describe_failure(build) }}
    Source state:
    {{ build_state_text(build.source_state) }}
    Source build logs:
    {% if build.resubmitted_from_id and build.source_is_uploaded %} Build resubmitted from build {% if build.resubmitted_from %} #{{ build.resubmitted_from.id }} {% else %} #{{ build.resubmitted_from_id }} {% endif %} {% else %} {% for url in build.get_source_log_urls %} {{ url | basename | fix_import_log_name }} {{ "," if not loop.last }} {% else %} Source build has not started yet {% endfor %} {% endif %}
    Built Packages:
    {% if build.built_packages %} {% for pkg in build.built_packages.split("\n"): %}
    {{ pkg }}
    {% endfor %} {% else %}
    -
    {% endif %} {% if not build.build_chroots %}
    RPM builds:
    waiting for SRPM (package name is not known for this build, yet)
    {% endif %}
    {% if build.build_chroots %} {% for chroot in build.build_chroots|sort(attribute='name') %} {% endfor %}
    Chroot Name Dist Git Source Build Time Logs State
    {% if chroot.result_dir %} {{ chroot.name }} {% else %} {{ chroot.name }} {% endif %} {% if chroot.git_hash %} {% if chroot.dist_git_url %} {{ chroot.git_hash[:7] }} {% else %} {{ chroot.git_hash[:7] }} {% endif %} {% else %} - {% endif %} {{ chroot.started_on|time_ago(chroot.ended_on) }} {% for log in chroot.rpm_live_logs %} {{ log | basename }} {{ "," if not loop.last }} {% else %} RPM build has not started yet {% endfor %} {{ build_state_text(chroot.state, chroot.status_reason) }}
    {% endif %}
    {% endif %} {% endblock %}