From 7b2eb9bab660a8e239a3f95b33ba963bcbde182b Mon Sep 17 00:00:00 2001 From: Jeremy Eder Date: Thu, 26 Mar 2026 16:05:08 -0400 Subject: [PATCH] Fix test: skip scrum_team_board check when using acme data The scrum_team_board table is conditionally populated from a "Scrum Team Boards" XLSX tab. The acme example data doesn't include this tab, so skip the check only when acme data is the source. Non-acme deployments still fail if the table is empty. Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/test.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index a12e134..53e3754 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -65,12 +65,20 @@ sys.exit(0 if result == 'ok' else 1) # 5. Key tables populated for table in person jira_issue feature release_schedule governance_document scrum_team_board; do - run "table: $table has rows" uv run python3 -c " -import sqlite3, sys + ROW_COUNT=$(uv run python3 -c " +import sqlite3 conn = sqlite3.connect('$DB_PATH') -count = conn.execute('SELECT COUNT(*) FROM $table').fetchone()[0] -sys.exit(0 if count > 0 else 1) -" +print(conn.execute('SELECT COUNT(*) FROM $table').fetchone()[0]) +") + if [ "$ROW_COUNT" -gt 0 ]; then + printf "%-40s%s\n" "table: $table has rows" "PASS" + PASS=$((PASS + 1)) + elif [ "$table" = "scrum_team_board" ] && ls "$REPO_ROOT"/data/acme-*.xlsx > /dev/null 2>&1; then + printf "%-40s%s\n" "table: $table has rows" "SKIP (acme data lacks tab)" + else + printf "%-40s%s\n" "table: $table has rows" "FAIL" + FAIL=$((FAIL + 1)) + fi done # 6. Schema diff