Skip to content

HF prerequisites: create sumpalabs/petrodb dataset repo, stage branch, HF_TOKEN secret, BASE_URL vars #36

Description

@oskrgab

What to build

One-time account/settings setup that unblocks the Hugging Face migration (ADR-0005). These are manual actions an agent cannot perform without credentials.

Status (2026-06-15) — GitHub transfer done, HF scaffolding partly done.

  • The GitHub repo has been transferred to the sumpalabs orgsumpalabs/petrodb. The old oskrgab/petrodb path redirects, but all secrets/variables below must be created under github.com/sumpalabs/petrodb → Settings → Secrets and variables → Actions (repo-level). Existing Cloudflare secrets carried over with the transfer; HF_TOKEN + BASE_URL_* are new and do not exist yet.
  • On Hugging Face, the sumpalabs org and the sumpalabs/petrodb dataset repo already exist (no data pushed yet). Remaining: the stage branch, the HF_TOKEN secret, and the BASE_URL_* variables.

Remaining manual actions:

  • Create the Hugging Face dataset repo sumpalabs/petrodbdone (monorepo mirroring the parquet/ root).
  • Create a stage branch in that HF repo alongside main. (CI in CI uploads parquet data to Hugging Face on push (data path tracer bullet) #37 can also create it on first push; do it here only if you want it to exist up front.)
  • Generate a fine-grained, write-scoped HF access token from an account with write access to the sumpalabs HF org, limited to the sumpalabs/petrodb dataset; add it as a GitHub Actions secret named HF_TOKEN on sumpalabs/petrodb.
  • Set GitHub Actions variables on sumpalabs/petrodb: BASE_URL_MAIN = https://huggingface.co/datasets/sumpalabs/petrodb/resolve/main and BASE_URL_STAGE = https://huggingface.co/datasets/sumpalabs/petrodb/resolve/stage.

Acceptance criteria

  • sumpalabs/petrodb exists as a public HF dataset repo (org + dataset already created; main exists by default)
  • stage branch exists in the HF dataset repo alongside main
  • HF_TOKEN secret present on sumpalabs/petrodb (fine-grained, write, scoped to sumpalabs/petrodb)
  • BASE_URL_MAIN and BASE_URL_STAGE variables set on sumpalabs/petrodb to the HF resolve bases above
  • A manual curl -A 'Mozilla/5.0' -H 'Range: bytes=0-99' -sI <a test parquet resolve URL> returns 206 + Content-Range (confirms HF honors Range as expected)

Blocked by

None - can start immediately

Context: ADR-0005 (docs/adr/0005-host-parquet-on-huggingface.md), CONTEXT.md "PetroDB — hosting & environments".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions