CI never compiles the integration project, so its four src/it trees have no rot guard
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 83/100
調査の方向性
.circleci/config.ymlとbuild.sbtのintegrationプロジェクト定義から始めてください。issueではその両方に触れ、提案するコンパイルコマンドも示しています。CIがsbtをどのように呼び出しているかを確認し、integration/Test/compileだけをコンパイルするステップを追加してください。統合テストを実行せず、データファイルやKafkaブローカーを必要とせずに、CIコマンドが成功することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
The integration project gathers the four src/it/scala trees and is deliberately left out of root's aggregate, which build.sbt states plainly:
// They're not aggregated by root, so neither `sbt test` nor CI runs them: use `sbt integration/test`.
lazy val integration = (project in file("integration"))
That decision is reasonable — the tests want 69 MB data files and a Kafka broker, and keeping them out of sbt test keeps the normal loop fast. This issue is not asking for it to be reversed.
The gap is narrower: nothing in CI so much as compiles them, so there is no guard against the sources rotting. .circleci/config.yml runs sbt Test/compile, sbt test, sbt mimaReportBinaryIssues, sbt unidoc and sbt clean coverage test coverageAggregate — every one of those is scoped to root, which does not aggregate integration. The four directories are therefore never compiled by anything automated:
core/src/it/scala(support classes)cats/src/it/scala(5 suites)kafka-cats/src/it/scala(1 suite)kafka-zio/src/it/scala(1 suite)
Why this is worth a cheap guard
Found by an audit of test discovery across all twelve Phasmid libraries. Two siblings show exactly what an uncompiled it tree becomes:
- Comparer (rchillyard/Comparer#29) —
src/it/scalawired into nothing; its two suites stopped compiling (List[Long]vsArray[Long]) and nobody noticed for two years. - Number (rchillyard/Number#216) —
core/src/it/scalawired into nothing; its eight suites still importcore.{AbsoluteFuzz, FuzzyNumber, Number, …}from before the module split, so they fail on the first import line.
In both cases the sources were rotting in plain sight, because an unbuilt directory and a passing build look identical.
TableParser is not in that state today. Checked on origin/main (57037a8):
$ sbt integration/Test/compile
[info] compiling 8 Scala sources to .../integration/target/scala-3.9.0/test-classes ...
[success] Total time: 22 s
It compiles cleanly. The point is that nothing would tell you when it stops — and the module is coupled to five others by test->test, so an ordinary refactor in core or cats can break it without touching a file in integration.
Suggestion
A compile-only CI step costs seconds and needs no data files and no broker:
- run:
name: Integration test compile
command: cat /dev/null | sbt integration/Test/compile
That keeps the deliberate decision intact — the tests still do not run in CI — while making rot a build failure instead of a discovery years later. XmlDoc is the reference for the other end of the same tradeoff: kmlIt and kafkaIt are equally unaggregated, but .circleci/config.yml runs each explicitly.
- 主要言語
- Scala
- スター
- 11
- フォーク
- 4
- 平均マージ
- 13時間 28分
- マージ済み PR(30日)
- 23
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rchillyard/TableParser のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
rchillyard/TableParser#203 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
rchillyard/TableParser#195 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rchillyard/TableParser#194 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rchillyard/TableParser#193 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
rchillyard/TableParser#186 ·
メンテナーはふだん 1 日以内に返信
rchillyard/TableParser の issue をすべて見る
似ている issue
-
[Bug][NewCSR] vsstatus.SDT latches writes while DTE=0, exposing illegal (vsstatus.SDT=1 && vsstatus.SIE=1)対応中かも @docluka77 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
OpenXiangShan/XiangShan#7134 ·
メンテナーはふだん 2 日以内に返信
-
Module - Core
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
AI Generated CI/CD ⚒️ Flaky-tests 🐦 python 🐍
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
valkey-io/valkey-glide#8012 ·
メンテナーはふだん 3 日以内に返信
-
Agent Workspace Python guidance: the agent can choose an interpreter without magda-python-runtime plan対応中かも @chandrasahith が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
magda-io/magda#4007 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Iceberg v3 read test fails during schema setup with a zero decimal default対応中かも @res-life が 1 日前に担当しました。 オープンbot_watch bug
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
NVIDIA/cudf-spark#17288 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信