From 9754f45904cf6cd95b94c147e142afcd2600465e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 8 Oct 2020 14:08:20 +0800 Subject: [PATCH] use new simplified hydra jobset declarations --- hydra/artiq.json | 120 ++++++++++++++++++++++++++++++++++++++++++----- hydra/artiq.nix | 118 ---------------------------------------------- hydra/stm32.json | 32 ++++++++----- hydra/stm32.nix | 30 ------------ hydra/web.json | 29 +++++++----- hydra/web.nix | 27 ----------- 6 files changed, 142 insertions(+), 214 deletions(-) delete mode 100644 hydra/artiq.nix delete mode 100644 hydra/stm32.nix delete mode 100644 hydra/web.nix diff --git a/hydra/artiq.json b/hydra/artiq.json index 921174d..6652b70 100644 --- a/hydra/artiq.json +++ b/hydra/artiq.json @@ -1,16 +1,110 @@ { - "enabled": 1, - "hidden": true, - "description": "js", - "nixexprinput": "nixScripts", - "nixexprpath": "hydra/artiq.nix", - "checkinterval": 300, - "schedulingshares": 10, - "enableemail": false, - "emailoverride": "", - "keepnr": 10, - "inputs": { - "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, - "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false } + "fast-beta": { + "enabled": 1, + "hidden": false, + "description": "Core ARTIQ packages to build fast for CI purposes (beta version)", + "nixexprinput": "nixScripts", + "nixexprpath": "artiq-fast.nix", + "checkinterval": 300, + "schedulingshares": 10, + "enableemail": false, + "emailoverride": "", + "keepnr": 10, + "inputs": { + "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.09", "emailresponsible": false }, + "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, + "artiqSrc": { "type": "git", "value": "git://github.com/m-labs/artiq.git master 1", "emailresponsible": false } + } + }, + "full-beta": { + "enabled": 1, + "hidden": false, + "description": "Full set of ARTIQ packages (beta version)", + "nixexprinput": "nixScripts", + "nixexprpath": "artiq-full.nix", + "checkinterval": 86400, + "schedulingshares": 1, + "enableemail": false, + "emailoverride": "", + "keepnr": 10, + "inputs": { + "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.09", "emailresponsible": false }, + "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, + "sinaraSystemsSrc": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/sinara-systems.git master 1", "emailresponsible": false }, + "artiq-fast": { "type": "sysbuild", "value": "artiq:fast-beta:generated-nix", "emailresponsible": false } + } + }, + "fast": { + "enabled": 1, + "hidden": false, + "description": "Core ARTIQ packages to build fast for CI purposes", + "nixexprinput": "nixScripts", + "nixexprpath": "artiq-fast.nix", + "checkinterval": 300, + "schedulingshares": 10, + "enableemail": false, + "emailoverride": "", + "keepnr": 10, + "inputs": { + "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, + "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, + "artiqSrc": { "type": "git", "value": "git://github.com/m-labs/artiq.git release-5 1", "emailresponsible": false } + } + }, + "full": { + "enabled": 1, + "hidden": false, + "description": "Full set of ARTIQ packages", + "nixexprinput": "nixScripts", + "nixexprpath": "artiq-full.nix", + "checkinterval": 86400, + "schedulingshares": 1, + "enableemail": false, + "emailoverride": "", + "keepnr": 10, + "inputs": { + "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, + "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, + "sinaraSystemsSrc": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/sinara-systems.git master 1", "emailresponsible": false }, + "artiq-fast": { "type": "sysbuild", "value": "artiq:fast:generated-nix", "emailresponsible": false } + } + }, + "gluelogic": { + "enabled": 1, + "hidden": false, + "description": "Glue logic gateware for Sinara devices", + "nixexprinput": "nixScripts", + "nixexprpath": "gluelogic.nix", + "checkinterval": 172800, + "schedulingshares": 1, + "enableemail": false, + "emailoverride": "", + "keepnr": 10, + "inputs": { + "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.09", "emailresponsible": false }, + "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, + "urukulSrc": { "type": "git", "value": "git://github.com/quartiq/urukul", "emailresponsible": false }, + "mirnySrc": { "type": "git", "value": "git://github.com/quartiq/mirny", "emailresponsible": false }, + "fastinoSrc": { "type": "git", "value": "git://github.com/quartiq/fastino", "emailresponsible": false } + } + }, + "zynq": { + "enabled": 1, + "hidden": false, + "description": "ARTIQ on Zynq", + "nixexprinput": "nixScripts", + "nixexprpath": "zynq.nix", + "checkinterval": 300, + "schedulingshares": 1, + "enableemail": false, + "emailoverride": "", + "keepnr": 10, + "inputs": { + "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, + "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, + "artiq-fast": { "type": "sysbuild", "value": "artiq:fast-beta:generated-nix", "emailresponsible": false }, + "zynq-rs": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/zynq-rs.git", "emailresponsible": false }, + "artiq-zynq": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/artiq-zynq.git", "emailresponsible": false } + } } } diff --git a/hydra/artiq.nix b/hydra/artiq.nix deleted file mode 100644 index 91a0e54..0000000 --- a/hydra/artiq.nix +++ /dev/null @@ -1,118 +0,0 @@ -{ pkgs ? import {}}: -{ - jobsets = pkgs.runCommand "spec.json" {} - '' - cat > $out << EOF - { - "fast-beta": { - "enabled": 1, - "hidden": false, - "description": "Core ARTIQ packages to build fast for CI purposes (beta version)", - "nixexprinput": "nixScripts", - "nixexprpath": "artiq-fast.nix", - "checkinterval": 300, - "schedulingshares": 10, - "enableemail": false, - "emailoverride": "", - "keepnr": 10, - "inputs": { - "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.09", "emailresponsible": false }, - "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, - "artiqSrc": { "type": "git", "value": "git://github.com/m-labs/artiq.git master 1", "emailresponsible": false } - } - }, - "full-beta": { - "enabled": 1, - "hidden": false, - "description": "Full set of ARTIQ packages (beta version)", - "nixexprinput": "nixScripts", - "nixexprpath": "artiq-full.nix", - "checkinterval": 86400, - "schedulingshares": 1, - "enableemail": false, - "emailoverride": "", - "keepnr": 10, - "inputs": { - "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.09", "emailresponsible": false }, - "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, - "sinaraSystemsSrc": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/sinara-systems.git master 1", "emailresponsible": false }, - "artiq-fast": { "type": "sysbuild", "value": "artiq:fast-beta:generated-nix", "emailresponsible": false } - } - }, - "fast": { - "enabled": 1, - "hidden": false, - "description": "Core ARTIQ packages to build fast for CI purposes", - "nixexprinput": "nixScripts", - "nixexprpath": "artiq-fast.nix", - "checkinterval": 300, - "schedulingshares": 10, - "enableemail": false, - "emailoverride": "", - "keepnr": 10, - "inputs": { - "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, - "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, - "artiqSrc": { "type": "git", "value": "git://github.com/m-labs/artiq.git release-5 1", "emailresponsible": false } - } - }, - "full": { - "enabled": 1, - "hidden": false, - "description": "Full set of ARTIQ packages", - "nixexprinput": "nixScripts", - "nixexprpath": "artiq-full.nix", - "checkinterval": 86400, - "schedulingshares": 1, - "enableemail": false, - "emailoverride": "", - "keepnr": 10, - "inputs": { - "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, - "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, - "sinaraSystemsSrc": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/sinara-systems.git master 1", "emailresponsible": false }, - "artiq-fast": { "type": "sysbuild", "value": "artiq:fast:generated-nix", "emailresponsible": false } - } - }, - "gluelogic": { - "enabled": 1, - "hidden": false, - "description": "Glue logic gateware for Sinara devices", - "nixexprinput": "nixScripts", - "nixexprpath": "gluelogic.nix", - "checkinterval": 172800, - "schedulingshares": 1, - "enableemail": false, - "emailoverride": "", - "keepnr": 10, - "inputs": { - "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.09", "emailresponsible": false }, - "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, - "urukulSrc": { "type": "git", "value": "git://github.com/quartiq/urukul", "emailresponsible": false }, - "mirnySrc": { "type": "git", "value": "git://github.com/quartiq/mirny", "emailresponsible": false }, - "fastinoSrc": { "type": "git", "value": "git://github.com/quartiq/fastino", "emailresponsible": false } - } - }, - "zynq": { - "enabled": 1, - "hidden": false, - "description": "ARTIQ on Zynq", - "nixexprinput": "nixScripts", - "nixexprpath": "zynq.nix", - "checkinterval": 300, - "schedulingshares": 1, - "enableemail": false, - "emailoverride": "", - "keepnr": 10, - "inputs": { - "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, - "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, - "artiq-fast": { "type": "sysbuild", "value": "artiq:fast-beta:generated-nix", "emailresponsible": false }, - "zynq-rs": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/zynq-rs.git", "emailresponsible": false }, - "artiq-zynq": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/artiq-zynq.git", "emailresponsible": false } - } - } - } - EOF - ''; -} diff --git a/hydra/stm32.json b/hydra/stm32.json index 0c99562..c732841 100644 --- a/hydra/stm32.json +++ b/hydra/stm32.json @@ -1,16 +1,22 @@ { - "enabled": 1, - "hidden": true, - "description": "js", - "nixexprinput": "nixScripts", - "nixexprpath": "hydra/stm32.nix", - "checkinterval": 300, - "schedulingshares": 10, - "enableemail": false, - "emailoverride": "", - "keepnr": 10, - "inputs": { - "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, - "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false } + "stm32": { + "enabled": 1, + "hidden": false, + "description": "STM32 firmware", + "nixexprinput": "nixScripts", + "nixexprpath": "stm32.nix", + "checkinterval": 300, + "schedulingshares": 10, + "enableemail": false, + "emailoverride": "", + "keepnr": 10, + "inputs": { + "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, + "mozillaOverlay": { "type": "git", "value": "git://github.com/mozilla/nixpkgs-mozilla.git", "emailresponsible": false }, + "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, + "stabilizerSrc": { "type": "git", "value": "git://github.com/quartiq/stabilizer.git", "emailresponsible": false }, + "thermostatSrc": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/thermostat.git", "emailresponsible": false }, + "humpbackDdsSrc": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/humpback-dds.git", "emailresponsible": false } + } } } diff --git a/hydra/stm32.nix b/hydra/stm32.nix deleted file mode 100644 index 4f36e48..0000000 --- a/hydra/stm32.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ pkgs ? import {}}: -{ - jobsets = pkgs.runCommand "spec.json" {} - '' - cat > $out << EOF - { - "stm32": { - "enabled": 1, - "hidden": false, - "description": "STM32 firmware", - "nixexprinput": "nixScripts", - "nixexprpath": "stm32.nix", - "checkinterval": 300, - "schedulingshares": 10, - "enableemail": false, - "emailoverride": "", - "keepnr": 10, - "inputs": { - "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, - "mozillaOverlay": { "type": "git", "value": "git://github.com/mozilla/nixpkgs-mozilla.git", "emailresponsible": false }, - "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, - "stabilizerSrc": { "type": "git", "value": "git://github.com/quartiq/stabilizer.git", "emailresponsible": false }, - "thermostatSrc": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/thermostat.git", "emailresponsible": false }, - "humpbackDdsSrc": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/humpback-dds.git", "emailresponsible": false } - } - } - } - EOF - ''; -} diff --git a/hydra/web.json b/hydra/web.json index 884cb0a..57ab3fb 100644 --- a/hydra/web.json +++ b/hydra/web.json @@ -1,16 +1,19 @@ { - "enabled": 1, - "hidden": true, - "description": "js", - "nixexprinput": "nixScripts", - "nixexprpath": "hydra/web.nix", - "checkinterval": 300, - "schedulingshares": 10, - "enableemail": false, - "emailoverride": "", - "keepnr": 10, - "inputs": { - "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, - "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false } + "web": { + "enabled": 1, + "hidden": false, + "description": "M-Labs website", + "nixexprinput": "nixScripts", + "nixexprpath": "web.nix", + "checkinterval": 300, + "schedulingshares": 10, + "enableemail": false, + "emailoverride": "", + "keepnr": 10, + "inputs": { + "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, + "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, + "webSrc": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/web2019.git", "emailresponsible": false } + } } } diff --git a/hydra/web.nix b/hydra/web.nix deleted file mode 100644 index 30fec8d..0000000 --- a/hydra/web.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ pkgs ? import {}}: -{ - jobsets = pkgs.runCommand "spec.json" {} - '' - cat > $out << EOF - { - "web": { - "enabled": 1, - "hidden": false, - "description": "M-Labs website", - "nixexprinput": "nixScripts", - "nixexprpath": "web.nix", - "checkinterval": 300, - "schedulingshares": 10, - "enableemail": false, - "emailoverride": "", - "keepnr": 10, - "inputs": { - "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs nixos-20.03", "emailresponsible": false }, - "nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false }, - "webSrc": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/web2019.git", "emailresponsible": false } - } - } - } - EOF - ''; -}