Repository navigation
fix(plugins): unblock publication and check version bumps in pull requests - #429
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动说明 / Summary
修复每次发布
Plugins / build都失败的问题(例如 run 47019788724:base-converter: published plugin inputs changed without a version bump),并在 PR 阶段提前检查插件版本是否已递增。Fixes the recurring
Plugins / buildfailure (e.g. run 47019788724) and checks plugin version bumps in pull requests before they reach dev.1. Cargo.lock 误报 / False positives from Cargo.lock —
a51b809The check keyed lock entries by
(name, source)and compared workspace-wide dependency lists. A secondnum-bigintmajor version added elsewhere made base-converter look changed although it still compiles 0.4.8; a feature parquet-inspector enables onahashwould have flagged json-schema next. The check now compares what each plugin really builds:cargo tree -p <backend> --target wasm32-wasip2(the same selection asxtask plugin pack) on the last published commit and on HEAD.2. 16 个插件补递增版本 / Bump 16 plugins —
2dd7c11With 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 —
ab34614New
cargo xtask plugin versions, shared by plugins.yml, PR CI and authors:cargo xtask plugin versions --base <merge-base> --fix(rewrites only the version field, carries each part past 10 likescripts/release.sh)合入后 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
已测试的平台 / Tested on
Only xtask and workflows changed. Verified locally against the failing commit and the live
pluginsrelease:--fixproduces byte-identical bumps to2dd7c11, after which it passes with 49 pending plugins自查清单 / Checklist
cargo xtask check全部通过 / passes — rancheck rules, xtask tests (55), rustfmt and clippy for xtask (1.97 and 1.99); the app and web parts are untouched*_test.rs文件中 / Rust tests live in separate*_test.rsfileszh-CN与en-US的键一致;Rust 只返回错误码 / N/A@toolforge/ui组件 / N/A截图 / Screenshots
N/A