15 lines
635 B
Bash
15 lines
635 B
Bash
#!/usr/bin/env bash
|
|
# CHECK -- 2026-11-01 per-user post census (Extract lane).
|
|
#
|
|
# Default: grade the committed snapshot offline -- CSV and MD must be
|
|
# byte-identical re-renderings of the committed JSON, and the JSON must be
|
|
# internally consistent (key set, six fields per row, ids 1..N, n_users,
|
|
# total_posts).
|
|
# --live: additionally re-derive from JSONPlaceholder and grade the snapshot
|
|
# against the API (rc 2 when the source is unreachable).
|
|
#
|
|
# Exit codes: 0 = PASS, 1 = artifact drift, 2 = cannot grade / source down.
|
|
set -u
|
|
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
exec python3 "$HERE/grade_posts_census.py" "$@"
|