Document local-artifact exclusion for syncs
Browse files- meta/DISTRIBUTION.md +1 -0
meta/DISTRIBUTION.md
CHANGED
|
@@ -36,6 +36,7 @@ The Hugging Face dataset [`datasets/cy0307/awesome-loop-engineering`](https://hu
|
|
| 36 |
- The HF copy of `README.md` is a focused dataset card generated from `meta/hf_card_header.yaml` and `meta/hf_card_body.md` by `scripts/build_hf_card.py`. It documents intended uses, evidence fields, limitations, loading examples, and the latest link status without duplicating the 730-row GitHub README.
|
| 37 |
- The YAML header is **HF-only**: it must never be added to the GitHub `README.md`, because the metadata list items break `awesome-lint`.
|
| 38 |
- Sync uses `python3 scripts/build_hf_card.py --output <staging>/README.md` followed by `hf upload --type dataset` against a staging copy. The token lives in the local Hugging Face cache; no token is committed.
|
|
|
|
| 39 |
- **Always pass `--exclude "README.md"` to the full-tree upload.** The GitHub `README.md` carries no YAML header, so uploading it to the dataset repository overwrites the card and removes the `configs` block. The dataset is then briefly configured with no explicit data file while `data/resources.csv`, `data/resources.jsonl`, and `data/resources.parquet` all sit in `data/`, which queues a dataset-viewer job that cannot resolve a split and leaves the viewer stuck on "should be available soon" even after the card is restored. Upload the generated card and `data/resources.parquet` in the same pass so the repository never holds a card and a shard that disagree.
|
| 40 |
|
| 41 |
## GitHub-Native Promotion
|
|
|
|
| 36 |
- The HF copy of `README.md` is a focused dataset card generated from `meta/hf_card_header.yaml` and `meta/hf_card_body.md` by `scripts/build_hf_card.py`. It documents intended uses, evidence fields, limitations, loading examples, and the latest link status without duplicating the 730-row GitHub README.
|
| 37 |
- The YAML header is **HF-only**: it must never be added to the GitHub `README.md`, because the metadata list items break `awesome-lint`.
|
| 38 |
- Sync uses `python3 scripts/build_hf_card.py --output <staging>/README.md` followed by `hf upload --type dataset` against a staging copy. The token lives in the local Hugging Face cache; no token is committed.
|
| 39 |
+
- **Upload from a clean checkout, and exclude local artifacts.** `hf upload` mirrors the working directory as it is on disk, so a sync run from a working copy that holds untracked build or QA output publishes that output too, and later syncs never remove it because the CLI does not delete. A July 2026 sync pushed 79 browser-automation files (`.playwright-cli/` console logs and element captures, `output/playwright/` screenshots) that were never part of the GitHub tree; they were removed with `hf repos delete-files`. Sync from a fresh clone, and pass `--exclude ".playwright-cli/*" --exclude "output/*"` alongside the existing exclusions.
|
| 40 |
- **Always pass `--exclude "README.md"` to the full-tree upload.** The GitHub `README.md` carries no YAML header, so uploading it to the dataset repository overwrites the card and removes the `configs` block. The dataset is then briefly configured with no explicit data file while `data/resources.csv`, `data/resources.jsonl`, and `data/resources.parquet` all sit in `data/`, which queues a dataset-viewer job that cannot resolve a split and leaves the viewer stuck on "should be available soon" even after the card is restored. Upload the generated card and `data/resources.parquet` in the same pass so the repository never holds a card and a shard that disagree.
|
| 41 |
|
| 42 |
## GitHub-Native Promotion
|