Skip to content

Rustc pull update #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
de2d948
Merge from rust-lang/rust
lnicola Jun 23, 2025
cf264f4
Merge pull request #20063 from lnicola/sync-from-rust
lnicola Jun 23, 2025
bc1dcc1
Merge pull request #20069 from Veykril/push-mnqkqxomtlxn
Veykril Jun 23, 2025
1365031
Merge pull request #20076 from ChayimFriedman2/faq
lnicola Jun 23, 2025
93c4f33
Merge pull request #20072 from Veykril/push-sorvvvzskywv
Veykril Jun 24, 2025
2f428c2
Merge pull request #20062 from ChayimFriedman2/doctests
Veykril Jun 24, 2025
3f83f5e
Merge pull request #20036 from Veykril/push-yquvoyrxkksx
Veykril Jun 24, 2025
8e0dfd7
Merge pull request #20064 from Wilfred/document_sysroot_project
Veykril Jun 24, 2025
ba0331c
Merge pull request #20061 from ChayimFriedman2/wrap-ret-ty
Veykril Jun 24, 2025
93079a5
Merge pull request #20012 from lnicola/bump-literal-escaper
Veykril Jun 24, 2025
076c05f
Merge pull request #20077 from markpots5/master
Veykril Jun 25, 2025
af35951
Merge from rust-lang/rust
lnicola Jun 30, 2025
c7a148f
Merge pull request #20128 from lnicola/sync-from-rust
lnicola Jun 30, 2025
c489307
Merge pull request #20156 from Veykril/push-knkzxuxkzoyx
Veykril Jul 3, 2025
9f3aec0
Merge pull request #20112 from Veykril/push-ruszuxrqzmvz
Veykril Jul 3, 2025
5203cd9
Merge pull request #20120 from Hmikihiro/match_bind_not_type
ChayimFriedman2 Jul 3, 2025
3c43c43
Auto merge of #143237 - JonathanBrouwer:no_implicit_prelude_parser, r…
bors Jul 4, 2025
c6bf9e4
Merge pull request #20031 from jnyfah/some-branch
Veykril Jul 4, 2025
3d3d2db
Auto merge of #143247 - cjgillot:metadata-no-red, r=petrochenkov
bors Jul 4, 2025
2c4caf9
Rollup merge of #140643 - makai410:smir-refactor-migrate, r=oli-obk,c…
matthiaskrgr Jul 4, 2025
e8c85d5
Rollup merge of #143286 - Muscraft:track-diagnostics-note, r=WaffleLa…
matthiaskrgr Jul 4, 2025
744cd95
Rollup merge of #143308 - compiler-errors:no-pointer-like, r=oli-obk
matthiaskrgr Jul 4, 2025
9e6a970
Rollup merge of #143387 - dpaoliello:shouldpanicfn, r=bjorn3
matthiaskrgr Jul 4, 2025
2b542b4
Rollup merge of #143400 - GrigorenkoPV:attributes/lints, r=jdonszelmann
matthiaskrgr Jul 4, 2025
7588dd9
Rollup merge of #143420 - Kobzol:rdg-push, r=jieyouxu
matthiaskrgr Jul 4, 2025
cdc494f
Auto merge of #143434 - matthiaskrgr:rollup-eyr4rcb, r=matthiaskrgr
bors Jul 4, 2025
ca7c9ac
Auto merge of #114669 - cjgillot:metadata-wp, r=petrochenkov
bors Jul 4, 2025
fceb3a1
Auto merge of #138759 - scottmcm:operand-builder, r=saethlin
bors Jul 5, 2025
5d5ade7
Auto merge of #143474 - jieyouxu:bootstrap-llvm-snapshot, r=Kobzol
bors Jul 5, 2025
2b0ca96
Auto merge of #143126 - dianqk:update-llvm, r=nikic
bors Jul 6, 2025
2e31b25
Auto merge of #143354 - Shourya742:2025-07-03-bye-bye-as_mut-command,…
bors Jul 6, 2025
7240d45
Merge pull request #20132 from A4-Tacks/asmut-borrow-minicore
Veykril Jul 6, 2025
1ea0aaa
Auto merge of #141829 - dvdsk:sleep_until_linux, r=cuviper,RalfJung
bors Jul 6, 2025
bc338ef
Auto merge of #143565 - lnicola:sync-from-ra, r=lnicola
bors Jul 7, 2025
4976bd9
Auto merge of #143035 - ywxt:less-work-steal, r=oli-obk
bors Jul 7, 2025
64f4124
Auto merge of #142869 - nnethercote:join_path-mini, r=camelid
bors Jul 8, 2025
b92cdb5
Auto merge of #142707 - ashivaram23:drop_wildcard, r=dianqk
bors Jul 9, 2025
ea7d456
WIP
Kobzol Jul 9, 2025
11dc83a
WIP
Kobzol Jul 9, 2025
c0cbbca
Merge 11dc83a3287f60d2aa606c3af83eb7fb61b2de0a into 234faf188c16907ea…
Kobzol Jul 9, 2025
d144994
Prepare for merging from rust-lang/rust
invalid-email-address Jul 9, 2025
be16dde
Merge ref '558d25371fe1' from rust-lang/rust
invalid-email-address Jul 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 8 additions & 103 deletions .github/workflows/rustc-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,109 +5,14 @@ on:
schedule:
# Run at 04:00 UTC every Monday and Thursday
- cron: '0 4 * * 1,4'
pull_request:

