Skip to content

fix(plugins): unblock publication and check version bumps in pull requests - #429

Merged
qianmoQ merged 3 commits into
devlive-community:devfrom
qianmoQ:dev
Dec 3, 2026
Merged

qianmoQ merged 3 commits into
devlive-community:devfrom
qianmoQ:dev

Conversation

@qianmoQ

@qianmoQ qianmoQ commented Dec 3, 2026

Copy link
Copy Markdown
Member

改动说明 / Summary

修复每次发布 Plugins / build 都失败的问题(例如 run 47019788724:base-converter: published plugin inputs changed without a version bump),并在 PR 阶段提前检查插件版本是否已递增。

Fixes the recurring Plugins / build failure (e.g. run 47019788724) and checks plugin version bumps in pull requests before they reach dev.

1. Cargo.lock 误报 / False positives from Cargo.lock — a51b809

The check keyed lock entries by (name, source) and compared workspace-wide dependency lists. A second num-bigint major version added elsewhere made base-converter look changed although it still compiles 0.4.8; a feature parquet-inspector enables on ahash would have flagged json-schema next. The check now compares what each plugin really builds: cargo tree -p <backend> --target wasm32-wasip2 (the same selection as xtask plugin pack) on the last published commit and on HEAD.

2. 16 个插件补递增版本 / Bump 16 plugins — 2dd7c11

With the false positive gone, 16 published plugins turned out to have real source, manifest or locale changes since the 2026-11-04 publication without a version bump: bingo-cards, color, invoice-assistant, markdown-editor, paper-box-templates, physics-calculator, pour-over-coffee, redirect-map, robots-sitemap, scratch-calculator, symmetry-drawing, tangram-studio, text-diff, undercover-host, wardrobe-journal, weekly-menu. Each gets a patch bump.

3. PR 阶段检查 / Check in pull requests — ab34614

New cargo xtask plugin versions, shared by plugins.yml, PR CI and authors:

  • 列出所有改了输入却没递增的已发布插件、变化内容和建议版本,并在 manifest.json 上标注 / lists every stale published plugin with its changes and the next unpublished version, annotating its manifest.json
  • 作者可手动改版本,或运行一条命令全部递增 / fix by hand, or run cargo xtask plugin versions --base <merge-base> --fix (rewrites only the version field, carries each part past 10 like scripts/release.sh)
  • 基准 / base: PR CI uses the merge-base, plugins.yml the catalog's source commit, local runs default to the last successful publication

合入后 Plugins 会发布上述 16 个插件的新版本和 33 个新插件。/ After merge, Plugins publishes these 16 bumps plus 33 new plugins.

关联 Issue / Related issues

Fixes the failure in https://github.com/devlive-community/toolforge/actions/runs/47019788724

改动类型 / Type of change

  • 新工具 / New tool
  • 新功能或改进 / Feature or improvement
  • 问题修复 / Bug fix
  • 重构或性能 / Refactor or performance
  • 文档、翻译或构建 / Docs, translations or build

已测试的平台 / Tested on

  • macOS(Apple Silicon)
  • macOS(Intel)
  • Windows(x64)
  • Linux(x64)

Only xtask and workflows changed. Verified locally against the failing commit and the live plugins release:

  • the check reports exactly the 16 plugins above; --fix produces byte-identical bumps to 2dd7c11, after which it passes with 49 pending plugins
  • updating a native-only crate (arboard) flags no plugin; updating a shared crate (anyhow) flags every published plugin that compiles it
  • the PR step against the merge-base passes on this branch

自查清单 / Checklist

  • cargo xtask check 全部通过 / passes — ran check rules, xtask tests (55), rustfmt and clippy for xtask (1.97 and 1.99); the app and web parts are untouched
  • 提交信息为英文 Conventional Commits,一个提交只做一件事 / Commits are English Conventional Commits, one change per commit
  • 数据处理都在 Rust 中完成,前端只负责展示 / All data processing happens in Rust; the UI only displays results
  • Rust 测试写在单独的 *_test.rs 文件中 / Rust tests live in separate *_test.rs files
  • 界面文字都通过 i18n,zh-CN 与 en-US 的键一致;Rust 只返回错误码 / N/A
  • 样式只使用语义化 token 与 @toolforge/ui 组件 / N/A
  • 耗时操作以任务运行 / N/A

截图 / Screenshots

N/A

The Cargo.lock comparison keyed crates by name and source only and read
dependency lists that are merged across the whole workspace. When any crate
added a second num-bigint major version, base-converter looked changed even
though it still compiles 0.4.8; a feature enabled by parquet-inspector made
json-schema look changed the same way.

Resolve each published plugin with cargo tree -p <backend> --target
wasm32-wasip2 on the last published commit and on HEAD, which is exactly
what xtask plugin pack builds, and compare packages, versions and features.
Edits to the root and tf-plugin-* manifests now also trigger the
comparison, and a failure prints the changed paths and packages.
These plugins changed sources, manifests or locales after the 2026-11-04
publication without a version bump, so the Plugins build rejects them
(published plugin inputs changed without a version bump). Bump each patch
version so the changed bytes ship under a new version.
A published online plugin that changes without a version bump was only
caught by the Plugins build after the merge to dev, one plugin at a time,
so unbumped changes piled up until the next publication failed.

Move the check out of plugins.yml into cargo xtask plugin versions so the
publication, pull requests and authors run the same rules:

- compare the plugin directory, the plugin SDK and the crates its backend
  compiles (cargo tree for wasm32-wasip2) with a base commit, defaulting
  to the last successful publication
- list every stale plugin with its changes and the next unpublished
  version, annotating its manifest.json on GitHub Actions
- bump them all with --fix, rewriting only the version field and carrying
  each part past 10 like scripts/release.sh

CI runs it on pull requests against the merge-base; plugins.yml runs it
against the catalog's source commit and still writes pending.txt.
@qianmoQ
qianmoQ merged commit bacdbc0 into devlive-community:dev Dec 3, 2026
7 checks 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