Skip to content

ci(release): sync ui-concepts/ → data/ before buildfs so releases ship the latest UI - #37

Merged
bring42 merged 1 commit into
mainfrom
claude/ci-sync-web-on-release
Jul 24, 2026
Merged

ci(release): sync ui-concepts/ → data/ before buildfs so releases ship the latest UI#37
bring42 merged 1 commit into
mainfrom
claude/ci-sync-web-on-release

Conversation

@bring42

@bring42 bring42 commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Problem

The OTA release build packages web assets from the committed data/, but the UI source of truth is ui-concepts/ (copied into data/ by scripts/sync_web.py — a manual step). If someone edits the UI and forgets to sync, a tagged release ships a stale UI. (This just bit us: the modular-panels/theming UI merged in #36 lives in ui-concepts/ but data/ was never re-synced.)

Fix

Run scripts/sync_web.py in release.yml before the per-board buildfs step, so the LittleFS image always reflects the latest ui-concepts/ at the tagged commit. .gz are gitignored and regenerated by the buildfs gzip pre-hook, so nothing drifts.

Deliberately unchanged

The tag-to-release trigger stays manual — cutting a release is still a deliberate human action (you don't want every merge auto-flashing field devices). Only the sync is automated.

Verified

Ran python3 scripts/sync_web.py locally: regenerates data/ correctly (new modular UI + Space Grotesk present). YAML validated.

Follow-up (parked, not in this PR): rename ui-concepts/ → it's production source now, not "concepts" — per architecture notes.

🤖 Generated with Claude Code

…mage

The release build packaged web assets from the committed data/, but the
UI source of truth is ui-concepts/ (synced via scripts/sync_web.py, a
manual step that was easy to forget — so a release could ship a stale UI).
Run the sync in CI before buildfs so every release always carries the
latest UI regardless of what's committed in data/. .gz are gitignored and
regenerated by the buildfs gzip pre-hook, so no committed artifacts drift.

The tag-to-release trigger is unchanged: cutting a release stays a
deliberate human action; only the sync is automated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 24, 2026 09:30
@bring42
bring42 merged commit b408c63 into main Jul 24, 2026
2 checks passed
@bring42
bring42 deleted the claude/ci-sync-web-on-release branch July 24, 2026 09:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Automates regeneration of device-served web assets during the release workflow so OTA/LittleFS images always include the UI sources from ui-concepts/ at the tagged commit, removing the manual “sync before release” step.

Changes:

  • Adds a python3 scripts/sync_web.py step to the release workflow.
  • Ensures the sync runs before per-board pio run ... -t buildfs, so the LittleFS image is built from freshly regenerated data/.

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.

3 participants