Add test setup for automated response to Node.js releases
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Dockerfile
- Star
- 8.6k
- Fork
- 2k
- Merge trung bình
- 10 giờ 19 phút
- Pull request đã merge (30 ngày)
- 16
Mô tả
What would you like
Add a test setup so that automation responses to new Node.js releases can be tested without requiring production server availability.
Add unit tests and integration tests.
Mock relevant endpoints, such as:
Determine if tests should still assume sourcing musl builds from https://unofficial-builds.nodejs.org or if this should fast-forward to a scenario where this is no longer necessary.
Why is it needed
Automation that deals with processing Node.js updates often fails, leading to manual effort to correct the situation.
Problems have been known about for some time, but efforts so far to correct the issues have had limited success. The outcome of new releases has tended to cause surprises.
Security updates, which typically cause release of updates for each supported release line on the same day, have proved particularly difficult to deal with correctly. Automation is supposed to proceed without waiting for musl builds, which can take many hours, and instead is waiting when it shouldn't.
Planned upstream changes mean that code changes will be necessary:
- promotion of Alpine to Tier 2
- Node.js introduction with alpha releases
If these can be tested before their function is needed, that would help with automation predictability.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Không có tệp hoặc điểm vào của bài kiểm thử nào được nêu. Hãy bắt đầu bằng việc xác định cơ chế tự động hóa xử lý các bản phát hành Node.js và cách cơ chế này xử lý nodejs.org/download/release/index.json cùng các bản build musl. Thêm độ bao phủ cho unit test và integration test bằng cách sử dụng các endpoint được mô phỏng, bao gồm các kịch bản security-update và upstream-release, đồng thời xác minh rằng cơ chế tự động hóa không chờ các bản build musl một cách không cần thiết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- nodejs
- Lĩnh vực
- release, testing-qa
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100