Make Bun 1.4.x the default for E2E test apps

Đang mở
#26,289 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bun, github-actions, typescript
Lĩnh vực
ci-cd, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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]

Ngôn ngữ chính
TypeScript
Star
8.8k
Fork
1.9k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
744

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-javascript

Tất cả issue của getsentry/sentry-javascript

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.