summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.py2
-rwxr-xr-xbin/reproducible_common.sh2
-rw-r--r--bin/templates/basic_page.mustache26
-rw-r--r--bin/templates/default_page_footer.mustache19
-rw-r--r--bin/templates/main_navigation.mustache162
-rw-r--r--bin/templates/package_page.mustache52
-rw-r--r--bin/templates/package_suitearch_details.mustache39
-rw-r--r--bin/templates/package_suitearch_section.mustache30
-rw-r--r--bin/templates/pkg_symbol_legend.mustache13
-rw-r--r--bin/templates/pkgset_details.mustache20
-rw-r--r--bin/templates/pkgset_navigation.mustache34
-rw-r--r--bin/templates/project_links.mustache17
-rw-r--r--bin/templates/status_icon_link.mustache16
13 files changed, 2 insertions, 430 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 92813e06..0a027b0b 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -48,7 +48,7 @@ defaultarch = 'amd64'
BIN_PATH = '/srv/jenkins/bin'
BASE = '/var/lib/jenkins/userContent/reproducible'
DEBIAN_BASE = '/var/lib/jenkins/userContent/reproducible/debian'
-TEMPLATE_PATH = BIN_PATH + '/templates'
+TEMPLATE_PATH = '/srv/jenkins/mustache-templates/reproducible'
PKGSET_DEF_PATH = '/srv/reproducible-results'
TEMP_PATH="/tmp/reproducible"
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 211b425e..04578320 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -43,7 +43,7 @@ REPRODUCIBLE_DOT_ORG_URL=https://reproducible-builds.org
JENKINS_URL=${JENKINS_URL:0:-1}
DBDSUITE="unstable"
BIN_PATH=/srv/jenkins/bin
-TEMPLATE_PATH=$BIN_PATH/templates
+TEMPLATE_PATH=/srv/jenkins/mustache-templates/reproducible
# Debian suites being tested
SUITES="testing unstable experimental"
diff --git a/bin/templates/basic_page.mustache b/bin/templates/basic_page.mustache
deleted file mode 100644
index f5fe0383..00000000
--- a/bin/templates/basic_page.mustache
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta name="viewport" content="width=device-width" />
- {{{meta_refresh}}}
- <link href="/static/style.css?v={{style_dot_css_sha1sum}}" type="text/css" rel="stylesheet" />
- {{#include_pkgset_js}}
- <script type="text/JavaScript" src="/static/pkgset.js"></script>
- {{/include_pkgset_js}}
- <title>{{page_title}}</title>
- </head>
- <body class="wrapper">
- {{#navigation_html}}
- <header class="head">
- {{{navigation_html}}}
- </header>
- {{/navigation_html}}
- {{#navigation_html}}<div class="mainbody">{{/navigation_html}}
- {{#main_header}}
- <h2>{{main_header}}</h2>
- {{/main_header}}
- {{{main_html}}}
- {{#navigation_html}}</div>{{/navigation_html}}
- </body>
-</html>
diff --git a/bin/templates/default_page_footer.mustache b/bin/templates/default_page_footer.mustache
deleted file mode 100644
index 5e97493b..00000000
--- a/bin/templates/default_page_footer.mustache
+++ /dev/null
@@ -1,19 +0,0 @@
-<hr id="footer_separator" />
-<p style="font-size:0.9em;">
- <div id="page_footer">
- {{#job_url}}
- This page was built by the jenkins job <a href="{{job_url}}"> {{job_name}}</a>
- which is configured via this <a href="https://anonscm.debian.org/git/qa/jenkins.debian.net.git/">git repo</a>.
- {{/job_url}}
- There is more information
- <a href="{{jenkins_url}}/userContent/about.html">about jenkins.debian.net</a>
- and about <a href="https://wiki.debian.org/ReproducibleBuilds"> reproducible builds of Debian</a>
- available elsewhere.
- <br /> Copyright 2014-2016 <a href="mailto:holger@layer-acht.org">Holger Levsen</a>
- and <a href="https://jenkins.debian.net//userContent/thanks.html">many others</a>.
- The code of <a href="https://anonscm.debian.org/git/qa/jenkins.debian.net.git/">jenkins.debian.net.git</a>
- is mostly GPL-2 licensed. The weather icons are public domain and have been taken from the
- <a href=http://tango.freedesktop.org/Tango_Icon_Library target=_blank> Tango Icon Library</a>.
- <br /> Last update: {{date}}
- </div>
-</p>
diff --git a/bin/templates/main_navigation.mustache b/bin/templates/main_navigation.mustache
deleted file mode 100644
index d1e425ae..00000000
--- a/bin/templates/main_navigation.mustache
+++ /dev/null
@@ -1,162 +0,0 @@
-<a href="{{debian_uri}}"><h2>Debian Dashboard</h2></a>
-<ul class="menu">
- {{^cross_suite_arch_nav}}
- <h4>Suite/Architecture Overviews</h4>
- {{/cross_suite_arch_nav}}
- {{#cross_suite_arch_nav}}
- <h4>Change Suite/Architecture</h4>
- {{/cross_suite_arch_nav}}
- <li>
- Tested architectures:
- <ul class="children">
- <li>
- {{#arch_list}}
- {{#uri}}
- <a class='{{class}}'
- href="{{uri}}">
- {{a}}
- </a>
- {{/uri}}
- {{/arch_list}}
- </li>
- </ul>
- </li>
- <li>Tested suites:
- <ul class="children">
- <li>
- {{#suite_list}}
- {{#uri}}
- <a class='{{class}}'
- href="{{uri}}">
- {{s}}
- </a>
- {{/uri}}
- {{/suite_list}}
- </li>
- </ul>
- </li>
- <h4>Test Result Statistics</h4>
- <li {{#suite_arch_stats}}class='active'{{/suite_arch_stats}}>
- Results for
- <a href="/debian/{{suite}}/index_suite_{{arch}}_stats.html"
- title="Overview for {{suite}}/{{arch}}">
- <b>{{suite}}/{{arch}}</b>
- </a>
- <ul class="children">
- <li>
- Unreproducible packages:
- <ul class="children">
- <li {{#notes}}class='active'{{/notes}}>
- <a href="/debian/{{suite}}/{{arch}}/index_notes.html"
- title="Show all packages with known issues or notes">
- with notes
- </a>
- </li>
- <li {{#no_notes}}class='active'{{/no_notes}}>
- <a href="/debian/{{suite}}/{{arch}}/index_no_notes.html"
- title="Show all packages that have not been investigated">
- without notes
- </a>
- </li>
- </ul>
- </li>
- <li>Other package states:<ul class="children">
- <li>
- <a href="/debian/{{suite}}/{{arch}}/index_reproducible.html"
- target="_parent" title="reproducible">
- <img src="/static/weather-clear.png" alt="reproducible icon" />
- </a>
- <a href="/debian/{{suite}}/{{arch}}/index_FTBR.html" target="_parent"
- title="unreproducible">
- <img src="/static/weather-showers-scattered.png" alt="FTBR icon" />
- </a>
- <a href="/debian/{{suite}}/{{arch}}/index_FTBFS.html" target="_parent"
- title="Failed To Build From Source">
- <img src="/static/weather-storm.png" alt="FTBFS icon" />
- </a>
- <a href="/debian/{{suite}}/{{arch}}/index_depwait.html" target="_parent"
- title="failed to install build dependencies">
- <img src="/static/weather-snow.png" alt="depwait icon" />
- </a>
- <a href="/debian/{{suite}}/{{arch}}/index_not_for_us.html" target="_parent"
- title="should not build on this architecture">
- <img src="/static/weather-few-clouds-night.png" alt="not_for_us icon" />
- </a>
- <a href="/debian/{{suite}}/{{arch}}/index_404.html" target="_parent"
- title="failed to download the source package">
- <img src="/static/weather-severe-alert.png" alt="404 icon" />
- </a>
- <a href="/debian/{{suite}}/{{arch}}/index_blacklisted.html" target="_parent"
- title="blacklisted">
- <img src="/static/error.png" alt="blacklisted icon" />
- </a>
- </li>
- </ul></li>
- {{#include_pkgset_link}}
- <li {{#pkg_set}}class='active'{{/pkg_set}}>
- <a href="/debian/{{suite}}/{{arch}}/index_pkg_sets.html"
- title="Show stats for tracked sets of packages">
- package sets
- </a>
- </li>
- {{/include_pkgset_link}}
- <li>Recently tested packages:<ul>
- <li {{#last_24h}}class='active'{{/last_24h}}>
- <a href="/debian/{{suite}}/{{arch}}/index_last_24h.html"
- title="Show packages tested in the last 24 hours">
- last 24h
- </a></li>
- <li {{#last_48h}}class='active'{{/last_48h}}>
- <a href="/debian/{{suite}}/{{arch}}/index_last_48h.html"
- title="Show packages tested in the last 48 hours">
- last 48h
- </a></li>
- </ul></li>
- <li {{#all_abc}}class='active'{{/all_abc}}>
- <a href="/debian/{{suite}}/{{arch}}/index_all_abc.html"
- title="Show all tested packages (in alphabetical order!)">
- all tested packages
- </a>
- </li>
- </ul>
- </li>
- <li {{#scheduled}}class='active'{{/scheduled}}>
- <a href="/debian/index_{{arch}}_scheduled.html"
- title="Show packages currently scheduled for testing on {{arch}}">
- scheduled
- </a> for {{arch}}
- </li>
- <li {{#dd_list}}class='active'{{/dd_list}}>
- <a href="/debian/{{suite}}/index_dd-list.html"
- title="Show maintainers of unreproducible packages in {{suite}}">
- maintainers of <img src="/static/weather-showers-scattered.png"
- alt="Unreproducible packages">
- </a> in {{suite}}
- </li>
-</ul>
-<ul class="menu new-menu">
- <h4>Reproducible Debian Metadata</h4>
- <li {{#issues}}class='active'{{/issues}}>
- <a href="/debian/index_issues.html">issues</a>
- </li>
- <li {{#repositories}}class='active'{{/repositories}}>
- <a href="/debian/index_repositories.html">
- repositories overview
- </a>
- </li>
- <li {{#notify}}class='active'{{/notify}}>
- <a href="/debian/index_notify.html" title="notify icon">
- ⚑ packages with enabled notifications
- </a>
- </li>
- <li {{#performance}}class='active'{{/performance}}>
- <a href="/debian/index_performance.html">performance stats</a>
- </li>
- <li {{#variations}}class='active'{{/variations}}>
- <a href="/debian/index_variations.html">variations tested</a>
- </li>
- <li {{#breakages}}class='active'{{/breakages}}>
- <a href="/debian/index_breakages.html">broken pieces</a>
- </li>
-</ul>
-{{{project_links_html}}}
diff --git a/bin/templates/package_page.mustache b/bin/templates/package_page.mustache
deleted file mode 100644
index 3261e417..00000000
--- a/bin/templates/package_page.mustache
+++ /dev/null
@@ -1,52 +0,0 @@
-<header class="head">
- <h2 class="package-name">{{package}}</h2>
- <ul class="menu">
- <h3>Test Details
- <a href="/debian/index_notify.html" target="_parent">
- <span class="notification" title="Notifications for this package are enabled. Every reproducibility related status change will be emailed to the maintainers">{{notify_maintainer}}</span>
- </a>
- </h3>
- {{#notes_uri}}
- <li><a href="{{notes_uri}}" title="Additional commentary on this packages unreproduciblity"target="main">notes</a></li>
- {{/notes_uri}}
- {{^notes_uri}}
- {{^reproducible}}
- <li>No notes exist for this package. <a href="https://anonscm.debian.org/git/reproducible/notes.git/tree/README">Add some.</a></li>
- {{/reproducible}}
- {{#reproducible}}
- <li>Good work! This package looks reproducible :)</li>
- {{/reproducible}}
- {{/notes_uri}}
- <li>
- <a href="{{history}}" target="main">test history</a>
- </li>
- <h3>Suite and Architecture</h3>
- {{{suitearch_section_html}}}
- <h3>General Package Details</h3>
- <li>
- <a href="https://tracker.debian.org/{{package}}" title="Go to: Debian Package Tracking Site">PTS</a>
- <a href="https://bugs.debian.org/src:{{package}}" title="Go to: Debian Bug Tracking Site">BTS</a>
- </li>
- <li>
- <a href="https://sources.debian.net/src/{{package}}/{{version}}/" title="Go to: the package source!">sources</a>
- <ul class="children">
- <li>
- <div><a href="https://sources.debian.net/src/{{package}}/{{version}}/debian">debian/</a></div>
- <div><a href="https://sources.debian.net/src/{{package}}/{{version}}/debian/changelog">debian/changelog</a></div>
- <div><a href="https://sources.debian.net/src/{{package}}/{{version}}/debian/control">debian/control</a></div>
- <div><a href="https://sources.debian.net/src/{{package}}/{{version}}/debian/rules">debian/rules</a></div>
- </li>
- </ul>
- </li>
- </ul>
- <ul class="children">
- <li><a href="{{dashboard_url}}">Debian dashboard</a></li>
- </ul>
-{{{project_links_html}}}
-</header>
-<iframe id="main" name="main" tabindex="1" src="{{default_view}}">
- <p>
- Your browser does not support iframes.
- Use a different one or follow the links above.
- </p>
-</iframe>
diff --git a/bin/templates/package_suitearch_details.mustache b/bin/templates/package_suitearch_details.mustache
deleted file mode 100644
index ac74be56..00000000
--- a/bin/templates/package_suitearch_details.mustache
+++ /dev/null
@@ -1,39 +0,0 @@
-<ul class="children">
- <li>
- {{{status_html}}}
- {{#build_date}}
- <div><span class="build-time">at {{build_date}}</span></div>
- {{/build_date}}
- </li>
- {{#dbd}}
- <li>
- <div>
- <a href="{{dbd_url}}" title="Show: formatted diffoscope results" target="main">
- <img src="/static/diffoscope-logo.png" alt="diffoscope logo" />
- differences
- </a>
- {{#dbdtxt_url}}
- <a href="{{dbdtxt_url}}" target="main">(txt)</a>
- {{/dbdtxt_url}}
- </div>
- </li>
- {{/dbd}}
- {{#has_buildloginfo}}
- <li>
- {{#buildinfo_uri}}
- <div>
- <a href="{{buildinfo_uri}}" title="Show: build info" target="main">buildinfo</a>
- </div>
- {{/buildinfo_uri}}
- <div>
- {{#rbuild_uri}}
- <a href="{{rbuild_uri}}" title="Show: log of first build (+some other stuff)" target="main">rbuild ({{rbuild_size}})</a>
- {{/rbuild_uri}}
- {{#buildlogs}}
- <a href="{{build2_uri}}" title="Show: log of second build" target="main">build2 ({{build2_size}})</a>
- <a href="{{diff_uri}}" title="Show: diff between the first and second builds" target="main">diff</a>
- {{/buildlogs}}
- </div>
- </li>
- {{/has_buildloginfo}}
-</ul>
diff --git a/bin/templates/package_suitearch_section.mustache b/bin/templates/package_suitearch_section.mustache
deleted file mode 100644
index d8ac5304..00000000
--- a/bin/templates/package_suitearch_section.mustache
+++ /dev/null
@@ -1,30 +0,0 @@
-<ul>
- {{#architectures}}
- <li>
- {{arch}}
- <ul class="children">
- {{#suites}}
- <li class="{{li_classes}}">
- {{^untested}}
- <a href="/debian/{{suite}}/{{arch}}/index_{{status}}.html">
- <img src="/static/{{icon}}" alt="{{spokenstatus}}" title="{{spokenstatus}}"/>
- </a>
- {{/untested}}
- {{#untested}}
- <img src="/static/{{icon}}" alt="{{spokenstatus}}" title="{{spokenstatus}}"/>
- {{/untested}}
- {{^current_suitearch}}
- <a href="{{package_uri}}" target="_parent" title="{{spokenstatus}}: {{version}} on {{build_date}}">
- {{version}}
- </a> in <a href="/debian/{{suite}}/{{arch}}/" title="Go to: summary of all tests for {{arch}}/{{suite}}" target="_parent">{{suite}}</a>
- {{/current_suitearch}}
- {{#current_suitearch}}
- {{version}} in <a href="/debian/{{suite}}/{{arch}}/" title="Go to: summary of all tests for {{arch}}/{{suite}}" target="_parent">{{suite}}</a>
- {{/current_suitearch}}
- {{{suitearch_details_html}}}
- </li>
- {{/suites}}
- </ul>
- </li>
- {{/architectures}}
-</ul>
diff --git a/bin/templates/pkg_symbol_legend.mustache b/bin/templates/pkg_symbol_legend.mustache
deleted file mode 100644
index 12fe485a..00000000
--- a/bin/templates/pkg_symbol_legend.mustache
+++ /dev/null
@@ -1,13 +0,0 @@
-<p style="font-size:0.9em;">
-A package name displayed with a <span style="font-weight: bold;">bold
-font</span> is an indication that this package has a note. Visited
-packages are linked in green, those which have not been visited are
-linked in blue.
-<br />
-A <code><span class="bug">&#35;</span></code> sign after the name of a package
-indicates that a bug is filed against it. Likewise, a
-<code><span class="bug-patch">&#43;</span></code> sign indicates there is a
-patch available, a <code><span class="bug-pending">P</span></code> means a
-pending bug while <code><span class="bug-done">&#35;</span></code> indicates a
-closed bug. In cases of several bugs, the symbol is repeated.
-</p>
diff --git a/bin/templates/pkgset_details.mustache b/bin/templates/pkgset_details.mustache
deleted file mode 100644
index d29576a2..00000000
--- a/bin/templates/pkgset_details.mustache
+++ /dev/null
@@ -1,20 +0,0 @@
-<p>
-{{#png}}
- <a href="{{png}}">
- <img src="{{png}}" class="overview"
- title="Package set {{pkgset_name}} in {{suite}}/{{arch}}. (To switch suite and arch, see top left.)"
- alt="package set {{pkgset_name}} in {{suite}}/{{arch}}">
- </a>"
- {{/png}}
- <br />
- The package set <span class="highlight">{{pkgset_name}}</span> in
- <span class="highlight">{{suite}}/{{arch}}</span> consists of:
- <br />
- {{#status_details}}
- {{{icon_html}}} {{status_count}} ({{status_percent}}%) packages
- {{description}}:
- {{{package_list_html}}}
- <br />
- {{/status_details}}
- {{{pkg_symbol_legend_html}}}
-</p>
diff --git a/bin/templates/pkgset_navigation.mustache b/bin/templates/pkgset_navigation.mustache
deleted file mode 100644
index 98bfd5ce..00000000
--- a/bin/templates/pkgset_navigation.mustache
+++ /dev/null
@@ -1,34 +0,0 @@
-<ul>
- {{#pkgset_page}}
- <li id="expand-all-pkgsets">
- <a href="/debian/{{suite}}/{{arch}}/index_pkg_sets.html"
- title="To switch suite and arch, see top left">
- All tracked package sets for <b>{{suite}}/{{arch}}</b>
- </a>
- </li>
- {{/pkgset_page}}
-</ul>
-{{#package_set_sections}}
-<details {{^pkgset_page}}open{{/pkgset_page}}>
- <summary>{{section}} package sets:</summary>
- <ul class="pkgset-list">
- {{#pkgsets}}
- <li class="{{class}}">
- <a href="/debian/{{suite}}/{{arch}}/pkg_set_{{pkgset_name}}.html">
- {{pkgset_name}}
- </a>
- {{#thumb}}
- <a href="/debian/{{suite}}/{{arch}}/pkg_set_{{pkgset_name}}.html">
- <img src="{{thumb}}" class="setview"
- alt="Reproducibility status for packages in {{suite}}/{{arch}} from '{{pkg_name}}'"
- title="{{pkgset_name}}" name="{{pkgset_name}}">
- </a>
- {{/thumb}}
- </li>
- {{/pkgsets}}
-</ul>
-</details>
-{{/package_set_sections}}
-{{#pkgset_page}}
-<hr id="footer_separator" />
-{{/pkgset_page}}
diff --git a/bin/templates/project_links.mustache b/bin/templates/project_links.mustache
deleted file mode 100644
index b457982e..00000000
--- a/bin/templates/project_links.mustache
+++ /dev/null
@@ -1,17 +0,0 @@
-<ul class="reproducible-links new-menu children">
- <h4>Reproducible Builds Projects</h4>
- <li>
- <a href="https://Reproducible-builds.org">Reproducible-builds.org</a><br />
- Reproducible-builds.org - <a href="https://Reproducible-builds.org/docs/">HowTo</a><br />
- Reproducible Debian - <a href="https://wiki.debian.org/ReproducibleBuilds">Wiki</a><br />
- Reproducible builds <a href="https://reproducible.alioth.debian.org/blog/">weekly news</a><br />
- <a href="https://reproducible-builds.org/specs/source-date-epoch/">SOURCE_DATE_EPOCH specification</a><br />
- </li><li>
- Reproducible <a href="https://tests.reproducible-builds.org/archlinux/">Arch Linux</a> /
- <a href="https://tests.reproducible-builds.org/coreboot/">coreboot</a> /
- <a href="https://tests.reproducible-builds.org/fedora/">Fedora</a> /
- <a href="https://tests.reproducible-builds.org/freebsd/">FreeBSD</a> /
- <a href="https://tests.reproducible-builds.org/netbsd/">NetBSD</a> /
- <a href="https://tests.reproducible-builds.org/openwrt/">OpenWrt</a>
- </li>
-</ul>
diff --git a/bin/templates/status_icon_link.mustache b/bin/templates/status_icon_link.mustache
deleted file mode 100644
index 66bebfcc..00000000
--- a/bin/templates/status_icon_link.mustache
+++ /dev/null
@@ -1,16 +0,0 @@
-{{^untested}}
-{{#icon}}
-<a href="/debian/{{suite}}/{{arch}}/index_{{status}}.html" title="Go to: summary of all {{spokenstatus}} packages" target="_parent">
- <img src="/static/{{icon}}" alt="{{spokenstatus}}">
-</a>
-{{/icon}}
-{{#spokenstatus}}
-<a href="/debian/{{suite}}/{{arch}}/index_{{status}}.html" title="Go to: summary of all {{spokenstatus}} packages" target="_parent">
- {{spokenstatus}}
-</a>
-{{/spokenstatus}}
-{{/untested}}
-
-{{#untested}}
-{{#icon}}<img src="/static/{{icon}}" alt="{{spokenstatus}}">{{/icon}} {{spokenstatus}}
-{{/untested}}