co: pipe build output to temp files and tail it from there

- update everything
This commit is contained in:
Aaron Bieber 2024-05-06 08:06:57 -06:00
parent 659c7d7d73
commit 16d3e2dbdc
No known key found for this signature in database
3 changed files with 20 additions and 20 deletions

8
bin/ci
View File

@ -64,8 +64,8 @@ if [ "${1}" = "update" ]; then
maybe_new_hash="$(git rev-parse HEAD)" maybe_new_hash="$(git rev-parse HEAD)"
if [ "${current_hash}" != "${maybe_new_hash}" ]; then if [ "${current_hash}" != "${maybe_new_hash}" ]; then
if ! nix flake check --print-build-logs; then if ! nix flake check --print-build-logs 2>/tmp/ci-flake-check-${inp}; then
handle_update_check_fail "$inp" handle_update_check_fail "$inp" /tmp/ci-flake-check-${inp}
continue continue
fi fi
else else
@ -83,8 +83,8 @@ if [ "${1}" = "update" ]; then
fi fi
done done
if ! nix flake check --print-build-logs; then if ! nix flake check --print-build-logs 2>/tmp/ci-flake-check; then
handle_update_check_fail "$ci_branch" handle_update_check_fail "$ci_branch" /tmp/ci-flake-check
exit 1 exit 1
fi fi

View File

@ -142,7 +142,7 @@ handle_check_fail() {
} }
handle_update_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() { handle_merge_fail() {

30
flake.lock generated
View File

@ -265,11 +265,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1714465198, "lastModified": 1714984131,
"narHash": "sha256-ySkEJvS0gPz2UhXm0H3P181T8fUxvDVcoUyGn0Kc5AI=", "narHash": "sha256-kjIvFbbKb6RGIJyOgcF+BBWHNzhNSNqRTxX/SkrkRno=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "68d680c1b7c0e67a9b2144d6776583ee83664ef4", "rev": "e148ccbecbd2fe4dc4768fba67f6db828466ad06",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -441,11 +441,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713892811, "lastModified": 1714878026,
"narHash": "sha256-uIGmA2xq41vVFETCF1WW4fFWFT2tqBln+aXnWrvjGRE=", "narHash": "sha256-YJ1k/jyd6vKqmVgGkkAb4n+ZfPPAt8+L5a73eAThqFU=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "f1b0adc27265274e3b0c9b872a8f476a098679bd", "rev": "10dc39496d5b027912038bde8d68c836576ad0bc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -456,11 +456,11 @@
}, },
"stable": { "stable": {
"locked": { "locked": {
"lastModified": 1714641055, "lastModified": 1714971268,
"narHash": "sha256-ueo9bm1l4edWdZWgmaSAD3dYtVfXqYxnWehXk7/+WSs=", "narHash": "sha256-IKwMSwHj9+ec660l+I4tki/1NRoeGpyA2GdtdYpAgEw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "aadb630a1805df911f19c03cacd121501ac9582a", "rev": "27c13997bf450a01219899f5a83bd6ffbfc70d3c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -547,11 +547,11 @@
}, },
"unstable": { "unstable": {
"locked": { "locked": {
"lastModified": 1714710895, "lastModified": 1715003352,
"narHash": "sha256-V/Cx6KUPwLQblwwX8yOdnBtX9nI95Y6/HgX2XqBN0Bk=", "narHash": "sha256-1hRttwidMwjQynvPTFiD8xy5o0JI9s6IjMPNMyM16h8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "11335dd4929c848b5e20e9f3cab66df44384ce0e", "rev": "f9ae6eb42758fcf324018b025527937c1d553789",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -562,11 +562,11 @@
}, },
"unstableSmall": { "unstableSmall": {
"locked": { "locked": {
"lastModified": 1714692658, "lastModified": 1714964720,
"narHash": "sha256-uQ9OZqZlta17wJJP8stkLQW3CvLnIcNX2A6SSoBFSkI=", "narHash": "sha256-4Tg5U3g5lh+yVjdPQ6qqMJbvILs30Jlsnq5xIasQ8+0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "49050352f602fe87d16ff7b2b6a05b79eb20dc6f", "rev": "6ff120a5ca35080f0cb6c1101e7219802b089574",
"type": "github" "type": "github"
}, },
"original": { "original": {