Improve the performance of the tool-versions version resolution
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- docker, typescript
- 領域
- backend, performance
調査の方向性
Start by reading the changes in #7825 and #7826, then inspect the tool-versions resolution paths and the follow-ups to #7887. Measure which resolution paths and parsing costs affect actual install-tool requests before choosing an optimization; done means reducing unnecessary resolution cost while preserving fresh releases and the documented fallback behavior.
索引モデルが issue の本文から書いたものです。
説明
What would you like containerbase to do?
Keep the version resolution through the tool-versions data cheap, as hosted Renovate runs install-tool millions of times a day and every run starts without a cache.
Costs per run since #7825 and #7826, for tools without their own resolver (exact versions read nothing):
latestor a missing version: one HTTP request to the online tool-versions data, tens to hundreds of ms, up to the 30 s timeout when the network stalls, plus an embedded read as fallback- a partial version: one embedded read and parse, plus the HTTP request unless the embedded data lists the version
- an embedded read:
JSON.parseand the zod check of one<tool>.json, below 0.5 ms typical, ~8 ms for the largest file (renovate.json)
Ideas
- skip the online lookup when the embedded data is recent enough, needs the release time of the data (containerbase/tool-versions#149)
- measure the zod check at runtime again and drop it if it matters (the image build already checks the data)
- check which versions Renovate requests from
install-tool(exact, partial orlatest) to know which paths matter - measure the cost of the follow-ups of #7887 once more tools resolve through the data
- any cache of the online data that outlives one resolve (per process, or on disk like
HttpService.download()) needs an expiry time, so long running processes pick up new releases; todaygetJson()doesn't cache and theToolVersionsServicecache only lasts one resolve - warn when the
v1format isdeprecated(with itsremovalDate) in the rootindex.json; the online lookup fetchesv1/<tool>.jsondirectly and after a removal would silently fall back to the embedded data on the 404. Not on every run, eg. only after a 404 or at most once a day
Drafted by Claude Opus 5.5 (Claude Code) for @viceice.
- 主要言語
- TypeScript
- スター
- 58
- フォーク
- 65
- 平均マージ
- 11時間 54分
- マージ済み PR(30日)
- 428
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
containerbase/base のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
containerbase/base#7891 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
containerbase/base#7842 ·
メンテナーはふだん 1 日以内に返信
-
priority-3-normal tool/dotnet
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
containerbase/base#5996 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
containerbase/base#7902 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
containerbase/base#7899 ·
メンテナーはふだん 1 日以内に返信
containerbase/base の issue をすべて見る
似ている issue
-
bug P3 UI/UX
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
StellarState/SS-backend#712 ·
メンテナーはふだん 1 日以内に返信
-
area: backend bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
snapotter-hq/SnapOtter#3473 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
gitroomhq/postiz-app#2304 ·
メンテナーはふだん 1 日以内に返信
-
harlan-agent-ready-to-implement routine:ci-review
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
harlan-zw/unlighthouse#454 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信