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

LocalAI QA: Make tests go fast

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

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

@richiejp đang làm issue này rồi.

Từ ngày 22/7/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

area/test enhancement

Bring out the nuclear options for speeding up our pathetically slow tests that 90% of the time are doing absolutely nothing on CPU. Most time is spent in SLEEP or network I/O. Then of course people and agents simply skip running the tests.

  • Fail tests if they take more than a few seconds each (this will need tuning on slow machines, alternative is actually looking at CPU and I/O utilization to see if the test is doing real compute or just sleeping on the job)
  • Refuse to download anything during tests. Force tests to declare what they need and cache everything in a CAS. Use a MITM HTTPS proxy. Has added benefit that we verify everything we download against as SHA256 and can store all of the downloads on GitHub's OCI registry in a casset.
  • For tests that literally test timers we can speed up time by injecting our own clock
  • Other tests are doing a varied assortment of buggy things that are slow, so we'll just take them one-by-one
Ngôn ngữ chính
Go
Star
49.2k
Fork
4.5k
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
340

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 mudler/LocalAI

Tất cả issue của mudler/LocalAI

Issue tương tự

Thêm issue về Go

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.