Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 325aae1

Browse files
committedMar 17, 2025
nixos/nixos: fix race condition in hydra-compress-logs
Source NixOS/hydra#1450
1 parent ddf633f commit 325aae1

File tree

1 file changed

+1
-1
lines changed
  • nixos/modules/services/continuous-integration/hydra

1 file changed

+1
-1
lines changed
 

‎nixos/modules/services/continuous-integration/hydra/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ in
520520
elif [[ $compression == zstd ]]; then
521521
compressionCmd=(zstd --rm)
522522
fi
523-
find ${baseDir}/build-logs -type f -name "*.drv" -mtime +3 -size +0c -print0 | xargs -0 -r "''${compressionCmd[@]}" --force --quiet
523+
find ${baseDir}/build-logs -ignore_readdir_race -type f -name "*.drv" -mtime +3 -size +0c -print0 | xargs -0 -r "''${compressionCmd[@]}" --force --quiet
524524
'';
525525
startAt = "Sun 01:45";
526526
serviceConfig.Slice = "system-hydra.slice";

0 commit comments

Comments
 (0)
Please sign in to comment.