Skip to content

Commit f2ef095

Browse files
authored
Merge pull request #590 from Mark-Simulacrum/upd-rel-proc
Update release process to use new scripts from simpleinfra
2 parents 3b396a1 + 377846b commit f2ef095

File tree

1 file changed

+11
-31
lines changed

1 file changed

+11
-31
lines changed

src/release/process.md

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,18 @@ RUSTUP_DIST_SERVER=https://dev-static.rust-lang.org rustup update stable
5454

5555
### Master to beta
5656

57-
Gather the relevant information and push the new Cargo branch:
57+
Run this command in the [simpleinfra] repository, while in a rust-lang/rust
58+
checkout (branch doesn't matter):
5859

5960
```sh
60-
git fetch git@github.com:rust-lang/rust
61-
BRANCH_POINT=`git log --merges --first-parent --format="%P" -1 master -- src/version | awk '{print($1)}'`
62-
NEW_BETA_VERSION=`git show $BRANCH_POINT:src/version`
63-
CARGO_SHA=`git rev-parse $BRANCH_POINT:src/tools/cargo`
64-
65-
cd src/tools/cargo
66-
git branch rust-$NEW_BETA_VERSION $CARGO_SHA
67-
git push git@github.com:rust-lang/cargo rust-$NEW_BETA_VERSION
61+
../simpleinfra/release-scripts/master-to-beta.sh
6862
```
6963

70-
Temporarily disable banch protection on GitHub for the `beta` branch of the Rust
71-
repo. Promote rust-lang/rust's master branch to beta as you did for stable:
64+
This script sets up the new rust-lang/cargo branch and force pushes the appropriate
65+
commit to rust-lang/rust's beta branch.
7266

73-
```sh
74-
git push git@github.com:rust-lang/rust $BRANCH_POINT:beta -f
75-
```
76-
77-
Re-enable branch protection on GitHub. Send a PR to the freshly created beta
78-
branch of rust-lang/rust which updates `src/ci/channel` to `beta`.
67+
Once that's done, send a PR to the freshly created beta branch of rust-lang/rust
68+
which updates `src/ci/channel` to `beta`.
7969

8070
## Master bootstrap update (T-2 day, Tuesday)
8171

@@ -135,22 +125,12 @@ Decide on a time to do the release, T.
135125
- Twitter [@rustlang](https://twitter.com/rustlang)
136126
- [Users forum](https://users.rust-lang.org/)
137127

138-
- **T+5m** - Release and tag Cargo. In the rust-lang/rust repository on the
139-
**stable branch**:
128+
- **T+5m** - Release and tag Cargo. From a rust-lang/rust checkout (script will
129+
checkout the stable branch automatically), run the following script from
130+
[simpleinfra].
140131

141132
```sh
142-
# Remote "rust-lang" is github.com/rust-lang/rust.git
143-
git fetch rust-lang
144-
git checkout rust-lang/stable
145-
# Make sure submodules are at the correct revision.
146-
git submodule update
147-
cd src/tools/cargo
148-
# Publish to crates.io. This will publish internal dependencies first (if
149-
# necessary), then publish Cargo itself.
150-
./publish.py
151-
CARGO_VERSION=$(cargo read-manifest | jq -r .version)
152-
git tag -u FA1BE5FE $CARGO_VERSION
153-
git push git@github.com:rust-lang/cargo.git $CARGO_VERSION
133+
../simpleinfra/release-scripts/tag-cargo.sh
154134
```
155135

156136
- **T+1hr** Send a PR to the beta branch running `./x.py run

0 commit comments

Comments
 (0)