Skip to content

Commit 7dca3a4

Browse files
committed
WIP
1 parent 8594a64 commit 7dca3a4

File tree

7 files changed

+34
-17
lines changed

7 files changed

+34
-17
lines changed

.github/workflows/ci.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ jobs:
9292
# we do not need. We do this to enable some of the less resource
9393
# intensive jobs to run on free runners, which however also have
9494
# less disk space.
95-
- name: free up disk space
96-
run: src/ci/scripts/free-disk-space.sh
97-
if: matrix.free_disk
95+
# - name: free up disk space
96+
# run: src/ci/scripts/free-disk-space.sh
97+
#if: matrix.free_disk
9898

9999
# Rust Log Analyzer can't currently detect the PR number of a GitHub
100100
# Actions build on its own, so a hint in the log message is needed to
@@ -208,7 +208,12 @@ jobs:
208208
retention-days: 5
209209

210210
- name: upload artifacts to S3
211-
run: src/ci/scripts/upload-artifacts.sh
211+
run: |
212+
echo "build"
213+
ls -lha build
214+
echo "obj/build"
215+
ls -lha obj/build
216+
src/ci/scripts/upload-artifacts.sh
212217
env:
213218
AWS_ACCESS_KEY_ID: ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}
214219
AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}
@@ -221,6 +226,10 @@ jobs:
221226

222227
- name: postprocess metrics into the summary
223228
run: |
229+
echo "build"
230+
ls -lha build
231+
echo "obj/build"
232+
ls -lha obj/build
224233
if [ -f build/metrics.json ]; then
225234
./build/citool/debug/citool postprocess-metrics build/metrics.json ${GITHUB_STEP_SUMMARY}
226235
elif [ -f obj/build/metrics.json ]; then

.gitmodules

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
path = src/tools/enzyme
4848
url = https://github.com/EnzymeAD/Enzyme.git
4949
shallow = true
50-
[submodule "src/gcc"]
51-
path = src/gcc
52-
url = https://github.com/rust-lang/gcc.git
53-
shallow = true
50+
; [submodule "src/gcc"]
51+
; path = src/gcc
52+
; url = https://github.com/rust-lang/gcc.git
53+
; shallow = true

src/ci/citool/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ insta = "1"
1919
# If this is omitted, cargo will look for a workspace elsewhere.
2020
# We want to avoid this, since citool is independent of the other crates.
2121
[workspace]
22+
23+
[profile.dev]
24+
debug = 0
25+
incremental = false

src/ci/docker/host-x86_64/mingw-check-tidy/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
3636

3737
# NOTE: intentionally uses python2 for x.py so we can test it still works.
3838
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
39-
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
40-
--stage 0 src/tools/tidy tidyselftest --extra-checks=py,cpp
39+
ENV SCRIPT ../x.py build src/tools/build-manifest

src/ci/docker/host-x86_64/x86_64-gnu-llvm-18/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ RUN sh /scripts/sccache.sh
4343

4444
# We are disabling CI LLVM since this builder is intentionally using a host
4545
# LLVM, rather than the typical src/llvm-project LLVM.
46-
ENV NO_DOWNLOAD_CI_LLVM 1
47-
ENV EXTERNAL_LLVM 1
46+
#ENV NO_DOWNLOAD_CI_LLVM 1
47+
#ENV EXTERNAL_LLVM 1
4848

4949
# Using llvm-link-shared due to libffi issues -- see #34486
5050
ENV RUST_CONFIGURE_ARGS \
@@ -55,9 +55,9 @@ ENV RUST_CONFIGURE_ARGS \
5555
--set rust.thin-lto-import-instr-limit=10
5656

5757
COPY scripts/shared.sh /scripts/
58-
COPY scripts/build-gccjit.sh /scripts/
58+
#COPY scripts/build-gccjit.sh /scripts/
5959

60-
RUN /scripts/build-gccjit.sh /scripts
60+
#RUN /scripts/build-gccjit.sh /scripts
6161

6262
ARG SCRIPT_ARG
6363

src/ci/docker/scripts/x86_64-gnu-llvm.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22

33
set -ex
44

5+
../x.py build src/tools/build-manifest
6+
57
# NOTE: intentionally uses all of `x.py`, `x`, and `x.ps1` to make sure they all work on Linux.
6-
../x.py --stage 2 test --skip src/tools/tidy
8+
#../x.py --stage 2 test --skip src/tools/tidy
79

810
# Run the `mir-opt` tests again but this time for a 32-bit target.
911
# This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
1012
# both 32-bit and 64-bit outputs updated by the PR author, before
1113
# the PR is approved and tested for merging.
1214
# It will also detect tests lacking `// EMIT_MIR_FOR_EACH_BIT_WIDTH`,
1315
# despite having different output on 32-bit vs 64-bit targets.
14-
../x --stage 2 test tests/mir-opt --host='' --target=i686-unknown-linux-gnu
16+
#../x --stage 2 test tests/mir-opt --host='' --target=i686-unknown-linux-gnu
1517

1618
# Run the UI test suite again, but in `--pass=check` mode
1719
#
1820
# This is intended to make sure that both `--pass=check` continues to
1921
# work.
20-
../x.ps1 --stage 2 test tests/ui --pass=check --host='' --target=i686-unknown-linux-gnu
22+
#../x.ps1 --stage 2 test tests/ui --pass=check --host='' --target=i686-unknown-linux-gnu

src/ci/run.sh

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ if [ "$FORCE_CI_RUSTC" == "" ]; then
5454
DISABLE_CI_RUSTC_IF_INCOMPATIBLE=1
5555
fi
5656

57+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.metrics"
58+
HAS_METRICS=1
59+
5760
if ! isCI || isCiBranch auto || isCiBranch beta || isCiBranch try || isCiBranch try-perf || \
5861
isCiBranch automation/bors/try; then
5962
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"

0 commit comments

Comments
 (0)