Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/infra
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 79f772ee21c4
Choose a base ref
...
head repository: NixOS/infra
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e09afce47728
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 1, 2020

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    alyssais Alyssa Ross
    Copy the full SHA
    e09afce View commit details
Showing with 4 additions and 1 deletion.
  1. +4 −1 delft/eris/status-page/status.js
5 changes: 4 additions & 1 deletion delft/eris/status-page/status.js
Original file line number Diff line number Diff line change
@@ -93,6 +93,7 @@ const jobsetData = fetchData('query_range', {
jobset,
job,
job_history: values.map(state => state[1] == 0),
oldest_status: values[0][0],
hydra_url: `https://hydra.nixos.org/job/${project}/${jobset}/${job}`,
},
};
@@ -123,6 +124,7 @@ Promise.all([revisionData, updateTimeData, jobsetData])
var combined = [];

for (let [channel, jobset] of Object.entries(jobsets)) {
jobset['oldest_status_relative'] = moment.unix(jobset['oldest_status']).fromNow()
// Ensure each jobset here is in each other dataset, guaranteeing we have
// complete data.
jobset['channel'] = channel;
@@ -158,7 +160,7 @@ Promise.all([revisionData, updateTimeData, jobsetData])
.then(data => {
return data.map(record => {
var row = document.createElement('tr');
row.innerHTML = '<td class="channel" /><td><span class="age label"></span></td><td class="github"><a class="revision" /></td><td class="hydra" title="The state of the job over time"><a class="hydra-link" /></td><td class="status"></td>';
row.innerHTML = '<td class="channel" /><td><span class="age label"></span></td><td class="github"><a class="revision" /></td><td class="hydra"><a class="hydra-link" /></td><td class="status"></td>';
if (record['current']) {
row.classList.add("current")
} else {
@@ -178,6 +180,7 @@ Promise.all([revisionData, updateTimeData, jobsetData])
row.getElementsByClassName("hydra")[0].style.backgroundImage = "linear-gradient(to right, " +
(record['job_history'].map(val => val ? "#b5ffb5" : "#ff9e9e")).join(", ") +
")";
row.getElementsByClassName("hydra")[0].title = `The Hydra job's state over time, since ${record['oldest_status_relative']}`;

if (record['job_history'][record['job_history'].length - 1] == 0) {
row.getElementsByClassName("status")[0].innerHTML += '<span class="label label-important">Build problem</span>';