Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

tests: Port away from nushell

Đang mở
#2,547 1 bình luận 1 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
testing

Hướng nghiên cứu

Start by locating the Nushell test scripts and the test infrastructure that builds or runs them; the issue does not name specific files or a particular test. Read the existing tests and identify one with some complexity, such as an on-target build, to use as the initial port. Done means a Rust-based test binary using xshell can run that test, with infrastructure in place to continue migrating the rest.

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

Mô tả

I championed using nushell, but I regret it now mostly. It's not bad per se (certainly better than shell script IMO) but the core problem is:

  • They keep making subtle behavioral changes that break us periodically (it's not often but we really do want a 1.0 stable language for our tests)
  • It's a relatively obscure language that while does support some static analysis (definitely better than bash!) many failures are still runtime, and LLMs just don't know it as well. Also it's just another language.

A big complexity here is that of course in going to a compiled language. I think basically what we do is generate a separate bootc-tests binary that embeds all the logic.

I think basically we should use Rust with https://docs.rs/xshell/latest/xshell/ for our tests. It'll be more verbose, but that's probably OK.

To implement this I think we can basically just try to port one test (one that has some complexity, like is doing on-target builds etc) and build out the infra (which will necessarily involve some duplication) but then gradually port over all of the others.

Ngôn ngữ chính
Rust
Star
2.3k
Fork
230
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
56

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 bootc-dev/bootc

Tất cả issue của bootc-dev/bootc

Issue tương tự

Thêm issue về Rust

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.