Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

build-train: bos build --dry-run staleness report

オープン
#483 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
53/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

Start with the StalenessOracle.isStale seam in workspace.ts:307, then trace memberInputHash and the deploy oracle selection in build-train.ts:296. Read the existing WorkspaceBuildRender seam from #424 and its presentation code under cli/render/workspace-build. Done when dry-run reports each closure member’s verdict, stale reason and dependency attribution through that seam, honors deploy preflight, exits 0, and has unit tests plus a changeset.

索引モデルが issue の本文から書いたものです。

説明

ready-for-agent

What to build

A --dry-run flag (and/or bos build why <workspace>) that prints the staleness verdict for every member in the closure without building — the train's equivalent of Bazel's cquery. The oracle seam already separates judgement from execution (StalenessOracle.isStale, workspace.ts:307); this surfaces it.

For each member in the prerequisite closure, report:

  • fresh / stale / forced (via BOS_FORCE_BUILD or --force)
  • why for stale: no cache entry / missing dist / input hash mismatch / dist hash mismatch, and — when a dependency went stale — which dependency dragged it in (the transitive-hash composition in memberInputHash knows the dep edges)
  • the oracle in play (mtime vs content-hash — deploy builds only use the hash oracle today, see build-train.ts:296)

Render through the existing WorkspaceBuildRender seam (#424) — new optional render event, presentation stays in cli/render/workspace-build. Exit 0 on dry-run regardless of verdicts.

This is the debugging surface for every "why did it rebuild" question in the rest of the train-cache sequence (#480–#483) — cheap to land first, pays for itself immediately.

Blocked by

Nothing — independent; can land in any order.

Status

  • --dry-run flag on bos build (and deploy preflight honor it)
  • Per-member verdict + stale reason + stale-dependency attribution
  • Rendered via the WorkspaceBuildRender seam, not ad-hoc printing
  • Unit tests for the verdict/reason model
  • Changeset added
主要言語
TypeScript
スター
5
フォーク
3
平均マージ
12時間 36分
マージ済み PR(30日)
79

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NEARBuilders/everything-dev のほかの issue

NEARBuilders/everything-dev の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。