Skip to content

Commit 637f059

Browse files
authored
Rollup merge of #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 (#51367) didn't explain why. CC `@oli-obk`
2 parents 82d4ab6 + d39a258 commit 637f059

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
@@ -58,13 +58,8 @@ if [ "$FORCE_CI_RUSTC" == "" ]; then
5858
DISABLE_CI_RUSTC_IF_INCOMPATIBLE=1
5959
fi
6060

61-
if ! isCI || isCiBranch auto || isCiBranch beta || isCiBranch try || isCiBranch try-perf || \
62-
isCiBranch automation/bors/try; then
63-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
64-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.metrics"
65-
HAS_METRICS=1
66-
fi
67-
61+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
62+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.metrics"
6863
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-verbose-configure"
6964
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-sccache"
7065
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-manage-submodules"
@@ -270,14 +265,10 @@ if [ "$RUN_CHECK_WITH_PARALLEL_QUERIES" != "" ]; then
270265
$SRC/configure --set change-id=99999999
271266

272267
# Save the build metrics before we wipe the directory
273-
if [ "$HAS_METRICS" = 1 ]; then
274-
mv build/metrics.json .
275-
fi
268+
mv build/metrics.json .
276269
rm -rf build
277-
if [ "$HAS_METRICS" = 1 ]; then
278-
mkdir build
279-
mv metrics.json build
280-
fi
270+
mkdir build
271+
mv metrics.json build
281272

282273
CARGO_INCREMENTAL=0 ../x check
283274
fi

0 commit comments

Comments
 (0)