about summary refs log tree commit diff
path: root/maintainers
diff options
context:
space:
mode:
authormaralorn <malte.brandy@maralorn.de>2021-05-12 00:01:25 +0200
committerGitHub <noreply@github.com>2021-05-12 00:01:25 +0200
commit00794f2270c27f7097be393320d679726eff622b (patch)
tree3d8749cb047eaa0793dd461dd399af6264d0a0f8 /maintainers
parentbe038cf4f972fef4cfa186c19fe453447900c4cd (diff)
parentac667f26c17670e457b6e8309087729656d7464b (diff)
Merge pull request #122510 from NixOS/haskell-updates
Diffstat (limited to 'maintainers')
-rwxr-xr-xmaintainers/scripts/haskell/hydra-report.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/maintainers/scripts/haskell/hydra-report.hs b/maintainers/scripts/haskell/hydra-report.hs
index 471447e60d578..3772b230f8664 100755
--- a/maintainers/scripts/haskell/hydra-report.hs
+++ b/maintainers/scripts/haskell/hydra-report.hs
@@ -155,7 +155,7 @@ getMaintainerMap = do
    get c p i e = readProcess c p i <&> \x -> either (error . (<> " Raw:'" <> take 1000 x <> "'") . (e <>)) Prelude.id . eitherDecodeStrict' . encodeUtf8 . Text.pack $ x
 
 -- BuildStates are sorted by subjective importance/concerningness
-data BuildState = Failed | DependencyFailed | OutputLimitExceeded | Unknown (Maybe Int) | TimedOut | Canceled | Unfinished | Success deriving (Show, Eq, Ord)
+data BuildState = Failed | DependencyFailed | OutputLimitExceeded | Unknown (Maybe Int) | TimedOut | Canceled | HydraFailure | Unfinished | Success deriving (Show, Eq, Ord)
 
 icon :: BuildState -> Text
 icon = \case
@@ -166,6 +166,7 @@ icon = \case
    TimedOut -> ":hourglass::no_entry_sign:"
    Canceled -> ":no_entry_sign:"
    Unfinished -> ":hourglass_flowing_sand:"
+   HydraFailure -> ":construction:"
    Success -> ":heavy_check_mark:"
 
 platformIcon :: Platform -> Text
@@ -199,10 +200,11 @@ buildSummary maintainerMap = foldl (Map.unionWith unionSummary) Map.empty . fmap
       state = case (finished, buildstatus) of
          (0, _) -> Unfinished
          (_, Just 0) -> Success
+         (_, Just 1) -> Failed
+         (_, Just 2) -> DependencyFailed
+         (_, Just 3) -> HydraFailure
          (_, Just 4) -> Canceled
          (_, Just 7) -> TimedOut
-         (_, Just 2) -> DependencyFailed
-         (_, Just 1) -> Failed
          (_, Just 11) -> OutputLimitExceeded
          (_, i) -> Unknown i
       packageName = fromMaybe job (Text.stripSuffix ("." <> system) job)