Skip to content

feat(preview-compose-plugin): publish the plugin through the DSB backend - #955

Merged
raininforest merged 10 commits into
developfrom
docs/publish-compose-preview-plugin
Oct 23, 2026
Merged

raininforest merged 10 commits into
developfrom
docs/publish-compose-preview-plugin

Conversation

@raininforest

@raininforest raininforest commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Что

Change publish-compose-preview-plugin: публикация Compose preview plugin из CI на бэкенд DSB. Спеки (OpenSpec) и реализация в одном PR.

CI не пишет в S3: он собирает preview-compose-plugin.zip и отправляет его командой dsbuilder preview-plugin publish на бэкенд design-system-builder. Бэкенд сам кладёт файлы в хранилище, импортирует мету из архива и ведёт версии.

  • Manifest и артефакт: поля commit, version (12 символов sha), uikitComposeVersion (из sdds-core/uikit-compose/gradle.properties), apiMetaSha256; api-meta.json входит в архив. Проверка состава и идентификации артефакта (verifyPreviewPluginArtifact) выполняется перед браузерным тестом.
  • Workflow publish-preview-plugin.yml: push в develop отправляет на dev-бэкенд, релизный тег (безусловный вызов из publish-release) на prom-бэкенд, workflow_dispatch для выбранного окружения. Шаги: проверка контракта, jvmTest, артефакт, браузерный тест, установка CLI из релиза DSB, пробная отправка, отправка с --apply. Публикации в одно окружение идут последовательно.
  • README плагина: схема публикации, идентификация билда, секреты, локальная проверка.

Чтобы публикация заработала, нужны секреты DSB_API_URL_*, DSB_CLIENT_ID_*, DSB_CLIENT_SECRET_* (dev и prom), релиз cli-v0.1.0 репозитория DSB (workflow публикации CLI в парном PR) и, при закрытом репозитории DSB, DSB_CLI_READ_TOKEN. Публикация на prom включается переменной DSB_PUBLISH_PROM_ENABLED=true.

Парный PR (бэкенд, CLI, клиент, авторизация): salute-developers/design-system-builder#124.

Проверено

  • ./gradlew -p integration-core :preview-compose-plugin:jvmTest :preview-compose-plugin:previewPluginBrowserTest (в том числе проверка артефакта; галерея 79 компонентов без замечаний), spotlessCheck.
  • Не проверено: запуск workflow в GitHub Actions, сквозная публикация на локальном контуре DSB и на dev.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0122e749-b2ba-4429-b839-2303368cc0a0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@raininforest raininforest self-assigned this Oct 20, 2026
@raininforest
raininforest force-pushed the docs/publish-compose-preview-plugin branch from 684b7db to 1776a83 Compare October 20, 2026 12:36
@raininforest raininforest changed the title docs(openspec): Add publish-compose-preview-plugin change feat(preview-compose-plugin): publish the plugin through the DSB backend Oct 21, 2026
…SH_DEV_ENABLED

Without the variable a push to develop no longer starts the publication, so a
missing secret or CLI release does not leave red runs. A manual dispatch is not gated.
…on is enabled

The step of publish-release now runs only with DSB_PUBLISH_PROM_ENABLED=true and cannot fail the release job:
the tag and the GitHub release are already created at that point, and a disabled feature must not change the
release workflow.
@raininforest
raininforest merged commit ab6b604 into develop Oct 23, 2026
20 checks passed
@raininforest
raininforest deleted the docs/publish-compose-preview-plugin branch October 23, 2026 11:17
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