Bound Azure Pipelines selector history and publish cost
まだ誰も着手していません。
評価
調査の方向性
src/AzurePipelines/PipelineCachingCacheClient.cs の GetSelectors(...).ToHashSetAsync と、保存するセレクターの数を制限することに関する TODO から始めます。タイムスタンプ付きのセレクターキー、マニフェスト、パスセットのダウンロードがどのように処理されるかを追跡し、その後、セレクターの増加、重複排除、追い出し、マニフェストサイズの上限、リモート要求についてテストを追加します。保持と公開の処理が引き続き有界であり、保持されたセレクターが期待されるキャッシュヒットを提供できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
The Azure Pipelines cache backend carries forward every selector ever observed for a weak fingerprint and republishes the complete set on each new selector.
Impact
For a recurring weak fingerprint whose path set or strong selector changes over time, each miss fetches the prior selector manifest, downloads every unique historical path set, writes temporary files, and republishes the full set. Publish work grows linearly with selector history rather than remaining bounded. Azure retention and selector deduplication limit some scenarios, but a long-lived cache universe can still accumulate substantial sequential remote I/O.
Evidence
src/AzurePipelines/PipelineCachingCacheClient.cs calls GetSelectors(...).ToHashSetAsync, adds the current selector, then iterates all selectors and republishes them. The implementation already contains TODO: limit the number of selectors we store. Timestamped selector keys carry the newest set across builds.
Suggested fix
Introduce a bounded retention policy for selectors per weak fingerprint, preserving the most useful/recent entries. Avoid downloading historical path-set content that will not be retained. Add instrumentation or tests demonstrating bounded manifest size and remote requests.
Acceptance criteria
- Selector count and manifest size remain bounded under repeated selector churn.
- Existing selectors still provide expected cache hits within the retention policy.
- Publishing a new selector performs bounded remote work.
- Tests cover churn, deduplication, and eviction behavior.
- 主要言語
- C#
- スター
- 64
- フォーク
- 24
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/MSBuildCache のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
microsoft/MSBuildCache#154 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/MSBuildCache#167 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/MSBuildCache#159 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
microsoft/MSBuildCache#155 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
microsoft/MSBuildCache#149 · コメント 3 件 ·
microsoft/MSBuildCache の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
Type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
apache/arrow-adbc#4809 ·
-
type/automation type/tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
microsoft/vscode-azurefunctions#5197 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
microsoft/microsoft-ui-reactor#1274 ·