Skip to content

Match bare and @main hf:// year-file sources, and bump the year-file stamp revision #786

Backlog

Description

@MaxGhenis

Two gaps in the year-file source checks from #763:

  1. URI spellings. _year_file_locations compares resolved paths for local files and raw strings for remote URIs (source). A bare hf:// URI and the same URI with @main count as two sources with one result stem, so create_datasets, load_datasets and ensure_datasets refuse the batch. Treat a bare hf:// URI as @main when computing the identity, and add a case beside test_same_local_source_spellings_share_year_file.
  2. Stamp revision. The year-file stamp gained a source_sha256 key without a bump to YEAR_FILE_STAMP_REVISION. Earlier releases require the stamp to hold exactly register and revision, so they call the new stamp malformed and rebuild year files in a data folder that two versions share. Bump the revision, or have the reader accept the extra key. The Hypothesis oracle in tests/test_us_year_file_stamp.py also needs the new key.

#591 tracks the broader binding of year files to their source.

Activity

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions