Make Bun 1.4.x the default for E2E test apps

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
57/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bun, github-actions, typescript
領域
ci-cd, testing

調査の方向性

Start with .github/actions/prepare-e2e-test/action.yml, then trace its Bun version use through build.yml, canary.yml, and optional-e2e.yml. Check the variant pin in dev-packages/e2e-tests/README.md and compare with the Bun unit and integration version matrix. Done when the E2E default is Bun 1.4.x and the per-variant input, pass-throughs, and pin text are removed.

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

説明

Bun Tests

E2E test apps run on Bun 1.3.14 by default (.github/actions/prepare-e2e-test/action.yml). Bun 1.3.14's bundler renames classes in bundles (let X = class X {} becomes class X2), which changes Function.name. The SDK can't fix this from its side. #26283 hit it in nestjs-12: Nest span names come from class names, so the bundled Bun variant reports ExampleMiddleware2 and ParseIntPipe2, and 6 span tests fail on 1.3.14. Bun 1.4.4 doesn't have the problem.

#26283 works around it with a per-variant bun-version input for prepare-e2e-test, set to 1.4.4 for the nestjs-12 (bun) variant.

Proposal (raised by Isaac Schlueter in review of #26283): make Bun 1.4.x the E2E default in prepare-e2e-test.

  • This one change would remove the new bun-version input, its pass-throughs in build.yml, canary.yml and optional-e2e.yml, and the variant pin text in dev-packages/e2e-tests/README.md.
  • It would also run every Bun E2E app on a Bun release without the class-renaming defect.
  • Tradeoff: other Bun apps' E2E results may change, and E2E would no longer cover 1.3.14, which build.yml calls the oldest supported Bun version. The Bun unit and integration jobs keep their ['1.3.14', '1.4'] matrix.

Related: #23890 (CI pins a single Bun version, closed).

via Isaac Schlueter.

--

View Session [Sentry]

主要言語
TypeScript
スター
8.8k
フォーク
1.9k
平均マージ
1日 8時間
マージ済み PR(30日)
744

環境構築

はじめの一歩

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

getsentry/sentry-javascript のほかの issue

getsentry/sentry-javascript の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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