clockworklabs / clockworklabs/SpacetimeDB
Smoketests: remove interface for using a module source string; always require a precompiled module
还没有人认领这个 Issue。
- 主要语言
- Rust
- 星标
- 25.2k
- 派生
- 1.1k
- 平均合并
- 2 天 7 小时
- 30 天内合并 PR
- 46
描述
Smoketests which use precompiled modules have better performance characteristics than those that use modules with source strings (mostly because our CI can be smarter about them), so we want to require that all smoketests use precompiled modules. Currently, we have a few smoketests which use non-precompiled modules specifically because they assert that the compilation will fail. We should rewrite those tests so that they either call spacetime build explicitly or use a separate, purpose-built abstraction, rather than calling a normal Smoketest constructor and asserting that it fails. Then, we should remove the Smoketest constructor that accepts a source string, so that all smoketests have to use precompiled modules.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位接受源字符串的 Smoketest 构造函数,以及所有使用它的 smoketest。检查现有的编译失败用例,然后确认它们使用显式构建或单独的抽象,并且其余每个 Smoketest 都使用预编译模块;该构造函数不应再接受源字符串。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust
- 领域
- testing-qa
- Issue 类型
- 重构
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100