proposal: track binary size per commit with MemBrowse

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, go
領域
ci-cd

調査の方向性

This is a proposal to add an external service (MemBrowse) for tracking binary size per commit, not a code change with a named file. It refers to the size-test discussion in #6268 and the existing sizediff PR comment workflow. Deciding whether to adopt it is a maintainer decision, and done would mean an agreed approach, such as the workflow_run setup and the MEMBROWSE_API_KEY secret, not a patch.

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

説明

Background

In #6268 there is support for making the size tests non blocking, and @dgryski suggested building something like arewefastyet that tracks binary sizes over time in a format more useful for humans.

I work on MemBrowse, a service that tracks flash and RAM usage per commit from ELF files and linker scripts. The docs have a short video that explains how it works. I set it up on a fork of TinyGo to see if it fits this need.

Demo: https://membrowse.com/public/michael-membrowse/tinygo

What it provides

  • Flash and RAM per target for every commit on dev, with a history chart.
  • Breakdown by memory region, section, symbol and source file, read from the ELF and DWARF info. You can see which symbols grew in a given commit.
  • A PR comment with the size change per target. It is posted from a separate workflow_run workflow, so it also works for PRs from forks. The current sizediff comment is skipped for those.
  • No need to build twice for a PR. The base commit's report is already stored on the platform, so CI only builds the PR head.
  • You can set up memory budgets that alert when a target goes over a limit.

Setup

  • Create an account on MemBrowse.
  • Create a project for tinygo-org/tinygo.
  • Set the project's API key as the MEMBROWSE_API_KEY GitHub repository secret.

If this is of interest I can open a PR with the workflows.

主要言語
Go
スター
17.8k
フォーク
1.1k
平均マージ
1日 4時間
マージ済み PR(30日)
380

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

tinygo-org/tinygo のほかの issue

tinygo-org/tinygo の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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