Skip to content

Plan: fix import.sh bugs found during manual run - #179

Open
mustyoshi wants to merge 2 commits into
masterfrom
claude/import-script-fix-plan
Open

Plan: fix import.sh bugs found during manual run#179
mustyoshi wants to merge 2 commits into
masterfrom
claude/import-script-fix-plan

Conversation

@mustyoshi

Copy link
Copy Markdown
Collaborator

Summary

  • Documents findings from a manual run of import.sh on the parser host: a dead/rejected CONGRESS_API_KEY (sponsors import fully failing with 403s), missing docker rm calls between steps causing container-name collisions that silently skip the releases step, a batch of action-parser errors during the actions step, and broken cron-failure email notifications.
  • Proposes a fix order: docker rm gaps first (cheap, currently skipping real work every run), then the API key, then cron notifications, then triage the parser error volume.

Test plan

  • N/A — planning doc only, no code changes

🤖 Generated with Claude Code

https://claude.ai/code/session_01HW6S5VWQfLtrN7995xfh6y

mustyoshi and others added 2 commits August 16, 2026 15:38
Manual run of import.sh on the parser host surfaced a dead CONGRESS_API_KEY
(sponsors import fully failing), a container-name collision that silently
skips the releases step, and broken cron failure notifications.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HW6S5VWQfLtrN7995xfh6y
Every docker run --name congress-bill-parser step now uses --rm so it
always cleans itself up, instead of relying on manual `docker rm` calls
that were missing between prompts->bioguide and sponsors->releases and
caused those steps to be silently skipped on name conflicts. Also fixed
the bills step to reference ${CONGRESS_API_KEY}/${DISCORD_WEBHOOK} like
every other step instead of hardcoding the key literally.

Also corrects the plan doc: the sponsors-step 403s observed during the
manual test run are most likely explained by that run being started
without the CONGRESS_API_KEY env var cron normally supplies, not proof
the key itself is dead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HW6S5VWQfLtrN7995xfh6y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant