SPB Git

spb/firc0001_uqo

Public
2.5 KB · 33 lines shellscript
1#!/bin/bash2# N12 - environment lock of the master node's venv (uv-managed, no pip): requirements.lock, .python-version, environment.md3set -u4OUT="$HOME/firc0001_review/results/env"; mkdir -p "$OUT"5VENV="$HOME/UQO_RESEARCH_DB/.venv"6cd "$HOME/UQO_RESEARCH_DB" || exit 17uv pip freeze --python "$VENV/bin/python" > "$OUT/requirements.lock" 2> "$OUT/uv_freeze.err"8"$VENV/bin/python" -c 'import sys; print(".".join(map(str, sys.version_info[:3])))' > "$OUT/.python-version"9{10echo "# Environment of the master node (M3U96b) used for the SPID extraction and for every Stage D audit"11echo12echo "Generated $(date -Iseconds) by code/audit/a12_env_lock.sh (read-only)."13echo14echo '```'15echo "hostname: $(hostname)"16sw_vers 2>/dev/null17echo "hw.model: $(sysctl -n hw.model)"; echo "machdep.cpu.brand_string: $(sysctl -n machdep.cpu.brand_string 2>/dev/null)"18echo "hw.ncpu: $(sysctl -n hw.ncpu)  hw.memsize: $(( $(sysctl -n hw.memsize) / 1024 / 1024 / 1024 )) GB"19echo "python: $($VENV/bin/python -V 2>&1)   ($(cat $VENV/pyvenv.cfg | tr '\n' ';'))"20echo "uv: $(uv --version 2>/dev/null)"21echo "duckdb (python): $($VENV/bin/python -c 'import duckdb; print(duckdb.__version__)')"22echo "pyarrow: $($VENV/bin/python -c 'import pyarrow; print(pyarrow.__version__)')   numpy: $($VENV/bin/python -c 'import numpy; print(numpy.__version__)')   pandas: $($VENV/bin/python -c 'import pandas; print(pandas.__version__)')   matplotlib: $($VENV/bin/python -c 'import matplotlib; print(matplotlib.__version__)')   httpx: $($VENV/bin/python -c 'import httpx; print(httpx.__version__)')"23echo "packages in venv: $(wc -l < $OUT/requirements.lock)"24echo "git HEAD of ~/UQO_RESEARCH_DB: $(git rev-parse --short HEAD)  (paper cites 2324b58)"25echo "DuckDB files: $(ls -l $HOME/UQO_RESEARCH_DB/project-db/data/db/spid.duckdb | awk '{print $5, $6, $7, $8}')  |  $(ls -l $HOME/UQO_RESEARCH_DB/data/duckdb/edgar_research.duckdb | awk '{print $5, $6, $7, $8}')"26echo "laptop exhibits: python3 -I code/make_tables.py (matplotlib pinned in requirements-exhibits.txt by L6)"27echo '```'28echo29echo "Audit settings: \`nice -n 10\`, \`OMP_NUM_THREADS=4\`, DuckDB \`SET threads=4\`, \`SET memory_limit='24GB'\`, \`read_only=True\`, seed 20261105."30echo "Expected runtimes on this node (Stage D, measured): a01 12 s · a02 217 s · a03 2 s · a04 32 s · a05 see results/focus/manifest.json · a06 < 10 s · a07 see manifest · a08 see manifest · a09 < 10 s · a10 < 10 s."31} > "$OUT/environment.md"32cat "$OUT/environment.md"; head -3 "$OUT/requirements.lock"; cat "$OUT/uv_freeze.err"33
Files · 626579ecc632db9471ed812f29c10ca85bc6ed47
Menu

Theme