From 16d3e2dbdcf3bb3b31f50cfddf488648bfc74fd9 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Mon, 6 May 2024 08:06:57 -0600 Subject: [PATCH] co: pipe build output to temp files and tail it from there - update everything --- bin/ci | 8 ++++---- common.sh | 2 +- flake.lock | 30 +++++++++++++++--------------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/bin/ci b/bin/ci index 6fd11d6..94886d5 100755 --- a/bin/ci +++ b/bin/ci @@ -64,8 +64,8 @@ if [ "${1}" = "update" ]; then maybe_new_hash="$(git rev-parse HEAD)" if [ "${current_hash}" != "${maybe_new_hash}" ]; then - if ! nix flake check --print-build-logs; then - handle_update_check_fail "$inp" + if ! nix flake check --print-build-logs 2>/tmp/ci-flake-check-${inp}; then + handle_update_check_fail "$inp" /tmp/ci-flake-check-${inp} continue fi else @@ -83,8 +83,8 @@ if [ "${1}" = "update" ]; then fi done - if ! nix flake check --print-build-logs; then - handle_update_check_fail "$ci_branch" + if ! nix flake check --print-build-logs 2>/tmp/ci-flake-check; then + handle_update_check_fail "$ci_branch" /tmp/ci-flake-check exit 1 fi diff --git a/common.sh b/common.sh index 7a894ba..57fa460 100644 --- a/common.sh +++ b/common.sh @@ -142,7 +142,7 @@ handle_check_fail() { } handle_update_check_fail() { - _po "CI: flake checks failed while updating $1!" "$(get_journal xin-ci-update)" + _po "CI: checks for $1 failed!" "$(tail -n 30 $2)" } handle_merge_fail() { diff --git a/flake.lock b/flake.lock index aa2c4d2..efba8f0 100644 --- a/flake.lock +++ b/flake.lock @@ -265,11 +265,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1714465198, - "narHash": "sha256-ySkEJvS0gPz2UhXm0H3P181T8fUxvDVcoUyGn0Kc5AI=", + "lastModified": 1714984131, + "narHash": "sha256-kjIvFbbKb6RGIJyOgcF+BBWHNzhNSNqRTxX/SkrkRno=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "68d680c1b7c0e67a9b2144d6776583ee83664ef4", + "rev": "e148ccbecbd2fe4dc4768fba67f6db828466ad06", "type": "github" }, "original": { @@ -441,11 +441,11 @@ ] }, "locked": { - "lastModified": 1713892811, - "narHash": "sha256-uIGmA2xq41vVFETCF1WW4fFWFT2tqBln+aXnWrvjGRE=", + "lastModified": 1714878026, + "narHash": "sha256-YJ1k/jyd6vKqmVgGkkAb4n+ZfPPAt8+L5a73eAThqFU=", "owner": "Mic92", "repo": "sops-nix", - "rev": "f1b0adc27265274e3b0c9b872a8f476a098679bd", + "rev": "10dc39496d5b027912038bde8d68c836576ad0bc", "type": "github" }, "original": { @@ -456,11 +456,11 @@ }, "stable": { "locked": { - "lastModified": 1714641055, - "narHash": "sha256-ueo9bm1l4edWdZWgmaSAD3dYtVfXqYxnWehXk7/+WSs=", + "lastModified": 1714971268, + "narHash": "sha256-IKwMSwHj9+ec660l+I4tki/1NRoeGpyA2GdtdYpAgEw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "aadb630a1805df911f19c03cacd121501ac9582a", + "rev": "27c13997bf450a01219899f5a83bd6ffbfc70d3c", "type": "github" }, "original": { @@ -547,11 +547,11 @@ }, "unstable": { "locked": { - "lastModified": 1714710895, - "narHash": "sha256-V/Cx6KUPwLQblwwX8yOdnBtX9nI95Y6/HgX2XqBN0Bk=", + "lastModified": 1715003352, + "narHash": "sha256-1hRttwidMwjQynvPTFiD8xy5o0JI9s6IjMPNMyM16h8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "11335dd4929c848b5e20e9f3cab66df44384ce0e", + "rev": "f9ae6eb42758fcf324018b025527937c1d553789", "type": "github" }, "original": { @@ -562,11 +562,11 @@ }, "unstableSmall": { "locked": { - "lastModified": 1714692658, - "narHash": "sha256-uQ9OZqZlta17wJJP8stkLQW3CvLnIcNX2A6SSoBFSkI=", + "lastModified": 1714964720, + "narHash": "sha256-4Tg5U3g5lh+yVjdPQ6qqMJbvILs30Jlsnq5xIasQ8+0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "49050352f602fe87d16ff7b2b6a05b79eb20dc6f", + "rev": "6ff120a5ca35080f0cb6c1101e7219802b089574", "type": "github" }, "original": {