From 275b093a1169c28a97eb59c562779c64626ad1a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 11:25:18 +0100 Subject: [PATCH 01/18] WIP --- .github/workflows/post-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index d3f42c5a9052c..6ab95da1a6221 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -11,7 +11,7 @@ on: jobs: analysis: runs-on: ubuntu-24.04 - if: github.repository == 'rust-lang/rust' +# if: github.repository == 'rust-lang/rust' permissions: pull-requests: write steps: From ca4bda62b99d25b7fabddb95d635a6837b740677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 11:27:16 +0100 Subject: [PATCH 02/18] WIP --- .github/workflows/post-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 6ab95da1a6221..6e1f76551f5a5 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -19,7 +19,7 @@ jobs: - name: Perform analysis and send PR run: | # Get closest bors merge commit - PARENT_COMMIT=`git rev-list --author='bors ' -n1 --first-parent HEAD^1` + PARENT_COMMIT=`git rev-list --author='bors ' -n1 --first-parent HEAD~1` # Find PR for the current commit HEAD_PR=`gh pr list --search "${{ github.sha }}" --state merged --json number --jq '.[0].number'` From 42d0c44057706e01936f7f5c3387e0cc97308447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 11:51:48 +0100 Subject: [PATCH 03/18] WIP --- .github/workflows/post-merge.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 6e1f76551f5a5..28d3100fb39de 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -16,15 +16,22 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v4 + with: + # Make sure that we have enough commits to find the parent merge commit + # In theory, a single merge can contains a large number of commits, + # so we fetch everything. + fetch-depth: 2 - name: Perform analysis and send PR run: | + git rev-parse HEAD + git log -n 10 + # Get closest bors merge commit PARENT_COMMIT=`git rev-list --author='bors ' -n1 --first-parent HEAD~1` + echo "Parent: ${PARENT_COMMIT}" # Find PR for the current commit HEAD_PR=`gh pr list --search "${{ github.sha }}" --state merged --json number --jq '.[0].number'` - - echo "Parent: ${PARENT_COMMIT}" echo "HEAD: ${{ github.sha }} (#${HEAD_PR})" cd src/ci/citool From b4e8ecb80605cf82e6670a6eea7a04f2fa14bb58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 11:53:06 +0100 Subject: [PATCH 04/18] WIP --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d84d96a0e9173..3a199c088ac24 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,9 @@ [Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing] +WIP + + This is the main source code repository for [Rust]. It contains the compiler, standard library, and documentation. From 66385a35bdf7c6d2ee3b400dc346843565ebd4d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 11:53:09 +0100 Subject: [PATCH 05/18] WIP --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a199c088ac24..ba41b92aae6aa 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ WIP - +WIP This is the main source code repository for [Rust]. It contains the compiler, standard library, and documentation. From 5123c19b095af0e5c1a728846a679b1b45520d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 11:53:12 +0100 Subject: [PATCH 06/18] WIP --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ba41b92aae6aa..63375d4d92d5b 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ [Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing] +WIP WIP WIP From 7916293e66d2b6f1f7e946ba115ea46b20e990f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 11:57:03 +0100 Subject: [PATCH 07/18] WIP --- .github/workflows/post-merge.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 28d3100fb39de..97591d82e9b3d 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -17,17 +17,14 @@ jobs: steps: - uses: actions/checkout@v4 with: - # Make sure that we have enough commits to find the parent merge commit - # In theory, a single merge can contains a large number of commits, - # so we fetch everything. + # Make sure that we have enough commits to find the parent merge commit. + # Since all merges should be through merge commits, fetching two commits + # should be enough to get the parent bors merge commit. fetch-depth: 2 - name: Perform analysis and send PR run: | - git rev-parse HEAD - git log -n 10 - # Get closest bors merge commit - PARENT_COMMIT=`git rev-list --author='bors ' -n1 --first-parent HEAD~1` + PARENT_COMMIT=`git rev-list --author='bors ' -n1 --first-parent HEAD^1` echo "Parent: ${PARENT_COMMIT}" # Find PR for the current commit From 05c96fa2027dd4320a5f96ef57c1ac0e4e832f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 11:58:18 +0100 Subject: [PATCH 08/18] WIP --- .github/workflows/post-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 97591d82e9b3d..cde1d0a2bc004 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -20,7 +20,7 @@ jobs: # Make sure that we have enough commits to find the parent merge commit. # Since all merges should be through merge commits, fetching two commits # should be enough to get the parent bors merge commit. - fetch-depth: 2 + fetch-depth: 10 - name: Perform analysis and send PR run: | # Get closest bors merge commit From 76d914d8ac5688ef2c96ede561fa9051fce8df43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 12:07:33 +0100 Subject: [PATCH 09/18] WIP --- .github/workflows/post-merge.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index cde1d0a2bc004..72008e138a923 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -20,7 +20,7 @@ jobs: # Make sure that we have enough commits to find the parent merge commit. # Since all merges should be through merge commits, fetching two commits # should be enough to get the parent bors merge commit. - fetch-depth: 10 + fetch-depth: 20 - name: Perform analysis and send PR run: | # Get closest bors merge commit @@ -34,7 +34,8 @@ jobs: cd src/ci/citool echo "Post-merge analysis result" > output.log - cargo run --release post-merge-analysis ${PARENT_COMMIT} ${{ github.sha }} >> output.log +# cargo run --release post-merge-analysis ${PARENT_COMMIT} ${{ github.sha }} >> output.log + echo "foo" >> output.log cat output.log gh pr comment ${HEAD_PR} -F output.log From 24eea5a3231223d15979291732d54ebfa9e0b8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 12:30:36 +0100 Subject: [PATCH 10/18] WIP --- .github/workflows/post-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 72008e138a923..755a82916387b 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -19,7 +19,7 @@ jobs: with: # Make sure that we have enough commits to find the parent merge commit. # Since all merges should be through merge commits, fetching two commits - # should be enough to get the parent bors merge commit. + # should be enough to get the parent bors merge commit. W fetch-depth: 20 - name: Perform analysis and send PR run: | From 5e3b205ddb485d1749ee7f04054bee4ddd1b7444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 12:31:08 +0100 Subject: [PATCH 11/18] WIP --- .github/workflows/post-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 755a82916387b..5b35425be0bfc 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -20,7 +20,7 @@ jobs: # Make sure that we have enough commits to find the parent merge commit. # Since all merges should be through merge commits, fetching two commits # should be enough to get the parent bors merge commit. W - fetch-depth: 20 + fetch-depth: 10 - name: Perform analysis and send PR run: | # Get closest bors merge commit From 64fc4a159fff3b833a55e3f0c7fd28c9cc1a9a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 12:31:36 +0100 Subject: [PATCH 12/18] WIP --- .github/workflows/post-merge.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 5b35425be0bfc..1f0650d820e74 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -17,9 +17,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - # Make sure that we have enough commits to find the parent merge commit. - # Since all merges should be through merge commits, fetching two commits - # should be enough to get the parent bors merge commit. W fetch-depth: 10 - name: Perform analysis and send PR run: | From 7571a7819f0f806fa0117aaf3049e1e2949c81e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 12:31:52 +0100 Subject: [PATCH 13/18] WIP --- .github/workflows/post-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 1f0650d820e74..6cc23f5dd0fa1 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 10 + fetch-depth: '10' - name: Perform analysis and send PR run: | # Get closest bors merge commit From e67bea77553ed5afcc981b04f59713921a2cecfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 12:33:38 +0100 Subject: [PATCH 14/18] WIP --- .github/workflows/post-merge.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 6cc23f5dd0fa1..f8fd9b14ea5e2 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: '10' + fetch-depth: 10 - name: Perform analysis and send PR run: | # Get closest bors merge commit @@ -31,7 +31,7 @@ jobs: cd src/ci/citool echo "Post-merge analysis result" > output.log -# cargo run --release post-merge-analysis ${PARENT_COMMIT} ${{ github.sha }} >> output.log + # cargo run --release post-merge-analysis ${PARENT_COMMIT} ${{ github.sha }} >> output.log echo "foo" >> output.log cat output.log From d1c802d4b7a20dfb2e7aef545e11e25bf5f935ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 12:35:52 +0100 Subject: [PATCH 15/18] WIP --- .github/workflows/post-merge.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index f8fd9b14ea5e2..f0b539c7055e5 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -19,6 +19,8 @@ jobs: with: fetch-depth: 10 - name: Perform analysis and send PR + env: + GH_TOKEN: ${{ github.token }} run: | # Get closest bors merge commit PARENT_COMMIT=`git rev-list --author='bors ' -n1 --first-parent HEAD^1` From 42d0f0d25c6775256164bfb35ea9d0411ee9c526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 12:38:01 +0100 Subject: [PATCH 16/18] PR-1 WIP --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 63375d4d92d5b..ab94b7005364a 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ WIP WIP WIP +PR-1 This is the main source code repository for [Rust]. It contains the compiler, standard library, and documentation. From 3b1f6a7de1b74bcdfeed9f73d17961998b0dd1ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 8 Mar 2025 12:38:19 +0100 Subject: [PATCH 17/18] WIP --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 63375d4d92d5b..bcb6ea54724ca 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,8 @@ Read ["Installation"] from [The Book]. If you really want to install from source (though this is not recommended), see [INSTALL.md](INSTALL.md). +PR-2 WIP + ## Getting Help See https://www.rust-lang.org/community for a list of chat platforms and forums. From ccacec8577c0b1c18b97cb16879c6f0ec97347bc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 19:22:15 +0000 Subject: [PATCH 18/18] Update dependency @actions/github to v5.1.1 --- .../actions/github-release/package-lock.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/compiler/rustc_codegen_cranelift/.github/actions/github-release/package-lock.json b/compiler/rustc_codegen_cranelift/.github/actions/github-release/package-lock.json index dd3b2a048f094..3470521cf2064 100644 --- a/compiler/rustc_codegen_cranelift/.github/actions/github-release/package-lock.json +++ b/compiler/rustc_codegen_cranelift/.github/actions/github-release/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "rustc_codegen_cranelift-github-release", "version": "0.0.0", + "license": "Apache-2.0 WITH LLVM-exception", "dependencies": { "@actions/core": "^1.9.1", "@actions/github": "^5.1.0", @@ -23,9 +24,9 @@ } }, "node_modules/@actions/github": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.0.tgz", - "integrity": "sha512-tuI80F7JQIhg77ZTTgUAPpVD7ZnP9oHSPN8xw7LOwtA4vEMbAjWJNbmLBfV7xua7r016GyjzWLuec5cs8f/a8A==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.1.tgz", + "integrity": "sha512-Nk59rMDoJaV+mHCOJPXuvB1zIbomlKS0dmSIqPGxd0enAXBnOfn4VWF+CGtRCwXZG9Epa54tZA7VIRlJDS8A6g==", "dependencies": { "@actions/http-client": "^2.0.1", "@octokit/core": "^3.6.0", @@ -320,9 +321,9 @@ } }, "@actions/github": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.0.tgz", - "integrity": "sha512-tuI80F7JQIhg77ZTTgUAPpVD7ZnP9oHSPN8xw7LOwtA4vEMbAjWJNbmLBfV7xua7r016GyjzWLuec5cs8f/a8A==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.1.tgz", + "integrity": "sha512-Nk59rMDoJaV+mHCOJPXuvB1zIbomlKS0dmSIqPGxd0enAXBnOfn4VWF+CGtRCwXZG9Epa54tZA7VIRlJDS8A6g==", "requires": { "@actions/http-client": "^2.0.1", "@octokit/core": "^3.6.0",