-
Notifications
You must be signed in to change notification settings - Fork 22
ci: 添加常用 feature 组合检查 (#47) #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # OpenLark Feature Matrix | ||
|
|
||
| 本文档描述 OpenLark 的 feature 组合测试策略和维护指南。 | ||
|
|
||
| ## 背景 | ||
|
|
||
| OpenLark 采用模块化架构,提供 50+ 个 feature flags 支持按需编译。为确保跨模块组合在发布前后不会出现回归,我们将常用 feature 组合纳入 CI 自动化校验。 | ||
|
|
||
| ## 目标 | ||
|
|
||
| - 覆盖 `no-default-features`、默认 features、常见业务组合和 `all-features` | ||
| - 为新增 feature 或 feature 重构提供回归保护 | ||
| - 明确 feature 组合清单的维护策略 | ||
|
|
||
| ## 相关文件 | ||
|
|
||
| - [ci.yml](../.github/workflows/ci.yml) - CI 配置,包含 feature 组合测试 | ||
| - [feature-matrix.yml](../.github/workflows/feature-matrix.yml) - 高级 feature 矩阵测试 | ||
| - [Cargo.toml](../Cargo.toml) - Feature 定义 | ||
|
|
||
| ## 参考 | ||
|
|
||
| - Issue #47 - 添加 CI checks 用于常用 feature 组合 | ||
| - [Cargo Features 文档](https://doc.rust-lang.org/cargo/reference/features.html) | ||
| - [cargo-hack 文档](https://github.com/taiki-e/cargo-hack) |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
feature-combinationsjob runscargo clippybut its toolchain setup only specifiestoolchainand does not requestclippyas a component.dtolnay/rust-toolchaininstalls with a minimal profile unless components are added, so this job can fail on runners that don’t already havecargo-clippypreinstalled (or when the preinstalled toolchain/cache changes), causing nondeterministic CI breakage. Addcomponents: clippyin this job’s Rust toolchain step to make the lint step reliable.Useful? React with 👍 / 👎.