Apache Fory 版本号批量更新
fory-version-bump
在 Java、Kotlin、Scala、Python、Rust、Go、C++、C#、Dart、JavaScript、Swift、集成测试、示例和源码文档中,更新 Apache Fory 的发布版本或发布后的开发版本。在准备发布版本、将 main 分支推进到下一个开发版本、将安装文档切换为已发布版本,或在发布脚本运行后审计 Fory 版本一致性时使用。
- License 许可
- Apache-2.0
- 所属仓库
- apache/fory
- 最近更新
- 2026-11-14
- Stars
- ★ 4.6k
- Forks
- 471
01 前言 Front Matter
- name
- fory-version-bump
- description
- Bump Apache Fory release or post-release development versions across Java, Kotlin, Scala, Python, Rust, Go, C++, C#, Dart, JavaScript, Swift, integration tests, examples, and source docs. Use when preparing a release version, moving main to the next development version, switching install docs to a released version, or auditing Fory version consistency after release scripts run.
02 资源文件 1
- 参考文档agents/openai.yaml1.1 KB
03 SKILL.md 正文
Fory Version Bump
Version Intent
Separate these two targets before editing:
- Released version: use in install docs, examples, and package-manager snippets.
- Next development version: use in active package and build metadata.
Do not edit fory-site unless the user explicitly includes that repository.
Ecosystem Version Forms
Let ci/release.py normalize the input instead of converting versions by hand.
For input 1.1.0-dev, expected forms are:
| Surface | Expected form |
|---|---|
| Java, Kotlin, Scala, Maven integration projects | 1.1.0-SNAPSHOT |
| Python and compiler packages | 1.1.0.dev0 |
| Rust packages and path dependency versions | 1.1.0-alpha.0 |
| Go module dependencies on Fory | v1.1.0-alpha.0 |
| JavaScript package versions | 1.1.0-alpha.0 |
| Dart packages | 1.1.0-dev |
| C# package metadata | 1.1.0-dev |
| CMake project versions | 1.1.0 |
| Bazel module version | 1.1.0 |
User install docs after a 1.0.0 release |
1.0.0 |
Workflow
- Read
AGENTS.md,tasks/lessons.md,.agents/docs-and-formatting.md, and./.local/AGENTS.mdwhen present. Reviewgit status --short --branch. - Record the released and next-development versions in the task file.
- For a post-release bump, run:
python ci/release.py bump_version -l all -version <next-dev-version> \
-release-version <released-version>
- Inspect the complete diff. The helper should update package/build metadata, source docs, examples, and these historically missed surfaces:
MODULE.bazeljavascript/package-lock.jsonintegration_tests/idl_tests/kotlin/pom.xmlintegration_tests/idl_tests/dart/pubspec.yamlintegration_tests/idl_tests/rust/Cargo.lockdart/CHANGELOG.mdanddart/packages/fory/CHANGELOG.mdscala/fory-scala/README.mdandscala/fory-json-scala/README.md
- Search for stale previous development forms and accidental next-development versions in user-facing docs:
rg -n '<previous-development-version-regex>' \
--glob '!tasks/**' --glob '!**/target/**' --glob '!**/build/**' \
--glob '!**/bin/**' --glob '!**/obj/**' --glob '!**/node_modules/**'
rg -n '<next-development-version-regex>' \
README.md docs csharp/README.md swift/README.md scala/README.md \
java/README.md rust/README.md dart/packages/fory/README.md examples \
--glob '!**/target/**' --glob '!**/build/**' --glob '!**/node_modules/**'
Inspect every hit. Keep unrelated third-party versions, benchmark numbers, historical changelog entries, test fixtures, and ignored build outputs unchanged.
- Format changed Markdown and check the patch:
prettier --write <changed-markdown-files>
git diff --check
Verification Boundary
Treat a version-only bump as a textual metadata and documentation update. Do not run unit tests, builds, Maven, CMake, Cargo metadata, package-manager validation, or language test suites locally, including through subagents, unless the user explicitly asks. CI owns those checks.
Verify only that:
- each ecosystem uses the expected version form;
- install docs use the released version and development metadata uses the next version;
- changelogs contain the released version before the next development section;
- no unexplained stale development version remains;
- formatting and
git diff --checkpass; and - task files are not staged.
Finish
- Summarize exact version forms used by ecosystem.
- Note any intentionally retained old version hits.
- Commit tracked code and documentation changes, excluding task scratch files.
04 同仓库更多 Skills
Apache Fory 版本发布暂存与验证
fory-release
暂存或验证 Apache Fory 发布候选版本,并准备 GitHub 发布说明。默认使用 GitHub Actions 进行 ATR 源码暂存和 Nexus JVM 暂存;仅当用户明确请求手动发布时,才使用保留的本地手动工作流。
Apache Fory性能优化
fory-performance-optimization
跨 Apache Fory 的各种实现(Java、C++、Python/Cython、Go、Rust、Swift、C#、JavaScript/TypeScript、Dart、Kotlin、Scala)进行基于性能剖析(profile)的瓶颈优化。用于提升序列化/反序列化的吞吐量或降低延迟、修复相对于参考 commit 的性能回归、诊断火焰图(flamegraph)、修复性能相关的 CI 失败,或在不引入协议或 API 回归的前提下跨语言移植已验证的优化。