Separate sample projects from test infrastructure (converted to project)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 15/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- build-system, ci-cd, testing
调研方向
工作在链接的 Linear 项目中跟踪,而不是在此 issue 中跟踪。首先梳理当前的示例 Gradle 项目、集成/系统测试和 CI 配置,然后查看 JAVA-625 中关于构建本地解析依赖的内容;当示例使用已发布的坐标,同时隔离的集成测试保留每个 PR 的完整覆盖率时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
This issue has been converted to a project Separate sample projects from test infrastructure
Currently our samples double as integration tests, which causes buildscript classpath bleed between the main build and the sample projects. This creates two categories of problems:
Isolation failures observed
- A test matrix leg targeting a specific KGP version was silently resolved to a higher version because another build dependency pulled it in transitively
- Sample dependency constraints (e.g. an older Spring Boot requiring a pinned KGP version) block upgrades to the rest of the build
Goals
- Samples should use only published Maven Central coordinates so customers can copy them verbatim — no project references, no snapshots
- Integration tests should live in a separate Gradle project (or composite build) with an isolated buildscript classpath, publishing to a build-local directory for resolution
- Changes to the main build graph should not be able to silently alter what the samples or integration tests resolve
Proposed direction
- Extract sample apps into standalone Gradle projects (or an isolated composite build) that declare no
project(...)dependencies - Run integration/system tests against those standalone projects, resolving SDK artifacts from a build-local Maven directory (see JAVA-625)
- CI wires the publish-to-local-dir step before the sample test step, keeping full per-PR coverage
Out of scope
- The build-local dir plumbing itself (tracked in JAVA-625)
- Publishing samples to any external registry
--
- 主要语言
- Kotlin
- 星标
- 1.4k
- 派生
- 479
- 平均合并
- 2 天 16 小时
- 30 天内合并 PR
- 77
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry-java 的其他 Issue
-
Platform: Java
难度 2/5 半天 新手友好度 76/100
getsentry/sentry-java#6161 · 1 条评论 ·
维护者通常 1 天内回复
-
Bug Java Platform: Android Platform: Java
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-java#6138 · 1 条评论 ·
维护者通常 1 天内回复
-
Feature Java Platform: Java Spans
难度 2/5 1-3 小时 新手友好度 68/100
getsentry/sentry-java#5984 · 1 条评论 ·
维护者通常 1 天内回复
-
Android Task Traces
难度 2/5 1-3 小时 新手友好度 68/100
getsentry/sentry-java#5376 · 1 条评论 ·
维护者通常 1 天内回复
-
Android Docs Errors
难度 2/5 1-3 小时 新手友好度 64/100
getsentry/sentry-java#5375 · 1 条评论 ·
维护者通常 1 天内回复
查看 getsentry/sentry-java 的全部 Issue
相似的 Issue
-
contributor: external needs review
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
fwcd/tree-sitter-kotlin#289 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
navikt/syfo-oppfolgingsplan-backend#482 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复