Skip to content

Commit ead4d4c

Browse files
authored
Merge pull request rust-lang#2313 from jieyouxu/rustc-pull
Rustc pull
2 parents 9f8e25f + cae5d8a commit ead4d4c

File tree

1,892 files changed

+30321
-19814
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,892 files changed

+30321
-19814
lines changed

Diff for: .gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*.h rust
66
*.rs rust diff=rust
77
*.fixed linguist-language=Rust
8+
*.pp linguist-language=Rust
89
*.mir linguist-language=Rust
910
src/etc/installer/gfx/* binary
1011
src/vendor/** -text

Diff for: .github/workflows/ci.yml

+19-2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
env:
7070
CI_JOB_NAME: ${{ matrix.name }}
7171
CI_JOB_DOC_URL: ${{ matrix.doc_url }}
72+
GITHUB_WORKFLOW_RUN_ID: ${{ github.run_id }}
73+
GITHUB_REPOSITORY: ${{ github.repository }}
7274
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
7375
# commit of PR sha or commit sha. `GITHUB_SHA` is not accurate for PRs.
7476
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
@@ -239,16 +241,31 @@ jobs:
239241
if: github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1'
240242

241243
- name: postprocess metrics into the summary
244+
# This step is not critical, and if some I/O problem happens, we don't want
245+
# to cancel the build.
246+
continue-on-error: true
242247
run: |
243248
if [ -f build/metrics.json ]; then
244-
./build/citool/debug/citool postprocess-metrics build/metrics.json ${GITHUB_STEP_SUMMARY}
249+
METRICS=build/metrics.json
245250
elif [ -f obj/build/metrics.json ]; then
246-
./build/citool/debug/citool postprocess-metrics obj/build/metrics.json ${GITHUB_STEP_SUMMARY}
251+
METRICS=obj/build/metrics.json
247252
else
248253
echo "No metrics.json found"
254+
exit 0
249255
fi
250256
257+
# Get closest bors merge commit
258+
PARENT_COMMIT=`git rev-list --author='bors <[email protected]>' -n1 --first-parent HEAD^1`
259+
260+
./build/citool/debug/citool postprocess-metrics \
261+
--job-name ${CI_JOB_NAME} \
262+
--parent ${PARENT_COMMIT} \
263+
${METRICS} >> ${GITHUB_STEP_SUMMARY}
264+
251265
- name: upload job metrics to DataDog
266+
# This step is not critical, and if some I/O problem happens, we don't want
267+
# to cancel the build.
268+
continue-on-error: true
252269
if: needs.calculate_matrix.outputs.run_type != 'pr'
253270
env:
254271
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}

Diff for: .github/workflows/ghcr.yml

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# Docker Hub has a rate limit, while ghcr.io doesn't.
66
# Those images are pushed to ghcr.io by this job.
77
#
8+
# While Docker Hub rate limit *shouldn't* be an issue on GitHub Actions,
9+
# it certainly is for AWS codebuild.
10+
#
811
# Note that authenticating to DockerHub or other registries isn't possible
912
# for PR jobs, because forks can't access secrets.
1013
# That's why we use ghcr.io: it has no rate limit and it doesn't require authentication.
@@ -54,6 +57,10 @@ jobs:
5457
"ubuntu:22.04"
5558
# Mirrored because used by all linux CI jobs, including mingw-check-tidy
5659
"moby/buildkit:buildx-stable-1"
60+
# Mirrored because used when CI is running inside a Docker container
61+
"alpine:3.4"
62+
# Mirrored because used by dist-x86_64-linux
63+
"centos:7"
5764
)
5865
5966
# Mirror each image from DockerHub to ghcr.io

Diff for: .github/workflows/post-merge.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,12 @@ jobs:
3535
3636
cd src/ci/citool
3737
38-
printf "*This is an experimental post-merge analysis report. You can ignore it.*\n\n" > output.log
39-
printf "<details>\n<summary>Post-merge report</summary>\n\n" >> output.log
38+
printf "<details>\n<summary>What is this?</summary>\n" >> output.log
39+
printf "This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.\n" >> output.log
40+
printf "</details>\n\n" >> output.log
4041
4142
cargo run --release post-merge-report ${PARENT_COMMIT} ${{ github.sha }} >> output.log
4243
43-
printf "</details>\n" >> output.log
44-
4544
cat output.log
4645
4746
gh pr comment ${HEAD_PR} -F output.log

Diff for: .gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
shallow = true
4646
[submodule "src/tools/enzyme"]
4747
path = src/tools/enzyme
48-
url = https://github.com/EnzymeAD/Enzyme.git
48+
url = https://github.com/rust-lang/Enzyme.git
4949
shallow = true
5050
[submodule "src/gcc"]
5151
path = src/gcc

0 commit comments

Comments
 (0)