File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,19 @@ pub fn get_closest_merge_commit(
129129 git. current_dir ( git_dir) ;
130130 }
131131
132+ let channel = include_str ! ( "../../ci/channel" ) ;
133+
132134 let merge_base = {
133- if CiEnv :: is_ci ( ) {
135+ if CiEnv :: is_ci ( ) &&
136+ // FIXME: When running on rust-lang managed CI and it's not a nightly build,
137+ // `git_upstream_merge_base` fails with an error message similar to this:
138+ // ```
139+ // called `Result::unwrap()` on an `Err` value: "command did not execute successfully:
140+ // cd \"/checkout\" && \"git\" \"merge-base\" \"origin/master\" \"HEAD\"\nexpected success, got: exit status: 1\n"
141+ // ```
142+ // Investigate and resolve this issue instead of skipping it like this.
143+ ( channel == "nightly" || !CiEnv :: is_rust_lang_managed_ci_job ( ) )
144+ {
134145 git_upstream_merge_base ( config, git_dir) . unwrap ( )
135146 } else {
136147 // For non-CI environments, ignore rust-lang/rust upstream as it usually gets
You can’t perform that action at this time.
0 commit comments