Skip to content

Commit 3c9d6ef

Browse files
authored
Unrolled build for rust-lang#138396
Rollup merge of rust-lang#138396 - Kobzol:ci-metrics, r=marcoieni Enable metrics and verbose tests in PR CI When debugging CI, I relatively often need to examine what tests are executed on PR CI, and what bootstrap steps does it execute. However, we currently disable both verbose tests and bootstrap metrics on PR CI for some reason. I'm not actually sure why though, as the PR that (probably) introduced this behavior (rust-lang#51367) didn't explain why. CC `@oli-obk`
2 parents 523c507 + d39a258 commit 3c9d6ef

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

src/ci/run.sh

+5-14
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,8 @@ if [ "$FORCE_CI_RUSTC" == "" ]; then
5454
DISABLE_CI_RUSTC_IF_INCOMPATIBLE=1
5555
fi
5656

57-
if ! isCI || isCiBranch auto || isCiBranch beta || isCiBranch try || isCiBranch try-perf || \
58-
isCiBranch automation/bors/try; then
59-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
60-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.metrics"
61-
HAS_METRICS=1
62-
fi
63-
57+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
58+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.metrics"
6459
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-verbose-configure"
6560
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-sccache"
6661
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-manage-submodules"
@@ -266,14 +261,10 @@ if [ "$RUN_CHECK_WITH_PARALLEL_QUERIES" != "" ]; then
266261
$SRC/configure --set change-id=99999999
267262

268263
# Save the build metrics before we wipe the directory
269-
if [ "$HAS_METRICS" = 1 ]; then
270-
mv build/metrics.json .
271-
fi
264+
mv build/metrics.json .
272265
rm -rf build
273-
if [ "$HAS_METRICS" = 1 ]; then
274-
mkdir build
275-
mv metrics.json build
276-
fi
266+
mkdir build
267+
mv metrics.json build
277268

278269
CARGO_INCREMENTAL=0 ../x check
279270
fi

0 commit comments

Comments
 (0)