CICD-192 · Record artifact sizes
Encyclopedia · CI diagnostics and evidence · All snippets
Previous · CICD-191 · Next · CICD-193
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites authorized fixture run and sanitized evidence location.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
du -h dist/*
wc -c dist/* > artifact-bytes.txt3. How it works
du reports disk allocation and wc records logical byte counts. Use the latter for a stable evidence file and inspect unusually large artifacts separately.
4. Verify the result
Compare archive contents and sizes against a known-good candidate.
Validation syntax-validated (Bash parse). Status definitions.