Skip to content

Migrate all scripts under scripts/ folder #517

Description

@chetanr25

Migrate ops/dev helpers into scripts/

Context

Today the Makefile reaches into the running container for one-off tasks (pull model, run tests, exec scripts). That logic lives inline in the Makefile and only works through docker. Moving it into standalone scripts lets the same logic run inside or outside a container and keeps the Makefile thin.

Goal

scripts/
  pull-model.sh       # guarded ollama pull (skip if model already present)
  reset-db.sh         # delete fireform.db and re-init
  seed-templates.py   # load example template(s) into a fresh DB
  smoke.sh            # curl the API endpoints, fail on any non-2xx

Tasks

  • pull-model.sh: pull the extraction model into ollama, skip if it already exists (no redundant downloads). Honor an OLLAMA_MODEL override.
  • reset-db.sh: remove fireform.db and re-run init.
  • seed-templates.py: load example template JSON into a fresh DB.
  • smoke.sh: hit the key endpoints, exit non-zero on failure.
  • Make scripts runnable both standalone and from within docker where relevant.

Part of #512

Activity

  1. added a commit that references this issue on Jun 3, 2026
    e26a0ff
  2. chetanr25 commented on Jun 7, 2026

    @chetanr25
    CollaboratorAuthor

    Close as completed in #525

  3. moved this from Week X Ready to Merge to Week X Done in 🚀 GSoC '26 | 16-Week Engineering Trackon Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions