Skip to content

fix(ci): sync to bucket before zip-push to preserve extracted files#782

Merged
rtrompier merged 1 commit into
mainfrom
fix/sync-before-zip
Apr 17, 2026
Merged

fix(ci): sync to bucket before zip-push to preserve extracted files#782
rtrompier merged 1 commit into
mainfrom
fix/sync-before-zip

Conversation

@rtrompier
Copy link
Copy Markdown
Contributor

Summary

  • Move the Sync to bucket step before Push to dataset (legacy) so the bucket receives the full extracted tree (./<package>/main/**), not just main.zip and _versions.yml.
  • Split the notebooks commit logic into its own step (previously nested inside Sync to bucket).

Why

The doc-builder push step replaces the build output with a zip (main.zip) and _versions.yml, so the subsequent hf sync only sees those 2 files. As a result, for all doc packages now served from hf-doc-build/doc via the bucket-backed deploy (moon-landing prod-hub-doc), the main/ directory in the bucket has not been refreshed on merges since the migration.

Concretely: huggingface/hub-docs#2400 merged at 2026-04-17 11:55 UTC, workflow ran successfully, the bucket sync step reported Uploads: 2 (the zip + versions), but the individual .html / .md under hub/main/en/ were never uploaded. Prod still serves the pre-migration content.

By running the bucket sync first, the full extracted tree is uploaded, and the legacy zip push still runs afterwards so the Dataset-based rollback path stays intact.

The 'Push to dataset (legacy)' step replaces the build output with a
zip ('main.zip') and '_versions.yml', so the subsequent 'Sync to bucket'
step only sees those 2 files and the extracted HTML/MD never reaches
hf-doc-build/doc. As a result, the bucket-backed doc deployment has
been frozen on stale content: its 'main/' directory is not refreshed on
each merge.

Fix: run the sync before the zip-push so the bucket receives the full
extracted tree (./<package>/main/**). Also split the notebooks handling
into its own step (previously nested inside 'Sync to bucket').
@rtrompier rtrompier requested a review from mishig25 April 17, 2026 12:48
@rtrompier rtrompier marked this pull request as ready for review April 17, 2026 12:49
@rtrompier rtrompier merged commit 2f8115f into main Apr 17, 2026
4 checks passed
@rtrompier rtrompier deleted the fix/sync-before-zip branch April 17, 2026 12:50
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.

2 participants