Skip to content

Promote gives the Hub's main the version's files - #11

Merged
briney merged 1 commit into
mainfrom
promote-main
Nov 10, 2026
Merged

briney merged 1 commit into
mainfrom
promote-main

Conversation

@briney

@briney briney commented Nov 10, 2026

Copy link
Copy Markdown
Member

The Hub's dataset page and viewer show main, which promote never moved, so every published dataset looked empty there (jaffe-paired, oplm-antibody-sequences, and hello on the dev org: main holds only .gitattributes; each version's files are under its tag).

  • scripts/promote, after tagging, makes one commit on main that deletes what the version lacks and copies in the version's files on the Hub (no upload). Nothing when main already holds them, so a second run stays harmless and running it again backfills a version promoted before this. parent_commit is the main it read, so a concurrent change fails rather than being overwritten. The tag stays the version; main is a copy for browsing, not the tagged commit, since the Hub moves a branch only by a commit. The last line is unchanged, so flyloft needs no change.
  • scripts/push passes delete_patterns="*": a candidate branches from main, which now holds the last version, so what the new output lacks is deleted and the candidate still holds exactly the record's files (.gitattributes the library never deletes; the card is rewritten next).
  • The Hub stub keeps a file tree per commit and gains list_repo_tree and create_commit. Three new tests: a push over a published version holds only the new output; promote gives main the version's files; promote of a version published before main followed moves it. The run-again test also checks no commit is made.
  • DESIGN.md (§3, status line), CONTRIBUTING.md, and AGENTS.md say so.

python3 -I -m unittest discover tests: 46 OK. Not yet run against the real Hub: the backfill of hello on brineylab-dev is the first live run, before jaffe-paired and oplm-antibody-sequences.

🤖 Generated with Claude Code

…page and viewer show it, and a candidate holds only its own output

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@briney
briney merged commit 3c11b47 into main Nov 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant