Simplify the release process

Đang mở
#5,187 0 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ó
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ính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, rust
Lĩnh vực
ci-cd, release

Hướng nghiên cứu

Start by reading the existing release instructions and GitHub CI workflows that handle beta and stable releases; the issue does not name specific files. Map the manual steps for rustup-init.sh, the stable branch, and publication through t-release, then identify which steps can be safely triggered together. Done means one release trigger automates the agreed steps without making CI workflows too hard to debug.

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

Mô tả

enhancement

It is clear that with the 1.29.2 release our release process has become a bottleneck in terms of DX.

In other projects I maintain, making a release is as simple as adding a tag: GitHub CI will handle the rest. However, this is more complicated for rustup because:

  • We have 2 stages (beta/stable) rule to push to two different environments.
  • There are more markdown files to write.
  • t-release is involved for the final publication.

Main burdens

  • Having to handle 2 stages: this means a lot of work will have to be done twice for every version number
  • Requiring a separate PR to bump rustup-init.sh and its E2E test snapshot for every given release, which is currently painfully manual
  • Having to write 3 different but similar markdown posts: changelog, forum post (beta stage) and announcement post (stable stage) and syncing between them
  • Manually maintaining the stable branch
  • Patiently waiting for the stable CI/CD to turn green
  • Remembering to tag the stable release when everything is done with the stable stage

Expected outcome

One trigger that does almost everything, ideally without t-rustup human interaction afterwards.

Ideas

Some random ideas for automation include:

  • Using tags as CI triggers, or provide explicit CI triggers to start the release automation (with the automatic creation of the tag at the end)
  • Using the name of the tag to distinguish beta/release stages
  • The automation then automatically bumps rustup-init.sh and maintains stable
  • The automation could, at the same time, accept markdown input (from the changelog maybe?) so that we can copy-paste as the corresponding forum/announcement post
    • The post part may better not be automated because we may not want to add the forum post for emergency releases, or we may want to slightly adjust the wording for certain posts.
  • When the stable CI turns green, we may want to hook some Zulip bot here to indicate that we can move on to the next step

But the crucial point is that we don't want to go too far on this since GitHub CI workflows are famously hard to debug.

Ngôn ngữ chính
Rust
Star
7.1k
Fork
1.1k
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
38

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 rust-lang/rustup

Tất cả issue của rust-lang/rustup

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.