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

Improve the performance of the tool-versions version resolution

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, typescript

調査の方向性

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):

  • latest or 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.parse and 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 or latest) 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; today getJson() doesn't cache and the ToolVersionsService cache only lasts one resolve
  • warn when the v1 format is deprecated (with its removalDate) in the root index.json; the online lookup fetches v1/<tool>.json directly 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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

containerbase/base のほかの issue

containerbase/base の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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