File tree 7 files changed +2
-72
lines changed
7 files changed +2
-72
lines changed Original file line number Diff line number Diff line change @@ -238,45 +238,6 @@ fn alias_and_path_for_library() {
238
238
) ;
239
239
}
240
240
241
- #[ test]
242
- fn ci_rustc_if_unchanged_logic ( ) {
243
- let config = Config :: parse_inner (
244
- Flags :: parse ( & [
245
- "build" . to_owned ( ) ,
246
- "--dry-run" . to_owned ( ) ,
247
- "--set=rust.download-rustc='if-unchanged'" . to_owned ( ) ,
248
- ] ) ,
249
- |& _| Ok ( Default :: default ( ) ) ,
250
- ) ;
251
-
252
- let build = Build :: new ( config. clone ( ) ) ;
253
- let builder = Builder :: new ( & build) ;
254
-
255
- if config. out . exists ( ) {
256
- fs:: remove_dir_all ( & config. out ) . unwrap ( ) ;
257
- }
258
-
259
- builder. run_step_descriptions ( & Builder :: get_step_descriptions ( config. cmd . kind ( ) ) , & [ ] ) ;
260
-
261
- // Make sure "if-unchanged" logic doesn't try to use CI rustc while there are changes
262
- // in compiler and/or library.
263
- if config. download_rustc_commit . is_some ( ) {
264
- let mut paths = vec ! [ "compiler" ] ;
265
-
266
- // Handle library tree the same way as in `Config::download_ci_rustc_commit`.
267
- if build_helper:: ci:: CiEnv :: is_ci ( ) {
268
- paths. push ( "library" ) ;
269
- }
270
-
271
- let has_changes = config. has_changes_from_upstream ( & paths) ;
272
-
273
- assert ! (
274
- !has_changes,
275
- "CI-rustc can't be used with 'if-unchanged' while there are changes in compiler and/or library."
276
- ) ;
277
- }
278
- }
279
-
280
241
mod defaults {
281
242
use pretty_assertions:: assert_eq;
282
243
Original file line number Diff line number Diff line change @@ -3034,9 +3034,6 @@ impl Config {
3034
3034
// these changes to speed up the build process for library developers. This provides consistent
3035
3035
// functionality for library developers between `download-rustc=true` and `download-rustc="if-unchanged"`
3036
3036
// options.
3037
- //
3038
- // If you update "library" logic here, update `builder::tests::ci_rustc_if_unchanged_logic` test
3039
- // logic accordingly.
3040
3037
if !CiEnv :: is_ci ( ) {
3041
3038
allowed_paths. push ( ":!library" ) ;
3042
3039
}
Original file line number Diff line number Diff line change @@ -59,11 +59,10 @@ COPY scripts/shared.sh /scripts/
59
59
60
60
ARG SCRIPT_ARG
61
61
62
- COPY scripts/add_dummy_commit.sh /tmp/
63
62
COPY scripts/x86_64-gnu-llvm.sh /tmp/
64
63
COPY scripts/x86_64-gnu-llvm2.sh /tmp/
65
64
COPY scripts/x86_64-gnu-llvm3.sh /tmp/
66
65
COPY scripts/stage_2_test_set1.sh /tmp/
67
66
COPY scripts/stage_2_test_set2.sh /tmp/
68
67
69
- ENV SCRIPT "/tmp/add_dummy_commit.sh && /tmp/ ${SCRIPT_ARG}"
68
+ ENV SCRIPT "/tmp/${SCRIPT_ARG}"
Original file line number Diff line number Diff line change @@ -58,11 +58,10 @@ COPY scripts/shared.sh /scripts/
58
58
59
59
ARG SCRIPT_ARG
60
60
61
- COPY scripts/add_dummy_commit.sh /tmp/
62
61
COPY scripts/x86_64-gnu-llvm.sh /tmp/
63
62
COPY scripts/x86_64-gnu-llvm2.sh /tmp/
64
63
COPY scripts/x86_64-gnu-llvm3.sh /tmp/
65
64
COPY scripts/stage_2_test_set1.sh /tmp/
66
65
COPY scripts/stage_2_test_set2.sh /tmp/
67
66
68
- ENV SCRIPT "/tmp/add_dummy_commit.sh && /tmp/ ${SCRIPT_ARG}"
67
+ ENV SCRIPT "/tmp/${SCRIPT_ARG}"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
5
- /tmp/add_dummy_commit.sh
6
-
7
5
# #### Test stage 1 #####
8
6
9
7
../x.py --stage 1 test --skip src/tools/tidy
Original file line number Diff line number Diff line change 108
108
- name : x86_64-gnu-llvm-18
109
109
env :
110
110
ENABLE_GCC_CODEGEN : " 1"
111
- # We are adding (temporarily) a dummy commit on the compiler
112
- READ_ONLY_SRC : " 0"
113
111
DOCKER_SCRIPT : x86_64-gnu-llvm.sh
114
112
<< : *job-linux-16c
115
113
- name : x86_64-gnu-tools
@@ -331,7 +329,6 @@ auto:
331
329
- name : x86_64-gnu-llvm-18-1
332
330
env :
333
331
RUST_BACKTRACE : 1
334
- READ_ONLY_SRC : " 0"
335
332
IMAGE : x86_64-gnu-llvm-18
336
333
DOCKER_SCRIPT : stage_2_test_set1.sh
337
334
<< : *job-linux-4c
@@ -340,7 +337,6 @@ auto:
340
337
- name : x86_64-gnu-llvm-18-2
341
338
env :
342
339
RUST_BACKTRACE : 1
343
- READ_ONLY_SRC : " 0"
344
340
IMAGE : x86_64-gnu-llvm-18
345
341
DOCKER_SCRIPT : x86_64-gnu-llvm2.sh
346
342
<< : *job-linux-4c
@@ -349,7 +345,6 @@ auto:
349
345
- name : x86_64-gnu-llvm-18-3
350
346
env :
351
347
RUST_BACKTRACE : 1
352
- READ_ONLY_SRC : " 0"
353
348
IMAGE : x86_64-gnu-llvm-18
354
349
DOCKER_SCRIPT : x86_64-gnu-llvm3.sh
355
350
<< : *job-linux-4c
You can’t perform that action at this time.
0 commit comments