setup
checks.x86_64-linux.pre-commit
· build #991
· raw
1this derivation will be built:2 /nix/store/3265484h67rhxyry2fnf8lz9r1slcw3s-pre-commit-run.drv3error: Cannot build '/nix/store/3265484h67rhxyry2fnf8lz9r1slcw3s-pre-commit-run.drv'.4 Reason: builder failed with exit code 1.5 Output paths:6 /nix/store/cdfz5jy0ws469qmhz08vlnp635v4c7rw-pre-commit-run7 Last 25 log lines:8 > + nix run .#image-size-analyzer -- --image Dockerfile-17 --json > base-sizes.json9 > + git checkout -10 > +11 > + - name: Compare sizes12 > + run: |13 > + PR_SIZE=$(jq -r '.images[0].total_size_bytes' pr-sizes.json)14 > + BASE_SIZE=$(jq -r '.images[0].total_size_bytes' base-sizes.json)15 > +16 > + DIFF=$((PR_SIZE - BASE_SIZE))17 > + DIFF_MB=$((DIFF / 1048576))18 > +19 > + # Allow up to 50MB increase20 > + MAX_INCREASE=5242880021 > +22 > + if [ "$DIFF" -gt "$MAX_INCREASE" ]; then23 > + echo "ERROR: Image size increased by ${DIFF_MB}MB (max allowed: 50MB)"24 > + echo "Base: $((BASE_SIZE / 1048576))MB"25 > + echo "PR: $((PR_SIZE / 1048576))MB"26 > + exit 127 > + fi28 > +29 > + echo "Size change: ${DIFF_MB}MB"30 > ```31 > 32 > ---33 For full logs, run:34 nix log /nix/store/3265484h67rhxyry2fnf8lz9r1slcw3s-pre-commit-run.drv