jobs:
pull:
if: github.repository == 'rust-lang/rustc-dev-guide'
runs-on: ubuntu-latest
outputs:
pr_url: ${{ steps.update-pr.outputs.pr_url }}
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
# We need the full history for josh to work
fetch-depth: '0'
- name: Install stable Rust toolchain
run: rustup update stable
- uses: Swatinem/rust-cache@v2
with:
# Cache the josh directory with checked out rustc
cache-directories: "/home/runner/.cache/rustc-josh"
- name: Install rustc-josh-sync
run: cargo install --locked --git https://github.com/rust-lang/josh-sync
- name: Setup bot git name and email
run: |
git config --global user.name 'The rustc-dev-guide Cronjob Bot'
git config --global user.email '[email protected]'
- name: Perform rustc-pull
id: rustc-pull
# Turn off -e to disable early exit
shell: bash {0}
run: |
rustc-josh-sync pull
exitcode=$?

# If no pull was performed, we want to mark this job as successful,
# but we do not want to perform the follow-up steps.
if [ $exitcode -eq 0 ]; then
echo "pull_result=pull-finished" >> $GITHUB_OUTPUT
elif [ $exitcode -eq 2 ]; then
echo "pull_result=skipped" >> $GITHUB_OUTPUT
exitcode=0
fi

exit ${exitcode}
- name: Push changes to a branch
if: ${{ steps.rustc-pull.outputs.pull_result == 'pull-finished' }}
run: |
# Update a sticky branch that is used only for rustc pulls
BRANCH="rustc-pull"
git switch -c $BRANCH
git push -u origin $BRANCH --force
- name: Create pull request
id: update-pr
if: ${{ steps.rustc-pull.outputs.pull_result == 'pull-finished' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Check if an open pull request for an rustc pull update already exists
# If it does, the previous push has just updated it
# If not, we create it now
RESULT=`gh pr list --author github-actions[bot] --state open -q 'map(select(.title=="Rustc pull update")) | length' --json title`
if [[ "$RESULT" -eq 0 ]]; then
echo "Creating new pull request"
PR_URL=`gh pr create -B master --title 'Rustc pull update' --body 'Latest update from rustc.'`
echo "pr_url=$PR_URL" >> $GITHUB_OUTPUT
else
PR_URL=`gh pr list --author github-actions[bot] --state open -q 'map(select(.title=="Rustc pull update")) | .[0].url' --json url,title`
echo "Updating pull request ${PR_URL}"
echo "pr_url=$PR_URL" >> $GITHUB_OUTPUT
fi
send-zulip-message:
needs: [pull]
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compute message
id: create-message
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ "${{ needs.pull.result }}" == "failure" ]; then
WORKFLOW_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
echo "message=Rustc pull sync failed. Check out the [workflow URL]($WORKFLOW_URL)." >> $GITHUB_OUTPUT
else
CREATED_AT=`gh pr list --author github-actions[bot] --state open -q 'map(select(.title=="Rustc pull update")) | .[0].createdAt' --json createdAt,title`
PR_URL=`gh pr list --author github-actions[bot] --state open -q 'map(select(.title=="Rustc pull update")) | .[0].url' --json url,title`
week_ago=$(date +%F -d '7 days ago')

# If there is an open PR that is at least a week old, post a message about it
if [[ -n $DATE_GH && $DATE_GH < $week_ago ]]; then
echo "message=A PR with a Rustc pull has been opened for more a week. Check out the [PR](${PR_URL})." >> $GITHUB_OUTPUT
fi
fi
- name: Send a Zulip message about updated PR
if: ${{ steps.create-message.outputs.message != '' }}
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5
with:
api-key: ${{ secrets.ZULIP_API_TOKEN }}
email: "[email protected]"
organization-url: "https://rust-lang.zulipchat.com"
to: 196385
type: "stream"
topic: "Subtree sync automation"
content: ${{ steps.create-message.outputs.message }}
uses: kobzol/josh-sync/.github/workflows/rustc-pull.yml@master
# with:
# zulip-stream-id: 1
# zulip-bot-email: [email protected]
secrets:
zulip-api-token: FOO
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c96a69059ecc618b519da385a6ccd03155aa0237
558d25371fe1cc3d907ebcfc4e12d3c27acbe2b7