-
Notifications
You must be signed in to change notification settings - Fork 13.3k
fix download-llvm logic for subtree sync branches #137593
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
@bors r+ |
This change partially merged in #137594, weird. |
@bors r- It's already merged, and regressed LLVM commit finding logic (see #137661 (comment)). |
88f14a8
to
598755d
Compare
I have updated the PR based on what I found here. I still think we shouldn't even try to look at the history when we know that basically none of the history has even been fetched, but that's a much larger change I will not undertake. I hope (and confirmed to the extent that I can, by playing with @rustbot ready |
598755d
to
0ee9456
Compare
r=me if we didn't need to revert this somewhere (I seem to vaguely recall that happening somewhere) |
We had to revert an earlier version of this. So I went for a different approach now, which should fix that issue. @bors r=Mark-Simulacrum |
Rollup of 10 pull requests Successful merges: - rust-lang#137593 (fix download-llvm logic for subtree sync branches) - rust-lang#137736 (Don't attempt to export compiler-builtins symbols from rust dylibs) - rust-lang#138135 (Simplify `PartialOrd` on tuples containing primitives) - rust-lang#138321 ([bootstrap] Distribute split debuginfo if present) - rust-lang#138574 (rustdoc: be more strict about "Methods from Deref") - rust-lang#138606 (Fix missing rustfmt in msi installer - cont) - rust-lang#138671 (Fix `FileType` `PartialEq` implementation on Windows) - rust-lang#138728 (Update `compiler-builtins` to 0.1.152) - rust-lang#138783 (Cache current_dll_path output) - rust-lang#138846 (Tweaks to writeback and `Obligation -> Goal` conversion) Failed merges: - rust-lang#138755 ([rustdoc] Remove duplicated loop when computing doc cfgs) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#137593 - RalfJung:subtree-sync-download-llvm, r=Mark-Simulacrum fix download-llvm logic for subtree sync branches Fixes rust-lang#101907 Cc `@onur-ozkan` r? `@Mark-Simulacrum`
Hm, this might've somehow broken perf, but I'm not 100% (see #138873 (comment)) |
It's like the
|
"--first-parent", | ||
"--diff-merges=first-parent", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think --diff-merges
is a git show
-only flag, not git rev-list
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried it locally and it works for git rev-list
as well.
$ git --version
git version 2.47.2
Revert "fix download-llvm logic for subtree sync branches rust-lang#137593" Looks like unfortunately the `--diff-merges` flag is a `git show`-only command, not `git rev-list`. See https://git-scm.com/docs/git-rev-list#Documentation/git-rev-list.txt---first-parent which has `--first-parent`, versus https://git-scm.com/docs/git-show#Documentation/git-show.txt---diff-mergesltformatgt which has `--diff-merges=first-parent`. This reverts commit 95994f9, reversing changes made to 7290b04. This will unfortunately re-open rust-lang#101907 but that isn't fixed anyway since the git invocation is broken. r? `@onur-ozkan` (or bootstrap or infra or anyone really)
I posted a revert #138878 to fix perf, because I know nothing about the distinction between these two flags, so a fix-forward seems also risky. |
Revert "fix download-llvm logic for subtree sync branches rust-lang#137593" Reverts rust-lang#137593. Looks like unfortunately the `--diff-merges=first-parent` flag is a `git show`-only flag, not `git rev-list` which only accepts `--first-parent`. See https://git-scm.com/docs/git-rev-list#Documentation/git-rev-list.txt---first-parent which has `--first-parent`, versus https://git-scm.com/docs/git-show#Documentation/git-show.txt---diff-mergesltformatgt which has `--diff-merges=first-parent`. This reverts commit 95994f9, reversing changes made to 7290b04. This will unfortunately re-open rust-lang#101907 but that isn't fixed anyway since the git invocation is broken. cc `@RalfJung` `@Mark-Simulacrum` for FYI (but I would've written the same incorrect flag 💀) r? `@onur-ozkan` (or bootstrap or infra or anyone really)
Fixes #101907
Cc @onur-ozkan
r? @Mark-Simulacrum