From a331f4b349e573df997e77fb802ecd69754a2c44 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Thu, 22 Jan 2026 01:38:00 -0500 Subject: [PATCH] update script, add gitignore --- .gitignore | 2 ++ regenerate_fixtures.sh | 49 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .gitignore create mode 100755 regenerate_fixtures.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7be0be --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.coverage* + diff --git a/regenerate_fixtures.sh b/regenerate_fixtures.sh new file mode 100755 index 0000000..729bb4b --- /dev/null +++ b/regenerate_fixtures.sh @@ -0,0 +1,49 @@ +#!/bin/bash +set -e + +# Ensure credentials are present +if [ -z "$FAMILYSEARCH_USER" ]; then + echo "Error: FAMILYSEARCH_USER not set" + exit 1 +fi + +testdata_dir="$(dirname "$0")" +mkdir -p "$testdata_dir/.tmp" + +echo "========================================" +echo "Regenerating Fixtures for Part 1 (Ada)" +echo "========================================" +export GMA_CACHE_DIR="$testdata_dir/fixtures/part1" +# Clear existing to ensure clean state +rm -rf "$GMA_CACHE_DIR" +mkdir -p "$GMA_CACHE_DIR" + +python3 -m coverage run -p -m getmyancestors --verbose \ + -u "$FAMILYSEARCH_USER" \ + -i "29HC-P5H" \ + -a 3 -d 2 \ + --rate-limit 1 --cache --no-cache-control \ + --creation-date "2026-01-01T12:00:00" \ + -o "$testdata_dir/.tmp/regenerate_part1.ged" + +echo "" +echo "========================================" +echo "Regenerating Fixtures for Part 2 (Marie Curie)" +echo "========================================" +export GMA_CACHE_DIR="$testdata_dir/fixtures/part2" +# Clear existing +rm -rf "$GMA_CACHE_DIR" +mkdir -p "$GMA_CACHE_DIR" + +python3 -m coverage run -p -m getmyancestors --verbose \ + -u "$FAMILYSEARCH_USER" \ + -i "LC5H-V1Z" \ + -a 3 -d 2 \ + --rate-limit 1 --cache --no-cache-control \ + --creation-date "2026-01-01T12:00:00" \ + -o "$testdata_dir/.tmp/regenerate_part2.ged" + +echo "" +echo "✅ Regeneration Complete!" +echo "Part 1 Cache: $testdata_dir/fixtures/part1" +echo "Part 2 Cache: $testdata_dir/fixtures/part2" -- 2.52.0