Mirror 346f355 from github.com/open-reaction-database/ord-data
Browse files
README.md
CHANGED
|
@@ -577,12 +577,14 @@ for the data:
|
|
| 577 |
### For maintainers (CI)
|
| 578 |
|
| 579 |
Freshly pushed objects are not on the Hugging Face mirror until the post-merge
|
| 580 |
-
mirror job runs, so CI and the mirror
|
| 581 |
-
at runtime (`git config lfs.url …`):
|
| 582 |
-
|
| 583 |
-
- [`validation.yml`](.github/workflows/validation.yml) pulls
|
| 584 |
-
|
| 585 |
-
|
|
|
|
|
|
|
| 586 |
- [`submission.yml`](.github/workflows/submission.yml) reads from GitHub so fork
|
| 587 |
and branch submissions are validated before their bytes reach Hugging Face.
|
| 588 |
The published versions of datasets a submission modifies are already on the
|
|
@@ -608,9 +610,27 @@ maintainer PRs that touch dataset files but should *not* be re-processed
|
|
| 608 |
this way — e.g., format conversions or mass migrations of already-finalized
|
| 609 |
data — apply the `skip-update-submission` label to the PR. The label skips
|
| 610 |
only the rewrite: `Validate submission` runs in its place, so the changed
|
| 611 |
-
datasets are still validated before merge, and
|
| 612 |
-
[`validation.yml`](.github/workflows/validation.yml)
|
| 613 |
-
merge to `main`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 614 |
|
| 615 |
### Converting datasets to Parquet
|
| 616 |
|
|
@@ -639,8 +659,8 @@ git rm data/*/*.pb.gz # keep only the Parquet versions
|
|
| 639 |
|
| 640 |
Commit the new `.parquet` files (they become LFS objects), push them (see
|
| 641 |
[Pushing new LFS objects](#pushing-new-lfs-objects)), and open the PR with the
|
| 642 |
-
`skip-update-submission` label.
|
| 643 |
-
merge to `main`.
|
| 644 |
|
| 645 |
### Pushing new LFS objects
|
| 646 |
|
|
|
|
| 577 |
### For maintainers (CI)
|
| 578 |
|
| 579 |
Freshly pushed objects are not on the Hugging Face mirror until the post-merge
|
| 580 |
+
mirror job runs, so CI and the mirror read them from GitHub, overriding the read
|
| 581 |
+
endpoint at runtime (`git config lfs.url …`):
|
| 582 |
+
|
| 583 |
+
- [`validation.yml`](.github/workflows/validation.yml) pulls the datasets a
|
| 584 |
+
change adds or modifies from GitHub. A run over the whole corpus reads the
|
| 585 |
+
Hugging Face mirror first and takes from GitHub only what the mirror lacks;
|
| 586 |
+
git lfs checks each object against its pointer, so the mirror cannot serve
|
| 587 |
+
different bytes. Each matrix shard pulls only its own objects.
|
| 588 |
- [`submission.yml`](.github/workflows/submission.yml) reads from GitHub so fork
|
| 589 |
and branch submissions are validated before their bytes reach Hugging Face.
|
| 590 |
The published versions of datasets a submission modifies are already on the
|
|
|
|
| 610 |
this way — e.g., format conversions or mass migrations of already-finalized
|
| 611 |
data — apply the `skip-update-submission` label to the PR. The label skips
|
| 612 |
only the rewrite: `Validate submission` runs in its place, so the changed
|
| 613 |
+
datasets are still validated before merge, and
|
| 614 |
+
[`validation.yml`](.github/workflows/validation.yml) validates them as well, on
|
| 615 |
+
the pull request and again on merge to `main`.
|
| 616 |
+
|
| 617 |
+
### When validation runs
|
| 618 |
+
|
| 619 |
+
[`validation.yml`](.github/workflows/validation.yml) validates what a change
|
| 620 |
+
can affect, on pull requests and on pushes to `main`:
|
| 621 |
+
|
| 622 |
+
- **the whole corpus** when `validation.yml` or the validation environment
|
| 623 |
+
changes, or on a manual run (`gh workflow run validation.yml`, optionally with
|
| 624 |
+
`--ref <branch>`);
|
| 625 |
+
- otherwise **the datasets the change adds or modifies** under `data/`, and
|
| 626 |
+
nothing when there are none.
|
| 627 |
+
|
| 628 |
+
The validation environment is the Python in `.python-version` plus ord-schema
|
| 629 |
+
and every package it depends on, as `uv.lock` resolves them. A `uv.lock` change
|
| 630 |
+
confined to other packages does not count, and neither does a fork's: a pull
|
| 631 |
+
request from a fork is validated in its base branch's environment. There is no
|
| 632 |
+
scheduled run: a manual run covers what the repository does not pin, such as
|
| 633 |
+
the Python patch release that `uv` picks for `.python-version`.
|
| 634 |
|
| 635 |
### Converting datasets to Parquet
|
| 636 |
|
|
|
|
| 659 |
|
| 660 |
Commit the new `.parquet` files (they become LFS objects), push them (see
|
| 661 |
[Pushing new LFS objects](#pushing-new-lfs-objects)), and open the PR with the
|
| 662 |
+
`skip-update-submission` label. `validation.yml` validates the converted
|
| 663 |
+
datasets on the pull request and again on merge to `main`.
|
| 664 |
|
| 665 |
### Pushing new LFS objects
|
| 666 |
|