Skip to content

Commit 8bfa986

Browse files
committed
Auto merge of #133445 - BoxyUwU:stable, r=BoxyUwU
[stable] Prepare Rust 1.83.0 r? `@ghost`
2 parents f9c2695 + 6090960 commit 8bfa986

File tree

6 files changed

+411
-53
lines changed

6 files changed

+411
-53
lines changed

.github/workflows/ci.yml

-3
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ jobs:
122122
# which then uses log commands to actually set them.
123123
EXTRA_VARIABLES: ${{ toJson(matrix.env) }}
124124

125-
- name: setup upstream remote
126-
run: src/ci/scripts/setup-upstream-remote.sh
127-
128125
- name: ensure the channel matches the target branch
129126
run: src/ci/scripts/verify-channel.sh
130127

RELEASES.md

+407
Large diffs are not rendered by default.

src/ci/channel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
beta
1+
stable

src/ci/scripts/setup-upstream-remote.sh

-24
This file was deleted.

src/ci/shared.sh

-12
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,3 @@ function releaseChannel {
136136
echo $RUST_CI_OVERRIDE_RELEASE_CHANNEL
137137
fi
138138
}
139-
140-
# Parse values from src/stage0 file by key
141-
function parse_stage0_file_by_key {
142-
local key="$1"
143-
local file="$ci_dir/../stage0"
144-
local value=$(awk -F= '{a[$1]=$2} END {print(a["'$key'"])}' $file)
145-
if [ -z "$value" ]; then
146-
echo "ERROR: Key '$key' not found in '$file'."
147-
exit 1
148-
fi
149-
echo "$value"
150-
}

src/tools/build_helper/src/git.rs

+3-13
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
use std::path::{Path, PathBuf};
22
use std::process::{Command, Stdio};
33

4-
use crate::ci::CiEnv;
5-
64
pub struct GitConfig<'a> {
75
pub git_repository: &'a str,
86
pub nightly_branch: &'a str,
@@ -116,8 +114,8 @@ fn git_upstream_merge_base(
116114

117115
/// Searches for the nearest merge commit in the repository that also exists upstream.
118116
///
119-
/// It looks for the most recent commit made by the merge bot by matching the author's email
120-
/// address with the merge bot's email.
117+
/// If it fails to find the upstream remote, it then looks for the most recent commit made
118+
/// by the merge bot by matching the author's email address with the merge bot's email.
121119
pub fn get_closest_merge_commit(
122120
git_dir: Option<&Path>,
123121
config: &GitConfig<'_>,
@@ -129,15 +127,7 @@ pub fn get_closest_merge_commit(
129127
git.current_dir(git_dir);
130128
}
131129

132-
let merge_base = {
133-
if CiEnv::is_ci() {
134-
git_upstream_merge_base(config, git_dir).unwrap()
135-
} else {
136-
// For non-CI environments, ignore rust-lang/rust upstream as it usually gets
137-
// outdated very quickly.
138-
"HEAD".to_string()
139-
}
140-
};
130+
let merge_base = git_upstream_merge_base(config, git_dir).unwrap_or_else(|_| "HEAD".into());
141131

142132
git.args([
143133
"rev-list",

0 commit comments

Comments
 (0)